In the Gentoo Linux Developer's guide to system testing with User-Mode Linux it says that you could use vanilla-sources. In fact, this could cause a big problem in your system. A better, and safer, way to do it is downloading the vanilla sources from kernel.org and compile it inside a temporal directory, because some asm links problems. Then it says you should set fstab with /dev/ubd/0 for root_fs and /dev/ubd/1 for swap_fs; but actually they are recognised as /dev/ubda and /dev/ubdb. Also, is better (actually in my case is the only way to make it work) to use a host kernel with the skas patch Reproducible: Always Steps to Reproduce: 1.Follow the guide 2. 3. Actual Results: With the vanilla-sources, it just doesn't compile. About fstab, the system can't check filesystems integrity and could mount swap Without the skas patch, at least in my case, uml kernel doesn't boot, just hangs Expected Results: A working system :) As asked, emerge info: Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.5-r0, 2.6.12-gentoo-r6-skas3-v8.2 i686) ================================================================= System uname: 2.6.12-gentoo-r6-skas3-v8.2 i686 AMD Athlon(tm) XP 2400+ Gentoo Base System version 1.6.13 ccache version 2.3 [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.4.3-r4, 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -ffast-math -pipe -mfpmath=sse -m3dnow" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -ffast-math -pipe -mfpmath=sse -m3dnow" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict test" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LANG="es_ES@euro" LC_ALL="es_ES@euro" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.au.gentoo.org/gentoo-portage" USE="x86 3dnow X alsa apache2 crypt doc emacs fbcon gif gnutls gpm gtk gtk2 imlib jpeg mbox mmx mp3 mpeg mule mysql ncurses nls opengl pam perl png ppds python spell sse ssl truetype-fonts usb xml2 xv userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Grant, Sven any inputs?
I haven't used uml since I wrote the original doc, so I'm afraid that I'm not much help.
Thanks. I've updated the guide, but left out the skas stuff for now. I'll try to dig deeper in that subject later and see how this patch can be integrated in Gentoo's kernel(s).