Quantcast
Channel: VMware – TechCrumble
Viewing all articles
Browse latest Browse all 153

Cloned Linux Virtual Machine doesn’t connecting to the Network

$
0
0

“Cloned Linux Virtual Machine doesn’t connecting to the Network” problem might be a very common issue in the VMware Virtualization platform. This question was appeared few times and I thought to write this article to fix it with few steps.

I had the same issue with couple of Linux Virtual Machines and I normally do these steps before I connect the Virtual Machine to the network. So, if you are making a clone of a Virtual Machine make sure to follow these steps before you start anything and connect your virtual machine to the network.

Cloned Linux Virtual Machine doesn’t connecting to the Network ? Change the MAC Address

This happens when you clone a Linux Virtual Machine and it keeps the old MAC address in the Operating System. Linux is a file based Operating system so you can easily update the parameters in the files.

I took a clone of a Virtual Machine which was running in my VMware Workstation

Cloned Linux Virtual Machine doesn't connecting to the Network : Take a Clone

Once you power on the Virtual machine and check the IP information from the “ifconfig” command and restart the Networking services from “service network restart” command you might see something similar to this output

Bringing Up Interface eth0:  Device eth0 does not seem to be present, delaying initialization

cloned-linux-virtual-machine-doesnt-connecting-to-the-network : ifconfig

Check the Network adapter information from “cat /etc/sysconfig/network-scripts/ifcfg-eth0” command and note the MAC address of the interface

Cloned Linux Virtual Machine doesn't connecting to the Network : MAC Address

Check the Actual MAC Address from the VMware Console

Cloned Linux Virtual Machine doesn't connecting to the Network : Actual MAC

You can note that the actual MAC address and the MAC address in the configuration file are different. Now we need to adjust the actual MAC address in the configuration file.

Open the configuration file in the vi editor (command : vi /etc/sysconfig/network-scripts/ifcfg-eth0 and hit insert key to enable the editor mode). Change the MAC address to the actual MAC address in the VMware console

Cloned Linux Virtual Machine doesn't connecting to the Network : Change MAC

Save the file and shutdown the Virtual Machine

Note: If you reboot the Virtual Machine these changes might not be reflected, make sure to shutdown the Virtual Machine and Power On.

Just check the ifconfig and interface will up and run with the configuration. Quite easy!

Cloned Linux Virtual Machine doesn't connecting to the Network : Final Fix

If you found this post as useful please rate the post and share it!

The post Cloned Linux Virtual Machine doesn’t connecting to the Network appeared first on TECHCRUMBLE.


Viewing all articles
Browse latest Browse all 153


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>