Linux

Linux Network Connection Not Working Virtual Machine ESXi

Linux Network Connection Not Working Virtual Machine ESXi

Recently, in decommissioning an ESX 3.5 Server host, we ran in to a network problem with a few linux VMs residing on that particular host.ย  Since we were not dealing with shared storage for this host and the other ESXi hosts, we decided to clone the VMs over to the shared storage using vCenter Server 4.1 Update 1.ย  The process worked flawlessly until we booted the newly cloned Linux VMs.ย  The hardware was very similar between the hosts and the same virtual network driver the Intel e1000 driver was being used.

When we ran an ifconfig we simply received the output of the loopback address.

linuxnet1

However, the Ethernet card was not showing as configured.ย  These VMs had statically assigned IP addresses configured which the clone should have carried over.

Resolution

When we ran ifconfig -a | grep eth command we found that the Ethernet card was named eth1 instead of eth0

When we opened the etc/network/interfaces file, we found the following

linuxnet2

The resolution was simply to change the referenced eth0 card to the eth1 card that the VM expected.ย  After the change, we rebooted the VMs and everything came back online normally.

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.