Hi all, SuSE9 contains a nice script for installing a new UML (http://user-mode-linux.sourceforge.net/) within a SuSE9 installation. I ported this script to gentoo. uml-install-suse makes it possible to install SuSE9 from an ftp/http mirror right into a uml machine, e.g. uml-install-suse --root-fs reiserfs --media http://ftp.gwdg.de/pub/linux/suse/ftp.suse.com /suse/i386/9.0 and you can boot this machine with: linux mem=64mb eth0=tuntap,,,192.168.10.1 umid=uml ubd0=root.img ubd1=swap.img This offers you: 1) To have SuSE9 within gentoo (a rpm based distro) - nice for testing. and 2) To setup a UML machine to playwith in less then 10minutes. Pleas _READ_ the Readme file ;) I have no idea what would be the "best" way to integrate this in gentoo. Maybe an ebuild somewhere in a app-misc folder.
Created attachment 23572 [details] uml-suse.tgz Port of uml-install-suse to gentoo.
Comment on attachment 23572 [details] uml-suse.tgz new file is available
Created attachment 23657 [details] uml-suse.tar.bz2 Fixed some bugs. Check the README.
Thanks for noticing through email. Although Gentoo is about the choice, but my concerns are the SuSe9 and RPM. Let's see what other doc devs think :)
I haven't taken a look at the files, but can it be changed so that we can quickly install Gentoo inside Gentoo? Or make it more distribution-independent?
No - check the Gentoo UML page http://www.gentoo.org/doc/en/uml.xml. For Gentoo you need to bootstrap or use one of the stages files. Of couse you can share packages. Between host <-> guest. Checkt the FEATURES option in make.config on your host. I also know that there is a quickpacke tool available. This script ist used for SuSE9 only. It downloads rpm from a SuSE9 dvd or a mirror e.g. ftp/http and installs this binary packages.
Comment on attachment 23657 [details] uml-suse.tar.bz2 updated
Created attachment 23827 [details] uml-suse.tar.bz2 * added cosmetic fixes to uml-install-suse: hwclock is removed and replaced by a dummy * added documentation for using a 2.6.0 guest kernel (this took me 2 days)
Comment on attachment 23827 [details] uml-suse.tar.bz2 more updates ;)
Created attachment 23888 [details] uml-suse.tar.bz2 * uml-install-suse contains an inlayed tar file - no more "distrib" directory needed * there is a known yast/uml issue: If you start the yast network configurator (can also be done with "yast lan" at the root prompt), nothing happens. Workaround is to use "hwprobe=-sys" at the guest kernel cmdline, e.g.: # linux mem=64mb eth0=tuntap,,,192.168.1.2 umid=uml ubd0=root.img ubd1=swap.img hwprobe=-sys
Created attachment 23998 [details] uml-suse.tar.bz2 * small fixes: The script will no work with Debian (tested with woody) * There is also a readme file for Debian.
problem (besides the obsolete tail syntax): root@Athena uml-suse ./uml-install-suse --root-fs ext3 --media http://ftp.gwdg.de/pub/linux/suse/ftp.suse.com/suse/i3 86/9.1 --hostname zerg fetching http://ftp.gwdg.de/pub/linux/suse/ftp.suse.com/suse/i386/9.1/content ### -> installing SUSE LINUX Version 9.1 from http://ftp.gwdg.de/pub/linux/suse/ftp.suse.com/suse/i386/9.1 <- fetching http://ftp.gwdg.de/pub/linux/suse/ftp.suse.com/suse/i386/9.1/suse/setup/descr/Minimal.sel fetching http://ftp.gwdg.de/pub/linux/suse/ftp.suse.com/suse/i386/9.1/suse/setup/descr/MINIMAL.sel add selection: MINIMAL add selection: Minimal fetching http://ftp.gwdg.de/pub/linux/suse/ftp.suse.com/suse/i386/9.1/suse/setup/descr/packages ### -> setup ./swap.img <- 256+0 records in 256+0 records out Setting up swapspace version 1, size = 268431 kB ### -> setup ./root.img <- 512+0 records in 512+0 records out ### -> install rpm <- http://ftp.gwdg.de/pub/linux/suse/ftp.suse.com/suse/i386/9.1/suse/i586/rpm-4.1.1-177.i586.rpm ... http://ftp.gwdg.de/pub/linux/suse/ftp.suse.com/suse/i386/9.1/suse/i586/glibc-2.3.3-98.i586.rpm ... 6 ### -> install packages <- ### -> extracting dist files <- tar: This does not look like a tar archive tar: Skipping to next header tar: Error exit delayed from previous errors same thing w/ 9.0 and 9.1, i cant find out more cuz the scipt deletes the /tmp/uml* folder
fixed it, got another one root@Athena uml-suse ./uml-install-suse --root-fs ext3 --media ftp://mirror.mcs.anl.gov/pub/suse/i386/9.1 --hostname zerg fetching ftp://mirror.mcs.anl.gov/pub/suse/i386/9.1/content ### -> installing SUSE LINUX Version 9.1 from ftp://mirror.mcs.anl.gov/pub/suse/i386/9.1 <- fetching ftp://mirror.mcs.anl.gov/pub/suse/i386/9.1/suse/setup/descr/Minimal.sel fetching ftp://mirror.mcs.anl.gov/pub/suse/i386/9.1/suse/setup/descr/MINIMAL.sel add selection: MINIMAL add selection: Minimal fetching ftp://mirror.mcs.anl.gov/pub/suse/i386/9.1/suse/setup/descr/packages ### -> setup ./swap.img <- Setting up swapspace version 1, size = 268431 kB ### -> setup ./root.img <- ### -> install rpm <- ftp://mirror.mcs.anl.gov/pub/suse/i386/9.1/suse/i586/rpm-4.1.1-177.i586.rpm ... ftp://mirror.mcs.anl.gov/pub/suse/i386/9.1/suse/i586/glibc-2.3.3-98.i586.rpm ... 6 ### -> install packages <- ### -> extracting dist files <- ### -> creating install list <- ### -> going chroot <- /bin/rpm: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory /doinst.sh: line 3: /bin/rm: No such file or directory
Created attachment 37096 [details] Updated for SuSE 9.1 Hi all, i updated the suse-uml-installer script for SuSE 9.1 (x86). It works using a recent gentoo version (please READ the README file before asking any questions) and Debian (woody - yes ancient software!). Have fun.
please send these fixes to the people who maintain said script