I run a number of virtual servers on my network and I want to be able to easily clone base installations of Ubuntu Server. I use the VBoxManage command to clone the actual hard disk and I then create a new profile for my VM and copy over the settings of the original VM.

However, when I boot into the cloned VM, there seems to be a network problem. When I issue a PING I get the message "Network unreachable". I traced it down to the fact that the virtual network card of the cloned VM has a different MAC address then the original VM. When I copy the MAC address the clone seems to work fine.

How can I have the cloned VM have it's own MAC address?

link|improve this question

75% accept rate
feedback

2 Answers

up vote 11 down vote accepted

Just remove /etc/udev/rules.d/70-persistent-net.rules then restart. And all will be fine.

link|improve this answer
3  
Correct and spot on, +1 – pauska Jun 24 '09 at 10:50
I'll mention that if you're importing via VBoxManage you may also have to reset the mac address using VBoxManage modifyvm MyVM --macaddress1 auto – matschaffer May 13 '11 at 3:29
feedback

this worked perfectly for me when cloning Ubuntu Server 10.4 on a VMware Server install.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.