1, because of work or learning needs, all need to clone a server on the VM, at this time whether the fast clone (equivalent to the body of the snapshot) or complete cloning, will encounter IP problems.
For example: Post-creation symptom: Use ifconfig after startup, discover no IP address, only loopback address is 127.0.0.1
The MAC address and host name are the same as the source host (the source host is manually configured IP).
Cause: VM Cloning is a protection policy to protect the source machine and clone machine from initiating network configuration address conflicts.
2, the solution is as follows:
2.1 Edit eth0 configuration file: Vi/etc/sysconfig/network-scripts/ifcfg-eth0, delete hwaddr address the line and UUID lines are as follows:
hwaddr=00:0c:29:08:28:9f
Uuid=cee39dbb-6a10-4425-9daf-768b6e79a9c9
Tip: Of course you can also modify the actual hwaddr and UUID without deleting it. See
/etc/udev/rules.d/70-persistent-net.rules
Eth0 Nic File modified:
[Email protected] ~]# Cat/etc/sysconfig/network-scripts/ifcfg-eth0
Device=eth0
Type=ethernet
Onboot=yes
Nm_controlled=yes
Bootproto=none
ipaddr=10.0.0.27
netmask=255.255.255.0
dns2=8.8.8.8
gateway=10.0.0.254
dns1=10.0.0.254
Ipv6init=no
Userctl=no
2. If necessary, empty the following files:
>/etc/udev/rules.d/70-persistent-net.rules.
Hint: The machine name can not be changed
3. Reboot the system: Reboot or reboot outside the VM.
Note: Three steps to complete, charm! For the benefit of this article friends please leave a message 1; if not, attach the question!
VMWARE8~12 Latest Version clone centos6.x series virtual machine NIC does not start problem (three steps)