Page 1 of 2
vmware conversion, lost network
Posted: Sun Mar 31, 2013 7:37 pm
by computerhell
I need to move an instlalation of Nagios 3.4.1 on Centos from an ESX 4.1 host to a 5.1 host.
I have run a conversion with the vcenter standalone converter.
When I power up the converted machine, I am unable to ping it.
When I type ifconfig, no eht0 adaptor is displayed, it is there on the machine before the conversion.
Can anyone point me in the right direction please?
Thanks
Re: vmware conversion, lost network
Posted: Mon Apr 01, 2013 9:43 am
by slansing
Is there a NIC assigned to the VM? If you view it's hardware options? This may be more of a vmware based issue rather than a Nagios specific problem.
Re: vmware conversion, lost network
Posted: Mon Apr 01, 2013 12:39 pm
by computerhell
Thanks for your reply.
The same nic is still present in the VM settings, and I've tried adding another of the same type, but still nothing from ifconfig.
I've seen Windows VMs lose their IP settings after a conversion, but I always see a network card. I think possibly it gets a new NIC sometimes, sometimes I see the old IP settings hanging around in the registry.
So I think it's a Centos issue, but definitely brought about by the conversion. If this were a physical server, and I added a NIC, would it appear straight away in ifconfig?
Re: vmware conversion, lost network
Posted: Mon Apr 01, 2013 1:01 pm
by abrist
Is the interface down?
Is it's kernel module loading?
Re: vmware conversion, lost network
Posted: Mon Apr 01, 2013 1:41 pm
by computerhell
Great, thank you. I'm getting somewhere now. I was not familiar with the -a option for ifconfig and had been trying to bring up eth0, which no longer exists and is now eth1.
I used ifconfig eth1 up.
Then set the IP, mask and gateway.
I was then able to ping and access the Nagios interface.
Unfortunately, when I reboot, the change is lost. Could anyone help make the change stick please?
Re: vmware conversion, lost network
Posted: Mon Apr 01, 2013 1:46 pm
by abrist
Re: vmware conversion, lost network
Posted: Mon Apr 01, 2013 2:26 pm
by computerhell
I've put the settings in ifcfg-eth1 and rebooted, but the nic is still down at startup.
I copied the ifcfg-eth0 file to the new name to ensure it was the same, and changed the device= line.
I've also tried changing device= in the original ifcfg-eth0 with the same result.
Close to a solution now but not quite there.
Thanks again everyone for the help.
Re: vmware conversion, lost network
Posted: Mon Apr 01, 2013 2:31 pm
by abrist
If you bring up the device and restart the networking script does it auto-configure with your static settings?
Code: Select all
ifconfig eth1 up
service network restart
ifconfig eth1
Re: vmware conversion, lost network
Posted: Mon Apr 01, 2013 2:44 pm
by lmiltchev
Also, can you check if you have both NICs listed in the "70-persistent-net.rules":
Code: Select all
cat /etc/udev/rules.d/70-persistent-net.rules
Re: vmware conversion, lost network
Posted: Mon Apr 01, 2013 3:07 pm
by computerhell
Thanks a lot guys, I've got it working.
service network restart pointed out that the MAC was wrong for eth1. I corrected it and can now reboot and keep the network configuration.
To summarise, for future reference:
After using VMware converter, the original eth0 nic was removed and eth1 created.
I copied /etc/sysconfig/network-scripts/ifcfg-eth0 to ifcfg-eth1.
I deleted ifcfg-eth0.
I changed the MAC in ifcfg-eth1 to that of the new nic (visible in VM settings).
I restarted and was able to log in via the Nagios web interface.