Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 am trying to make my entire ubuntu(12.04) OS with all the softwares installed to an ISO file so that It can be installed through Virtual box in another system . Could someone help me in this ?

share|improve this question
possible duplicate of How can I create a .iso (USB) of my current system? – Jorge Castro Nov 22 '12 at 16:06
up vote 1 down vote accepted

You can use dd to do this - but you'll need another hard drive available to do so, and it'll need to be big enough to contain a file the size of your entire system drive.

It might be better instead to back up and restore your data, installed package list, and files.

sudo dpkg --get-selections > /home/me/mypackages.list

That dumps the list of all packages installed on your system to /home/me/mypackages.list. Now, do a clean Ubuntu install on a new VM on your Virtualbox. Get /home/me/mypackages.list copied into that system.

On the new system,

sudo apt-get install dselect
sudo dpkg --set-selections < /home/me/mypackages.list
sudo dselect

Now press i in dselect's interactive menu, and the new system will install all of the software from repos which was on the original machine.

Once that's done, you can selectively copy over the configurations and data from the original machine as well. If you've got apache, overwrite /etc/apache2 with the contents of /etc/apache2 from the old machine. Etc, etc, etc. DO NOT just blindly copy the entire contents of /etc from the old machine into the new machine - you'll give yourself problems if you do. You can just copy the contents of /home from the old machine into /home on the new machine, but you'll need to recreate the users and fix the permissions appropriately as you do. (You could, in theory, copy over /etc/passwd and /etc/shadow - or portions of them - directly, and in fact I do this kind of thing... but don't do that unless you know exactly what you're doing. You've been warned.)

share|improve this answer

You can check out Linux Mint Forums or this blog where the discuss the same issue.

Apparently the tools to use are Remastersys or Relinux, Relinux appears to be newer and more promising.

share|improve this answer

Your Answer


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.