Friday, June 1, 2012

Virtual Box VM Cloning

A new feature in VirtualBox 4.1 is VM cloning. It makes cloning of VMs really easy, but does come with some gotcha's.

First of all, usually we'll need to change the Mac Address of the network interface. Doing it in the virtual hardware is easy. In the OS (e.g. Red Hat based Linux OS), you'd need to edit /etc/sysconfig/network-scripts/ifcfg-eth0 to edit the Mac Address. However, it doesn't work immediately because the Mac Address is also copied into other files e.g. /etc/udev/rules.d/70-persistant-net.rules

This file will be automatically re-generated after 1-2 more reboots, afterwhich the network will work. So no need to edit the file in this case.

Reference: http://stackoverflow.com/questions/7242404/setting-up-networking-on-centos6-virtualbox-guest-with-xp-host

No comments:

Post a Comment