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 saw many links for for UML but all just pointed to install UML for fedora is there a way i could config UML in ubuntu using Ubuntu file system mine is a 64 bit computer.

share|improve this question
up vote 1 down vote accepted

Debian and Ubuntu provide a rootstrap command that can build a Ubuntu (or Debian) filesystem for you to use with User-Mode Linux

  1. On your computer, install the packages user-mode-linux, slirp and rootstrap.

  2. Note that rootstrap earlier than 0.3.24-6 does not run with Python >= 2.6 You need to apply the patch provided at: if you are running an old version of rootstrap. (The version shipped with Ubuntu 11.10 "oneiric" is OK.)

  3. Create a rootstrap.conf configuration file (you can use the one provided in /etc/rootstrap/rootstrap.conf as a reference):

    # Initial size of the filesystem image (in MBs). It will be created
    # sparsely, so additional space is not allocated until it is used.
    # the filesystem to create
    # rootstrap modules to run to create the initial image
    modules=network mkfs mount debian uml umount
    # rootstraps' defaults are too low for installing recent Ubuntu/Debian
    umlargs= mem=512M
    # name of the network interface inside the UML
    # note: the following settings were copied verbatim from
    # /etc/rootstrap/rootstrap.conf; they're slirp's defaults, tho
  4. Now run the command rootstrap in the same directory where you created the configuration file:

    rootstrap my-disk-image.img

You can read more about the use of rootstrap in its man page.

share|improve this answer

The ubuntu wiki page is here. All the referenced packages still exist.

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.