Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 17 down vote accepted

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

share|improve this answer
4  
Correct and spot on, +1 –  pauska Jun 24 '09 at 10:50
2  
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
2  
The file comes up again on reboot. I am on Ubuntu 12.04. –  Manish Aug 15 '12 at 18:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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