Saturday, 28 September 2013

Fix error can't connect internet when cloning Centos in Virtualbox

When working, I need some test with two Centos virtual machine/pc (6.4 minimal). 
So I installed one virtual machine and clone to another.
And to make two virtual machine can connect one Lan network (or one wifi network) with bridged adapter mode in Network settings, I need check to "Reinitialize the MAC address of all network cards) like behind image.


And when I started new virtual machine, I can't connect to internet.

Solution
 Need go to superuser with su command line


  1. Remove the kernel’s networking interface rules file to reset
    # rm -f /etc/udev/rules.d/70-persistent-net.rules
  1. Restart the VM
# reboot
  1. UPDATE your interface configuration file

    # vi /etc/sysconfig/network-scripts/devices/ifcfg-eth0
  1. Remove the MACADDR entry and the UUID entry
  2. Save and exit the file (:wq)
  3. Restart the networking service
# service network restart
 


No comments:

Post a Comment