Technology and troubleshooting.

Monday, August 22, 2016

Error: No suitable device found: no device found for connection

This tutorial describes How to fix Bringing up interface eth0:  Error: No suitable device found: no device found for connection 'System eth0'.
 




My Scenario:-

I Successfully converted my Linux Centos 6.5 physical box into virtual environment using VMware VCenter Converter standalone. After the P2V conversion all the services are running perfectly except network adapter eth0 is not started. I realized there is some problem with network adapter.  Identified eth0 retain physical server MAC address that is the cause of the error[Error: No suitable device found: no device found for connection 'System eth0'.].

Error:-
no device found for connection System eth0
 [root@server1 ~]# service network restart
Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface Auto_Ethernet:  Active connection state: activated
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/1
                                                           [  OK  ]
Bringing up interface eth0:  Error: No suitable device found: no device found for connection 'System eth0'.
                                                           [FAILED]
Solution:-

Replace the Virtual machine MAC Address to fix Bringing up interface eth0:  Error: No suitable device found: no device found for connection 'System eth0'.

Physical server MAC:- 00:0C:29:4E:8D:DD
Virtual server MAC:-  00:0C:29:D0:C9:FE

Step #1: Command to find Physical sever MAC address:-
[root@server1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
Step #2: Command to find current Virtual server MAC address:-
[root@server1 ~]# ifconfig
 
Step #3: Command to replace the MAC address
[root@server1 ~]#sed -i "s/00:0C:29:4E:8D:DD/00:0C:29:D0:C9:FE/g" /etc/sysconfig/network-scripts/ifcfg-eth0
                                                [OR]

Manually replace the MAC address In line HWADDR replace a Virutal MAC address
[root@server1 ~]#vi /etc/sysconfig/network-scripts/ifcfg-eth0
 Before changes eth0:-

    DEVICE=eth0
    TYPE=Ethernet
    UUID=20bc39e1-d299-4a98-a4a2-4c1500c583ef
    ONBOOT=yes
    NM_CONTROLLED=yes
    BOOTPROTO=none
    IPADDR=x.x.x.x
    PREFIX=24
    GATEWAY=x.x.x.x
    DNS1=8.8.8.8
    DEFROUTE=yes
    IPV4_FAILURE_FATAL=yes
    IPV6INIT=no
    NAME="System eth0"
    HWADDR=00:0C:29:4E:8D:DD
    LAST_CONNECT=1453452600
    DNS2=8.8.4.4
    USERCTL=no

After changes eth0:-

    DEVICE=eth0
    TYPE=Ethernet
    UUID=20bc39e1-d299-4a98-a4a2-4c1500c583ef
    ONBOOT=yes
    NM_CONTROLLED=yes
    BOOTPROTO=none
    IPADDR=x.x.x.x
    PREFIX=24
    GATEWAY=x.x.x.x
    DNS1=8.8.8.8
    DEFROUTE=yes
    IPV4_FAILURE_FATAL=yes
    IPV6INIT=no
    NAME="System eth0"
    HWADDR=00:0C:29:D0:C9:FE
    LAST_CONNECT=1453452600
    DNS2=8.8.4.4
    USERCTL=no

Press ESC[Character] and then type :wq! to apply changes or Abort :q!

Step #4: Restart the Linux box and restart the network service to apply changes.
[root@server1~]# init 6
[root@server1~]# service network restart
Still if your facing the issue. Change the NM_CONTROLLED yes to no in eth0. Restart the Linux box and restart the network service. once everything is back to normal change the NM_CONTROLLED no to yes and Restart the Linux box and restart the network service.
service network restart
I hope this information is useful for you. Please forgive any typos or incomplete sentences.
Share:

9 comments:

  1. very good!
    me helped fully

    i am from brazil :)

    ReplyDelete
  2. Hell Ranjit, this works pretty awesome. Thanks for the guide.

    ReplyDelete
  3. I don't understand - you change your eth0 config file so that it has a hardware address of "00:0C:29:D0:C9:FE", but where did you get this value? Your example above it seems to show that the eth2 hardware address is something entirely different?

    ReplyDelete
    Replies
    1. Yes mine is a example screenshot So its a just example one. You can get the mac value by just speak with terminal using "ifconfig" you will get mac address of the machine.

      Delete
  4. This is awesome article. Thanks for the guide

    ReplyDelete
  5. This is article is awesome. Thanks for the guide.

    ReplyDelete
  6. very good!
    me helped fully

    i am from brazil too :)

    ReplyDelete

Contributors

Popular Posts