12

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?

17

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

  • 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

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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