Chào mừng bạn đến với Diễn Đàn Máy Chủ - Chia sẽ kiến thức máy chủ.
  • Đăng ký
    • Login:
    Server Dell email 247 Tên miền Hosting giá sốc Tang loa Frei Tang loa Frei Tên miền tiếng việt giá bèo cdn rẻ vô địch May Chu Khong Lo - Gia Xi Trum SSL 2 nam giam 15%
    + Trả lời bài viết
    Hiện kết quả từ 1 tới 1 của 1
    1. #1
      Advisors
      Tham gia ngày
      Aug 2009
      Đến từ
      Nha Trang
      Bài gửi
      1.287

      Mặc định "Device eth0 does not seem to be present" centos 6 vsphere

      You may see this error message after cloning or moving a machine in VSphere. It could happen when you are not using distributed switch or you are moving one Virtual Machine to another host where this machine is unable to find the same network label. When you power on CentOS/RHEL 6.4 linux machine it encounters the error "Device eth0 does not seem to be present".



      The problem arises when CentOS/RHEL 6.4 tries to remember the existing NIC of the virtual machine. But in case of moving or cloning VSphere changes the MAC address. Accordingly linux OS changes the device name from eth0 to eth1 and so on after finding a new MAC address. Backup your old files. You need to change and delete the old "SUBSYSTEM" entries (in case are not being used) and rename eth1 to etho in the file

      /etc/udev/rules.d/70-persistent-net.rule accordingly to reflect the changes. After completing you also need to change /etc/sysconfig/network-scripts/ifcfg-eth0 to change MAC and name of the eth0.



      vi /etc/udev/rules.d/70-persistent-net.rule



      # This file was automatically generated by the /lib/udev/write_net_rules

      # program, run by the persistent-net-generator.rules rules file.

      #

      # You can modify it, as long as you keep each rule on a single

      # line, and change only the value of the NAME= key.



      # PCI device 0x15ad:0x07b0 (vmxnet3)

      SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:02:bf:b5", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"



      # PCI device 0x15ad:0x07b0 (vmxnet3)

      SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:8b:2f:fd", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"



      # PCI device 0x15ad:0x07b0 (vmxnet3)

      SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:8b:6e:15", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"

      After editing the file it should look like this:


      # This file was automatically generated by the /lib/udev/write_net_rules

      # program, run by the persistent-net-generator.rules rules file.

      #

      # You can modify it, as long as you keep each rule on a single

      # line, and change only the value of the NAME= key.

      # PCI device 0x15ad:0x07b0 (vmxnet3)

      SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:8b:6e:15", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

      vi /etc/sysconfig/network-scripts/ifcfg-eth0
      DEVICE=eth0
      BOOTPROTO=none
      NM_CONTROLLED=yes
      ONBOOT=yes
      TYPE=Ethernet
      UUID="99ffe715-5ce4-4f00-a82a-34d7bbde30a0"
      IPADDR=1.2.3.4
      PREFIX=24
      GATEWAY=1.2.3.4
      DNS1=8.8.8.8
      DOMAIN=abc.com
      DEFROUTE=yes
      IPV4_FAILURE_FATAL=yes
      IPV6INIT=no
      NAME="System eth0"
      HWADDR=00:0c:29:02:bf:b5
      USERCTL=no
      Change the HWADDR entry to the MAC address with the one in Subsystem udev rules file. You may also confirm the MAC address in the Edit virtual machine settings, network cards in VCenter:
      HWADDR=00:50:56:8b:6e:15

      After completing this now we need to reload udev configuration to reflect the changes:
      start_udev

      Now restart network services:
      service network restart
      Lần sửa cuối bởi vô danh; 13-08-2014 lúc 12:56 AM
      Chấp Nhận Thua 1 Trận Chiến Nhưng Sẽ Thắng Cả Cuộc Chiến .

     

     
    + Trả lời bài viết

    Thread Information

    Users Browsing this Thread

    There are currently 1 users browsing this thread. (0 members and 1 guests)

    Tags for this Thread

    Quyền viết bài

    • Bạn không thể gửi chủ đề mới
    • Bạn không thể gửi trả lời
    • Bạn không thể gửi file đính kèm
    • Bạn không thể sửa bài viết của mình