After vmware clones the image, the new Centos cannot start the network.

Source: Internet
Author: User

After the image is cloned from a vmware or kvm xen Vm, the network cannot be started for the new Centos instance. The system prompts Device eth0 does not seem to be present, delaying initialization.
Two known solutions:

  1. (1)

  2. Mv/etc/sysconfig/network-scripts/ifcfg-eth0/etc/sysconfig/network-scripts/ifcfg-eth1

  3. Vi/etc/sysconfig/network-scripts/ifcfg-eth0

  4. Directly change

  5. DEVICE = eth1

  6. TYPE = Ethernet

  7. ONBOOT = YES

  8. NM_CONTROLLED = yes

  9. BOOTPROTO = static

  10. IPADDR = YourIP

  11. GATEWAY = YourGateWay

  12. NETMASK = 255.255.255.0

  13. Servicenetworkrestart is up, and the NIC is eth1

  14. (2)

  15. Vi/etc/sysconfig/network-scripts/ifcfg-eth0

  16. DEVICE = eth0

  17. TYPE = Ethernet

  18. ONBOOT = YES

  19. NM_CONTROLLED = yes

  20. BOOTPROTO = static

  21. IPADDR = YourIP

  22. GATEWAY = YourGateWay

  23. NETMASK = 255.255.255.0

  24. # Device ipaddr must be capitalized

  25. Rm-f/etc/udev/rules. d/70-persistent-net.rules

  26. Reboot


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.