Subject: ubuntu as vserver guest
From: Ekkard Gerlach <ekkardgerlach@aiai.de>
Date: Mon, 20 Dec 2010 00:20:22 +0100

Hi, 

somebody here who can help me running ubuntu as vserver guest?

I've problems so start ubuntu as guest after copying 
a complete native harddisk installation to a vserver 
directory e.g. /var/lib/vservers/ubuntu. The machine 
start - but there is nearly nothing running: 

rex5:/# vserver xubu1004 start
 * Starting Common Unix Printing System: cupsd
FATAL: Could not load /lib/modules/2.6.32-bpo.5-vserver-amd64/modules.dep: No such file
or directory
FATAL: Could not load /lib/modules/2.6.32-bpo.5-vserver-amd64/modules.dep: No such file
or directory
   ...done.

root@xubu1004:/var/log# ps ax
  PID TTY      STAT   TIME COMMAND
    1 ?        Ss     0:00 init [2]
 3525 ?        Ss     0:00 /usr/sbin/cupsd -C /etc/cups/cupsd.conf
 3556 ?        S+     0:00 login
 3589 pts/2    Ss     0:00 /bin/bash -login
 3628 pts/2    R+     0:00 ps ax

I moved lot of hardware-/network-related scripts and links from /etc/init.d/
to  /etc/init.d/moved: 

rex5:/var/lib/vservers/xubu1004/etc/init.d# ls moved/
acpid            grub-common   networking                  reboot                udevmonitor
acpi-support     halt          network-interface           rsyslog               udevtrigger
alsa-mixer-save  hwclock       network-interface-security  stop-bootlogd         umountfs
apparmor         hwclock-save  network-manager             stop-bootlogd-single  umountnfs.sh
aumix            irqbalance    pcmciautils                 udev                  umountroot
bootlogd         lm-sensors    pulseaudio                  udev-finish           wpa-ifupdown

These scripts rest: 
====================
root@xubu1004:/etc/init.d# ls -l
insgesamt 100
lrwxrwxrwx 1 root root   21 2010-12-06 20:19 anacron -> /lib/init/upstart-job
lrwxrwxrwx 1 root root   21 2010-12-06 20:19 apport -> /lib/init/upstart-job
lrwxrwxrwx 1 root root   21 2010-12-06 20:19 atd -> /lib/init/upstart-job
lrwxrwxrwx 1 root root   21 2010-12-06 20:48 avahi-daemon -> /lib/init/upstart-job
-rwxr-xr-x 1 root root 1091 2010-04-09 12:32 bluetooth
lrwxrwxrwx 1 root root   21 2010-12-06 20:19 console-setup -> /lib/init/upstart-job
lrwxrwxrwx 1 root root   21 2010-12-06 20:19 cron -> /lib/init/upstart-job
-rwxr-xr-x 1 root root 3095 2010-04-09 17:06 cups
lrwxrwxrwx 1 root root   21 2010-12-06 20:19 dbus -> /lib/init/upstart-job
lrwxrwxrwx 1 root root   21 2010-12-06 20:19 dmesg -> /lib/init/upstart-job
-rwxr-xr-x 1 root root 1235 2009-02-20 18:56 dns-clean
lrwxrwxrwx 1 root root   21 2010-12-06 20:19 failsafe-x -> /lib/init/upstart-job
-rwxr-xr-x 1 root root 1623 2010-02-15 18:16 fancontrol
lrwxrwxrwx 1 root root   21 2010-12-06 20:49 gdm -> /lib/init/upstart-job
lrwxrwxrwx 1 root root   21 2010-12-06 20:19 hostname -> /lib/init/upstart-job
-rwxr-xr-x 1 root root 1893 2010-04-19 11:06 kerneloops
-rwxr-xr-x 1 root root 1293 2009-09-07 20:58 killprocs
lrwxrwxrwx 1 root root   21 2010-12-06 20:19 module-init-tools -> /lib/init/upstart-job
drwxr-xr-x 2 root root 4096 2010-12-19 23:49 moved
lrwxrwxrwx 1 root root   21 2010-12-06 20:59 nmbd -> /lib/init/upstart-job
-rwxr-xr-x 1 root root  882 2009-09-07 20:58 ondemand
lrwxrwxrwx 1 root root   21 2010-12-06 20:48 plymouth -> /lib/init/upstart-job
lrwxrwxrwx 1 root root   21 2010-12-06 20:48 plymouth-log -> /lib/init/upstart-job
lrwxrwxrwx 1 root root   21 2010-12-06 20:48 plymouth-splash -> /lib/init/upstart-job
lrwxrwxrwx 1 root root   21 2010-12-06 20:48 plymouth-stop -> /lib/init/upstart-job
-rwxr-xr-x 1 root root  420 2010-03-07 04:59 pppd-dns
lrwxrwxrwx 1 root root   21 2010-12-06 20:19 procps -> /lib/init/upstart-job
-rwxr-xr-x 1 root root 8863 2009-09-07 20:58 rc
-rwxr-xr-x 1 root root  801 2009-09-07 20:58 rc.local
-rwxr-xr-x 1 root root  117 2009-09-07 20:58 rcS
-rw-r--r-- 1 root root 1510 2009-09-07 20:58 README
-rwxr-xr-x 1 root root 4400 2010-03-30 11:01 rsync
-rwxr-xr-x 1 root root 2271 2010-04-15 04:15 saned
lrwxrwxrwx 1 root root   21 2010-12-06 20:48 screen-cleanup -> /lib/init/upstart-job
-rwxr-xr-x 1 root root 3200 2010-03-30 02:20 sendsigs
-rwxr-xr-x 1 root root  590 2009-09-07 20:58 single
-rw-r--r-- 1 root root 4271 2009-09-07 20:58 skeleton
lrwxrwxrwx 1 root root   21 2010-12-06 20:59 smbd -> /lib/init/upstart-job
lrwxrwxrwx 1 root root   21 2010-12-06 20:19 ufw -> /lib/init/upstart-job
-rwxr-xr-x 1 root root  810 2010-03-19 09:29 unattended-upgrades
-rwxr-xr-x 1 root root 1997 2009-09-07 20:58 urandom
-rwxr-xr-x 1 root root 1777 2008-07-01 19:41 x11-common


My aim is to use ubuntu Desktop with XDMCP access on Windows
clients with Xming for internet affairs (mail, web browsing, ..)

Using: lenny 32Bit as host, Kernel linux-image-2.6.32-bpo.5-vserver-686, 
       ubuntu 10.04 LTS 32Bit version. ubuntu 10.04 runs with 2.6.32
       as well.

BTW: I don't understand  the "/lib/init/upstart-job" philosophy of ubuntu.

tia
Ekkard