UML BuilderCommand LineNameumlbuilder - install a Linux distribution for use with User Mode Linux VersionThis documentation applies to umlbuilder, version 1.50. Synopsisumlbuilder OPTIONS Mandatory options are --distro, --dir, --rpmdir, --hostname. All other options are calculated from these, or have a sensible default value. Note: You probably want to run the pointy clicky graphical version that takes you through all the steps easily with extensive online help. The command is umlbuilder_gui. Descriptionumlbuilder helps you install a Linux distribution in order to get an environment to work in with User Mode Linux. Unlike mkrootfs that is distributed with User Mode Linux, this does not require you to be root, nor to have the ability to run sudo. It also runs the distributions installation process under the distribution itself. See Developer Information on the website for the nitty gritty details. Note: umlbuilder only works on rpm based distributions. Note that Debian is not rpm based and has its own system for doing this kind of thing. There is an example section later which is helpful if this is your first time.
ExampleYou wish to install a new Mandrake 8.1 based system. The first step is to ensure this distribution is known about.
$ umlbuilder --distro list
Profile Directory: /usr/lib/uml/profiles
Caldera2.4
CalderaDesktop3.1
Mandrake8.1
Redhat7.2
Yes it does. The next step is to obtain the CDS, and copy the RPM files off them into the same directory (~/RPMS-mdk81 in this case). Mandrake 8.1 has 3 CDs, and the files can be found /Mandrake/RPMS{,2,3} on the CDs.
$ mkdir ~/RPMS-mdk81
$ mount /mnt/cdrom # assuming I can do this as ordinary user
$ cp /mnt/cdrom/Mandrake/RPMS/*.rpm ~/RPMS-mdk81
$ umount /mnt/cdrom
$ .. repeat mount, cp, umount for remaining 2 cdroms ...
Decide where you will be creating the new system. This will be the value of the --dir parameter. I am going to use ~/playground. Find out your new host and ip address information. You will need to talk to your network administrator. Mine assigned playground.example.com and 192.168.0.37. These will be the --hostname and --ipaddr arguments. Decide which modules you will install.
$ umlbuilder --distro Mandrake8.1 --modules list
Modules available for distribution Mandrake8.1
X X windows
base Core minimal files
gnome GNOME desktop environment
kde KDE
I want all of those, so I will have my --modules argument be base,X,gnome,kde. I also want a graphical login to start automatically, so I will supply --initdefault 5 based on information in the "Getting an X session" section above. I am going to leave all other settings at their defaults. If you run umlbuilder without any arguments, you can see what they are.
$ umlbuilder --distro Mandrake8.1 --modules base,X,gnome.kde \
--hostname playground.example.com --ipaddr 192.168.0.37 \
--initdefault 5 --rpmdir ~/RPMS-mdk81 --dir ~/playground
Indexing RPMS
========================================|100% Done.
Successful
Calculating dependencies (this will take several minutes)
Making directories
Making files
Setting up swapspace version 1, size = 134213632 bytes
Populating install filesystem
========================================|100% Done.
Successful
Running install process
tracing thread pid = 21901
Linux version 2.4.15-greased-turkey-1um (jdike@uml.karaya.com) (gcc
version 2.96 20000731 (Red Hat Linux 7.1 2.96-81)) #2 Sun Nov 25 14
:46:34 EST 2001
... several more console message pass by ...
... the various rpms get installed ...
... the installation does some post-install fixups ...
Installation complete. Run the following command to get your
system up and running:
~/playground/control start
So now I can run control start and see my new guest operating system. AuthorWritten by Roger Binns rogerb@rogerbinns.com Splash screens by Christina Lee Original penguin design by Larry Ewing
CopyrightBSD License. Components by other parties are included. See the UML Builder credits page for more details. See alsoThe umlbuilder homepage at http://umlbuilder.sourceforge.net There is a wealth of information about User Mode Linux at Sourceforge. See the UML homepage at http://user-mode-linux.sourceforge.net |