Networking does not work in a cloned Linux virtual machine
Symptoms
- The network configuration in the Linux Guest operating system still refers to the original MAC addresses.
- Mismatch between the MAC addresses in the virtual machine settings and the Linux operating system.
- Networking does not work in a cloned Linux virtual machine.
Cause
Resolution
To change the MAC address of the Linux operating system:
Redhat
- Connect the vSphere Client to the vCenter Server.
- Click the virtual machine.
- Click Edit Settings.
- Click Network adapter and take note of the MAC Address:
For example, 00:0c:29:c1:9e:66 - Power on the Linux virtual machine.
- Open a console and log in as root.
- Change directory to etc/sysconfig/network-scripts.
- Edit ifcfg-eth0 using a plaint text editor and update the MAC address to reflect the MAC address in Step 3.
For more information, see Editing files on an ESX host using vi or nano (1020302). - Activate the ethernet card by executing ifup-eth0.
Note: ifup eth0 may be required in some instances to activate the ethernet card.
SUSE
- Connect to the vSphere Client to the vCenter Server.
- Select the virtual machine and click Edit Settings.
- Click Network adapter and take note of the MAC address:
For example, 00:0c:29:c1:9e:66 - Power on the Linux virtual machine.
- Change directory to /etc/sysconfig/network and run ls -l if*
/etc/sysconfig/network # ls -l if*
# ifcfg-eth-id-00:50:56:a0:17:d7 - Rename this file to match the MAC address in Step 3:
#mv ifcfg-eth-id-00:50:56:a0:17:d7 ifcfg-eth-id-00:0c:29:c1:9e:66 - Activate the ethernet card by executing ifup eth0.
reference
http://kb.vmware.com
ความคิดเห็น