Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was using a Sony laptop with Ubuntu 10.04 installed on the machine. I have just bought a Mac and I will be using Ubuntu 10.04 as my primary development OS by virtualizing it using VirtualBox.

Now, my requirement is, I had a near perfect development environment setup on my Ubuntu box and I don't want to install the packages, apps, setting etc again on my VirtualBox VM. I know there are ways to export apps, setting etc, but is there some app which will actually create a VDI disk for my VirtualBox which, when I plug in to my VirtualBox, I will get the old Ubuntu on my VM.

share|improve this question

The way I would do this is a variant on the above method.

  1. Use clonezilla to take an image of the Ubuntu Machine
  2. Move this image to a location accessible to the as-yet uncrated virtual machine. (I would put this on a secondary hard disk attached to the VM)
  3. Use clonezilla in the virtual machine to restore the image from the secondary hard disk to the one you want to use.

I'm in the current process of writing a tutorial for doing this with a Windows Machine but it will work for Ubuntu too.

share|improve this answer
  1. Shutdown linux machine.
  2. Use Clonezilla (or any livecd, using dd [google dd for more details] ) to get the image of the harddisk.
  3. Get the file to your macos and add the file to the virtualbox
  4. delete /etc/udev/rules.d/70-persistent-net.rules as the MAC address of the network card has changed (apparantly)
share|improve this answer
the key here is to take the machine offline before you try to migrate the installation. – bubu Jun 24 '10 at 7:34
Will try that out – zengr Jun 24 '10 at 7:41
So, the output of Step2 will be a .ISO? If yes, then how will that convert to .VDI? – zengr Jun 24 '10 at 7:49
I don't think so. You will get something like an .img file. For the matter, the vboxmanage command will help you to convert it into .vdi – bubu Jun 24 '10 at 8:00
What do you think about Remastersys? – zengr Jun 24 '10 at 19:17
up vote 0 down vote accepted

I think Remastersys will be the best option, since it will run as an app in Ubuntu.

Doc on Remastersys

share|improve this answer
This works, its the easiest way to do it!!!! – zengr Jun 25 '10 at 7:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .