Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

3 Answers

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
add comment
  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
add comment
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
add comment

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.