After cloning OEL virtual machine in virtual box eth0, eth1, eth2 are replaced with eth3, eth4, eth5. In this article we will see how to resolve this issue.
Machine is cloned now we will start the it
Note the adapters before we start
Login as root. If you do ifconfig you will see eth3, eth4, eth5 instead of eth0, eth1, eth2. This is the problem and we need to correct.
Check entries of /etc/udev/rules.d/70-persistent-net.rules file.
You need to remove this file and reboot the system. Before that also edit the /etc/sysconfig/network file and change hostname as it is still showing the old hostname.
Now reboot the machine. After reboot you will see this
once machine comes up go to network settings you will see duplicate entries of eth0,1,2. remove the old ones (based on updated time)
Select and delete the highlighted ones. Pick the ones which has last used oldest.
After deleting it should look like this
now edit the connection settings as per adapters.
Edit settings and click apply for all three adapters
you can now take a putty session as well
Change the host details in /etc/hosts .bash_profile etc.