I'm working on a project at the moment that makes use of virtualization. Specifically we are running Ubuntu in a VirtualBox container on as OS X server machine.
Here are some of todays learnings:
When you clone a VirtualBox Ubuntu instance, the MAC address of the previous machine will get "stuck", and no amount of fiddling with network adaptor settings is going to fix this.
I found the solution here:
The problem is that the mac address of the NIC is stored in /etc/udev/rules.d/70-persistent-net.rules
Just remove that file, reboot (the file will be regenerated on startup) and all should be well
The next thing, I was getting a lot of network errors when trying to use the apt-get commands.
Turns out that in my case the network had to be NAT and not bridged on VirtualBox.
So I set up two network adaptors and disabled as required.
I discovered this little treasure trove:
Which lets you generate apt/sources.list files