I use the util-vserver 0.30.210-r12 package and I am experiencing following difficulties when I try to build a new guest from Gentoo stage3 tarball: My install string is: vserver-new backup --hostname backup.suchdol.net --context 101 stage3 /vservers/stage3-x86-2005.1-r1.tar.bz2 x86 1) The procedure crashes on the line 100 of /usr/sbin/vserver-new: Error is "vserver-new: line 100: exit: chroot: numeric argument required" On that line there is "exit $1" I think this is typo error and imho should be read "exit 1" couse when I have removed Dollar sign on this line, the install procedure went smoothly 2) vserver-new script cannot handle if portage, distfiles (and packages when used) directories are located somewhere else than in the /usr/portage. The installation crashes on typical system messages: Cannot mount portage Cannot mount distfiles Cannot mount packages Exiting... When the symlinks are used the error is like: >>> emerge (1 of 3) dev-libs/libol-0.3.17 to / !!! File system problem. (Bad Symlink?) !!! Fetching may fail: [Errno 17] File exists: '/usr/portage/distfiles' !!! No write access to /usr/portage/distfiles/ !!! File libol-0.3.17.tar.gz isn't fetched but unable to get it. For the installation of Gentoo guest I had to make hardlinks to these directories, however symlinks does not help. After the installation of course is possible to remove the hardlinks and set up a fstab file for the guest. Please look for the point 1) if it is really typo error and for 2) maybe edit the ebuild to check the directories, use the variables or just announce before proceding. Anyway it is working great... Thanks Stripe Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.5-r3, 2.6.15-vs2.0.1-gentoo-r3 i686) ================================================================= System uname: 2.6.15-vs2.0.1-gentoo-r3 i686 Celeron (Mendocino) Gentoo Base System version 1.6.14 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=i686 -O2 -pipe -ftracer -fstack-protector -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=i686 -O2 -pipe -ftracer -fstack-protector -fomit-frame-pointer" DISTDIR="/home/distfiles" FEATURES="autoconfig buildpkg ccache distcc distlocks noauto notitles sandbox sfperms strict usersandbox" GENTOO_MIRRORS="ftp://ftp.fi.muni.cz/pub/linux/gentoo ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo http://gentoo.oregonstate.edu http://gentoo.inode.at http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow apache2 apm berkdb bitmap-fonts bzip2 bzlib caps cli crypt dri eds emboss encode exif expat foomaticdb fortran ftp gd gdbm gif gstreamer hardened idn imlib ipv6 isdnlog jpeg libg++ libwww lm_sensors mad mhash mikmod mmx motif ncurses nls ogg pam pcre pdflib perl php pie png pppd pwdb python readline reflection sdl session snmp spell spl sse ssl tcpd truetype-fonts type1-fonts udev usb vorbis xml xml2 zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Don't file ebuild bugs against devrel please.
1) fixed 2) the vserver-new script checks your portdir and such with "portageq" please post the output of: portageq portdir portageq distdir portageq pkgdir the only reason i can think of is that you have portdir,distfiles and packages each on a seperate partition? therefore rbind would be needed... let me know
I have master ~ # portageq portdir /usr/portage master ~ # portageq distdir /home/distfiles master ~ # portageq pkgdir /home/packages master ~ # where /home is one huge partition and it is ment to be shared among from the guests... stripe (In reply to comment #2) > 2) the vserver-new script checks your portdir and such with "portageq" > > please post the output of: > > portageq portdir > portageq distdir > portageq pkgdir > > the only reason i can think of is that you have portdir,distfiles and packages > each on a seperate partition? therefore rbind would be needed... let me know >
ah, yes i see it now... 2) was a result from the bug in 1) so it should be fixed by using exit 1, will be in util-vserver-0.30.210-r14 later this day..
(In reply to comment #4) > ah, yes i see it now... 2) was a result from the bug in 1) so it should be > fixed by using exit 1, will be in util-vserver-0.30.210-r14 later this day.. > good to hear that in next time I'll deploy some vserver master host there'll be much less script hacking... Thanks for your time Benedikt