Hello!
I'm trying to get vnuml running to do some network testing. Therefore
I've built a new Gentoo-root_fs from scratch.
Host kernel:
- 2.6.14 with SKAS3-patch
Guest kernel:
- 2.6.14 with uml-2.6.14-bs3.patch.bz2
When I try to start a vnuml-scenario I get the following (shortened,
full output is attached as vnuml-boot.log) output:
#######################################################################
(#:/usr/local/share/vnuml/examples)- vnumlparser.pl -t
tutorial_root1.xml -c /tmp/vnuml -v -B -u root
host> /bin/touch /tmp/vnuml/LOCK
[...snip...]
host> /bin/chown -R 0 /tmp/vnuml
daemon: /usr/local/share/vnuml/kernels/linux
ubd0=/tmp/vnuml/simulations/tutorial-r1/vms/uml1/fs/root_cow_fs,/usr/local/share/vnuml/filesystems/root_fs
ubd1=/tmp/vnuml/simulations/tutorial-r1/vms/uml1/fs/opt_fs
root=/dev/ubda
eth1=daemon,fe:fd:0:0:1:1,unix,/tmp/vnuml/networks/Net0.ctl
uml_dir=/tmp/vnuml/simulations/tutorial-r1/vms/uml1/ umid=run
mconsole=notify:/tmp/vnuml_notify.ctl.Lt6bn1
Checking PROT_EXEC mmap in /tmp...OK
Checking for the skas3 patch in the host:
- /proc/mm...found
- PTRACE_FAULTINFO...found
- PTRACE_LDT...found
UML running in SKAS3 mode
Checking that ptrace can change system call numbers...OK
Checking syscall emulation patch for ptrace...OK
Checking advanced syscall emulation patch for ptrace...OK
Linux version 2.6.14-usermode-r1-bs3 ([EMAIL PROTECTED]) (gcc-Version 3.4.5
(Gentoo 3.4.5, HTB-3.4.4-1.00, ssp-3.4.5-1.0, pie-8.7.9)) #7 Fri Jan 6
13:10:41 Local time zone must be set--see zic manua
Built 1 zonelists
Kernel command line:
ubd0=/tmp/vnuml/simulations/tutorial-r1/vms/uml1/fs/root_cow_fs,/usr/local/share/vnuml/filesystems/root_fs
ubd1=/tmp/vnuml/simulations/tutorial-r1/vms/uml1/fs/opt_fs
root=/dev/ubda
eth1=daemon,fe:fd:0:0:1:1,unix,/tmp/vnuml/networks/Net0.ctl
uml_dir=/tmp/vnuml/simulations/tutorial-r1/vms/uml1/
mconsole=notify:/tmp/vnuml_notify.ctl.Lt6bn1
PID hash table entries: 256 (order: 8, 4096 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 28184k available
Mount-cache hash table entries: 512
Checking for host processor cmov support...Yes
Checking for host processor xmm support...No
Checking that host ptys support output SIGIO...Yes
Checking that host ptys support SIGIO on close...No, enabling workaround
Checking for /dev/anon on the host...Not available (open failed with
errno 2)
Using 2.6 host AIO
NET: Registered protocol family 16
Netdevice 1 (fe:fd:00:00:01:01) : daemon backend (uml_switch version 3)
- unix:/tmp/vnuml/networks/Net0.ctl
mconsole (version 2) initialized
on /tmp/vnuml/simulations/tutorial-r1/vms/uml1/run/mconsole
ubd: Synchronous mode
Loading Reiser4. See www.namesys.com for a description of Reiser4.
Initializing Cryptographic API
io scheduler noop registered
io scheduler cfq registered
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
Initialized stdio console driver
Console initialized on /dev/tty0
Initializing software serial port version 1
Creating "/tmp/vnuml/simulations/tutorial-r1/vms/uml1/fs/root_cow_fs" as
COW file for "/usr/local/share/vnuml/filesystems/root_fs"
ubda: unknown partition table
ubdb: unknown partition table
ReiserFS: ubda: found reiserfs format "3.6" with standard journal
ReiserFS: ubda: using ordered data mode
ReiserFS: ubda: journal params: device ubda, size 8192, journal first
block 18, max trans len 1024, max batch 900, max commit age 30, max
trans age 30
ReiserFS: ubda: checking transaction log (ubda)
ReiserFS: ubda: Using r5 hash to sort names
VFS: Mounted root (reiserfs filesystem) readonly.
winch_thread : new_tty_pgrp failed, err = 1
#######################################################################
After that the boot has failed and the terminal accepts no input
anymore.
The really interesting thing is, that I can boot the guests from a
terminal with exactly the same call the vnumlparser.pl-script performs:
### This works! #######################################################
$ /usr/local/share/vnuml/kernels/linux \
ubd0=/tmp/vnuml/simulations/tutorial-r1/vms/uml1/fs/root_cow_fs,\
/usr/local/share/vnuml/filesystems/root_fs \
ubd1=/tmp/vnuml/simulations/tutorial-r1/vms/uml1/fs/opt_fs \
root=/dev/ubda
#######################################################################
So why do I get this new_tty_pgrp error if the script performs the call
but all works fine if I emit it directly in a terminal?
Much thanks in advance,
Tassilo
(#:/usr/local/share/vnuml/examples)- vnumlparser.pl -t tutorial_root1.xml -c
/tmp/vnuml -v -B -u root
host> /bin/touch /tmp/vnuml/LOCK
host> /sbin/modprobe tun
host> /bin/touch /tmp/vnuml/simulations/tutorial-r1/lock
host> /usr/bin/tunctl -t Net3 -u 0 -f /dev/net/tun
Set 'Net3' persistent and owned by uid 0
host> /sbin/ifconfig Net3 10.0.3.2 netmask 255.255.255.0 promisc
host> /sbin/route -A inet add -net 10.0.0.0/16 gw 10.0.3.1
host> /bin/chown -R 0 /tmp/vnuml
daemon: /usr/bin/uml_switch -unix /tmp/vnuml/networks/Net0.ctl
host> /bin/echo 1 > /tmp/vnuml/networks/Net0.ctl.cter
daemon: /usr/bin/uml_switch -unix /tmp/vnuml/networks/Net1.ctl
host> /bin/echo 1 > /tmp/vnuml/networks/Net1.ctl.cter
daemon: /usr/bin/uml_switch -unix /tmp/vnuml/networks/Net2.ctl
host> /bin/echo 1 > /tmp/vnuml/networks/Net2.ctl.cter
daemon: /usr/bin/uml_switch -tap Net3 -unix /tmp/vnuml/networks/Net3.ctl
host> /bin/echo 1 > /tmp/vnuml/networks/Net3.ctl.cter
uml1> #!/bin/bash
uml1> # UML boot file generated by vnumlparser.pl at Sa Jan 7 11:03:40 CET 2006
uml1> UTILDIR=/mnt/vnuml
uml1> hostname uml1
uml1> ifconfig eth1 0.0.0.0 promisc up
uml1> ifconfig eth1 10.0.0.1 netmask 255.255.255.0
uml1> route -A inet add default gw 10.0.0.3
uml1> HOSTNAME=$(hostname)
uml1> grep $HOSTNAME /etc/hosts > /dev/null 2>&1
uml1> if [ $? == 1 ]
uml1> then
uml1> echo >> /etc/hosts
uml1> echo \# Hostname configuration >> /etc/hosts
uml1> echo "10.0.0.1 $HOSTNAME" >> /etc/hosts
uml1> fi
uml1> sed -i '/#VNUML/{p;d};/:ctrlaltdel:/!{p;d};s/#\?\(.*\)/#\1/' /etc/inittab
uml1> if ! grep ":ctrlaltdel:.*#VNUML" /etc/inittab > /dev/null 2>&1; then
uml1> echo "ca:12345:ctrlaltdel:halt; #VNUML shutdown" >> /etc/inittab
uml1> fi
uml1> telinit q
uml1> echo init_start > /proc/mconsole
uml1> function add_groups() {
uml1> while group=`line`; do
uml1> if ! grep "^$group:" /etc/group > /dev/null 2>&1; then
uml1> groupadd $group
uml1> fi
uml1> done
uml1> }
uml1> function add_keys() {
uml1> eval homedir=~$1
uml1> if ! [ -d $homedir/.ssh ]; then
uml1> su -pc "mkdir -p $homedir/.ssh" $1
uml1> chmod 700 $homedir/.ssh
uml1> fi
uml1> if ! [ -f $homedir/.ssh/authorized_keys ]; then
uml1> su -pc "touch $homedir/.ssh/authorized_keys" $1
uml1> fi
uml1> while key=`line`; do
uml1> if ! grep "$key" $homedir/.ssh/authorized_keys > /dev/null 2>&1;
then
uml1> echo $key >> $homedir/.ssh/authorized_keys
uml1> fi
uml1> done
uml1> }
uml1> for file in `ls $UTILDIR/group_* 2> /dev/null`; do
uml1> options=
uml1> myuser=${file#$UTILDIR/group_}
uml1> if [ "$myuser" == "root" ]; then continue; fi
uml1> sed "s/^\*//" $file | add_groups
uml1> if effective_group=`grep "^\*" $file`; then
uml1> options="$options -g ${effective_group#\*}"
uml1> fi
uml1> other_groups=`sed '/^*/d;H;$!d;g;y/\n/,/' $file`
uml1> if grep "^$myuser:" /etc/passwd > /dev/null 2>&1; then
uml1> other_groups="-G `su -pc groups $myuser | sed
's/[[:space:]]\+/,/g'`$other_groups"
uml1> usermod $options $initial_groups$other_groups $myuser
uml1> else
uml1> if [ "$other_groups" != "" ]; then other_groups="-G
${other_groups#,}"; fi
uml1> useradd -m $options $other_groups $myuser
uml1> fi
uml1> done
uml1> for file in `ls $UTILDIR/keyring_* 2> /dev/null`; do
uml1> add_keys ${file#$UTILDIR/keyring_} < $file
uml1> done
host> /bin/chmod a+x /tmp/vnuml_opt_fs.qhFw8I/umlboot
host> /usr/bin/mkisofs -R -q -o
/tmp/vnuml/simulations/tutorial-r1/vms/uml1/fs/opt_fs /tmp/vnuml_opt_fs.qhFw8I/
host> /bin/rm -rf /tmp/vnuml_opt_fs.qhFw8I/
uml2> #!/bin/bash
uml2> # UML boot file generated by vnumlparser.pl at Sa Jan 7 11:03:40 CET 2006
uml2> UTILDIR=/mnt/vnuml
uml2> hostname uml2
uml2> ifconfig eth1 0.0.0.0 promisc up
uml2> ifconfig eth1 10.0.0.2 netmask 255.255.255.0
uml2> route -A inet add default gw 10.0.0.3
uml2> HOSTNAME=$(hostname)
uml2> grep $HOSTNAME /etc/hosts > /dev/null 2>&1
uml2> if [ $? == 1 ]
uml2> then
uml2> echo >> /etc/hosts
uml2> echo \# Hostname configuration >> /etc/hosts
uml2> echo "10.0.0.2 $HOSTNAME" >> /etc/hosts
uml2> fi
uml2> sed -i '/#VNUML/{p;d};/:ctrlaltdel:/!{p;d};s/#\?\(.*\)/#\1/' /etc/inittab
uml2> if ! grep ":ctrlaltdel:.*#VNUML" /etc/inittab > /dev/null 2>&1; then
uml2> echo "ca:12345:ctrlaltdel:halt; #VNUML shutdown" >> /etc/inittab
uml2> fi
uml2> telinit q
uml2> echo init_start > /proc/mconsole
uml2> function add_groups() {
uml2> while group=`line`; do
uml2> if ! grep "^$group:" /etc/group > /dev/null 2>&1; then
uml2> groupadd $group
uml2> fi
uml2> done
uml2> }
uml2> function add_keys() {
uml2> eval homedir=~$1
uml2> if ! [ -d $homedir/.ssh ]; then
uml2> su -pc "mkdir -p $homedir/.ssh" $1
uml2> chmod 700 $homedir/.ssh
uml2> fi
uml2> if ! [ -f $homedir/.ssh/authorized_keys ]; then
uml2> su -pc "touch $homedir/.ssh/authorized_keys" $1
uml2> fi
uml2> while key=`line`; do
uml2> if ! grep "$key" $homedir/.ssh/authorized_keys > /dev/null 2>&1;
then
uml2> echo $key >> $homedir/.ssh/authorized_keys
uml2> fi
uml2> done
uml2> }
uml2> for file in `ls $UTILDIR/group_* 2> /dev/null`; do
uml2> options=
uml2> myuser=${file#$UTILDIR/group_}
uml2> if [ "$myuser" == "root" ]; then continue; fi
uml2> sed "s/^\*//" $file | add_groups
uml2> if effective_group=`grep "^\*" $file`; then
uml2> options="$options -g ${effective_group#\*}"
uml2> fi
uml2> other_groups=`sed '/^*/d;H;$!d;g;y/\n/,/' $file`
uml2> if grep "^$myuser:" /etc/passwd > /dev/null 2>&1; then
uml2> other_groups="-G `su -pc groups $myuser | sed
's/[[:space:]]\+/,/g'`$other_groups"
uml2> usermod $options $initial_groups$other_groups $myuser
uml2> else
uml2> if [ "$other_groups" != "" ]; then other_groups="-G
${other_groups#,}"; fi
uml2> useradd -m $options $other_groups $myuser
uml2> fi
uml2> done
uml2> for file in `ls $UTILDIR/keyring_* 2> /dev/null`; do
uml2> add_keys ${file#$UTILDIR/keyring_} < $file
uml2> done
host> /bin/chmod a+x /tmp/vnuml_opt_fs.7UrIOJ/umlboot
host> /usr/bin/mkisofs -R -q -o
/tmp/vnuml/simulations/tutorial-r1/vms/uml2/fs/opt_fs /tmp/vnuml_opt_fs.7UrIOJ/
host> /bin/rm -rf /tmp/vnuml_opt_fs.7UrIOJ/
uml3> #!/bin/bash
uml3> # UML boot file generated by vnumlparser.pl at Sa Jan 7 11:03:40 CET 2006
uml3> UTILDIR=/mnt/vnuml
uml3> hostname uml3
uml3> ifconfig eth1 0.0.0.0 promisc up
uml3> ifconfig eth1 10.0.0.3 netmask 255.255.255.0
uml3> ifconfig eth2 0.0.0.0 promisc up
uml3> ifconfig eth2 10.0.1.1 netmask 255.255.255.0
uml3> ifconfig eth3 0.0.0.0 promisc up
uml3> ifconfig eth3 10.0.3.1 netmask 255.255.255.0
uml3> route -A inet add -net 10.0.2.0/24 gw 10.0.1.2
uml3> echo 1 > /proc/sys/net/ipv4/ip_forward
uml3> echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
uml3> HOSTNAME=$(hostname)
uml3> grep $HOSTNAME /etc/hosts > /dev/null 2>&1
uml3> if [ $? == 1 ]
uml3> then
uml3> echo >> /etc/hosts
uml3> echo \# Hostname configuration >> /etc/hosts
uml3> echo "10.0.0.3 $HOSTNAME" >> /etc/hosts
uml3> fi
uml3> sed -i '/#VNUML/{p;d};/:ctrlaltdel:/!{p;d};s/#\?\(.*\)/#\1/' /etc/inittab
uml3> if ! grep ":ctrlaltdel:.*#VNUML" /etc/inittab > /dev/null 2>&1; then
uml3> echo "ca:12345:ctrlaltdel:halt; #VNUML shutdown" >> /etc/inittab
uml3> fi
uml3> telinit q
uml3> echo init_start > /proc/mconsole
uml3> function add_groups() {
uml3> while group=`line`; do
uml3> if ! grep "^$group:" /etc/group > /dev/null 2>&1; then
uml3> groupadd $group
uml3> fi
uml3> done
uml3> }
uml3> function add_keys() {
uml3> eval homedir=~$1
uml3> if ! [ -d $homedir/.ssh ]; then
uml3> su -pc "mkdir -p $homedir/.ssh" $1
uml3> chmod 700 $homedir/.ssh
uml3> fi
uml3> if ! [ -f $homedir/.ssh/authorized_keys ]; then
uml3> su -pc "touch $homedir/.ssh/authorized_keys" $1
uml3> fi
uml3> while key=`line`; do
uml3> if ! grep "$key" $homedir/.ssh/authorized_keys > /dev/null 2>&1;
then
uml3> echo $key >> $homedir/.ssh/authorized_keys
uml3> fi
uml3> done
uml3> }
uml3> for file in `ls $UTILDIR/group_* 2> /dev/null`; do
uml3> options=
uml3> myuser=${file#$UTILDIR/group_}
uml3> if [ "$myuser" == "root" ]; then continue; fi
uml3> sed "s/^\*//" $file | add_groups
uml3> if effective_group=`grep "^\*" $file`; then
uml3> options="$options -g ${effective_group#\*}"
uml3> fi
uml3> other_groups=`sed '/^*/d;H;$!d;g;y/\n/,/' $file`
uml3> if grep "^$myuser:" /etc/passwd > /dev/null 2>&1; then
uml3> other_groups="-G `su -pc groups $myuser | sed
's/[[:space:]]\+/,/g'`$other_groups"
uml3> usermod $options $initial_groups$other_groups $myuser
uml3> else
uml3> if [ "$other_groups" != "" ]; then other_groups="-G
${other_groups#,}"; fi
uml3> useradd -m $options $other_groups $myuser
uml3> fi
uml3> done
uml3> for file in `ls $UTILDIR/keyring_* 2> /dev/null`; do
uml3> add_keys ${file#$UTILDIR/keyring_} < $file
uml3> done
host> /bin/chmod a+x /tmp/vnuml_opt_fs.QvPScP/umlboot
host> /usr/bin/mkisofs -R -q -o
/tmp/vnuml/simulations/tutorial-r1/vms/uml3/fs/opt_fs /tmp/vnuml_opt_fs.QvPScP/
host> /bin/rm -rf /tmp/vnuml_opt_fs.QvPScP/
uml4> #!/bin/bash
uml4> # UML boot file generated by vnumlparser.pl at Sa Jan 7 11:03:40 CET 2006
uml4> UTILDIR=/mnt/vnuml
uml4> hostname uml4
uml4> ifconfig eth1 0.0.0.0 promisc up
uml4> ifconfig eth1 10.0.1.2 netmask 255.255.255.0
uml4> ifconfig eth2 0.0.0.0 promisc up
uml4> ifconfig eth2 10.0.2.1 netmask 255.255.255.0
uml4> route -A inet add default gw 10.0.1.1
uml4> echo 1 > /proc/sys/net/ipv4/ip_forward
uml4> echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
uml4> HOSTNAME=$(hostname)
uml4> grep $HOSTNAME /etc/hosts > /dev/null 2>&1
uml4> if [ $? == 1 ]
uml4> then
uml4> echo >> /etc/hosts
uml4> echo \# Hostname configuration >> /etc/hosts
uml4> echo "10.0.1.2 $HOSTNAME" >> /etc/hosts
uml4> fi
uml4> sed -i '/#VNUML/{p;d};/:ctrlaltdel:/!{p;d};s/#\?\(.*\)/#\1/' /etc/inittab
uml4> if ! grep ":ctrlaltdel:.*#VNUML" /etc/inittab > /dev/null 2>&1; then
uml4> echo "ca:12345:ctrlaltdel:halt; #VNUML shutdown" >> /etc/inittab
uml4> fi
uml4> telinit q
uml4> echo init_start > /proc/mconsole
uml4> function add_groups() {
uml4> while group=`line`; do
uml4> if ! grep "^$group:" /etc/group > /dev/null 2>&1; then
uml4> groupadd $group
uml4> fi
uml4> done
uml4> }
uml4> function add_keys() {
uml4> eval homedir=~$1
uml4> if ! [ -d $homedir/.ssh ]; then
uml4> su -pc "mkdir -p $homedir/.ssh" $1
uml4> chmod 700 $homedir/.ssh
uml4> fi
uml4> if ! [ -f $homedir/.ssh/authorized_keys ]; then
uml4> su -pc "touch $homedir/.ssh/authorized_keys" $1
uml4> fi
uml4> while key=`line`; do
uml4> if ! grep "$key" $homedir/.ssh/authorized_keys > /dev/null 2>&1;
then
uml4> echo $key >> $homedir/.ssh/authorized_keys
uml4> fi
uml4> done
uml4> }
uml4> for file in `ls $UTILDIR/group_* 2> /dev/null`; do
uml4> options=
uml4> myuser=${file#$UTILDIR/group_}
uml4> if [ "$myuser" == "root" ]; then continue; fi
uml4> sed "s/^\*//" $file | add_groups
uml4> if effective_group=`grep "^\*" $file`; then
uml4> options="$options -g ${effective_group#\*}"
uml4> fi
uml4> other_groups=`sed '/^*/d;H;$!d;g;y/\n/,/' $file`
uml4> if grep "^$myuser:" /etc/passwd > /dev/null 2>&1; then
uml4> other_groups="-G `su -pc groups $myuser | sed
's/[[:space:]]\+/,/g'`$other_groups"
uml4> usermod $options $initial_groups$other_groups $myuser
uml4> else
uml4> if [ "$other_groups" != "" ]; then other_groups="-G
${other_groups#,}"; fi
uml4> useradd -m $options $other_groups $myuser
uml4> fi
uml4> done
uml4> for file in `ls $UTILDIR/keyring_* 2> /dev/null`; do
uml4> add_keys ${file#$UTILDIR/keyring_} < $file
uml4> done
host> /bin/chmod a+x /tmp/vnuml_opt_fs.fYxL2U/umlboot
host> /usr/bin/mkisofs -R -q -o
/tmp/vnuml/simulations/tutorial-r1/vms/uml4/fs/opt_fs /tmp/vnuml_opt_fs.fYxL2U/
host> /bin/rm -rf /tmp/vnuml_opt_fs.fYxL2U/
uml5> #!/bin/bash
uml5> # UML boot file generated by vnumlparser.pl at Sa Jan 7 11:03:40 CET 2006
uml5> UTILDIR=/mnt/vnuml
uml5> hostname uml5
uml5> ifconfig eth1 0.0.0.0 promisc up
uml5> ifconfig eth1 10.0.2.2 netmask 255.255.255.0
uml5> route -A inet add default gw 10.0.2.1
uml5> HOSTNAME=$(hostname)
uml5> grep $HOSTNAME /etc/hosts > /dev/null 2>&1
uml5> if [ $? == 1 ]
uml5> then
uml5> echo >> /etc/hosts
uml5> echo \# Hostname configuration >> /etc/hosts
uml5> echo "10.0.2.2 $HOSTNAME" >> /etc/hosts
uml5> fi
uml5> sed -i '/#VNUML/{p;d};/:ctrlaltdel:/!{p;d};s/#\?\(.*\)/#\1/' /etc/inittab
uml5> if ! grep ":ctrlaltdel:.*#VNUML" /etc/inittab > /dev/null 2>&1; then
uml5> echo "ca:12345:ctrlaltdel:halt; #VNUML shutdown" >> /etc/inittab
uml5> fi
uml5> telinit q
uml5> echo init_start > /proc/mconsole
uml5> function add_groups() {
uml5> while group=`line`; do
uml5> if ! grep "^$group:" /etc/group > /dev/null 2>&1; then
uml5> groupadd $group
uml5> fi
uml5> done
uml5> }
uml5> function add_keys() {
uml5> eval homedir=~$1
uml5> if ! [ -d $homedir/.ssh ]; then
uml5> su -pc "mkdir -p $homedir/.ssh" $1
uml5> chmod 700 $homedir/.ssh
uml5> fi
uml5> if ! [ -f $homedir/.ssh/authorized_keys ]; then
uml5> su -pc "touch $homedir/.ssh/authorized_keys" $1
uml5> fi
uml5> while key=`line`; do
uml5> if ! grep "$key" $homedir/.ssh/authorized_keys > /dev/null 2>&1;
then
uml5> echo $key >> $homedir/.ssh/authorized_keys
uml5> fi
uml5> done
uml5> }
uml5> for file in `ls $UTILDIR/group_* 2> /dev/null`; do
uml5> options=
uml5> myuser=${file#$UTILDIR/group_}
uml5> if [ "$myuser" == "root" ]; then continue; fi
uml5> sed "s/^\*//" $file | add_groups
uml5> if effective_group=`grep "^\*" $file`; then
uml5> options="$options -g ${effective_group#\*}"
uml5> fi
uml5> other_groups=`sed '/^*/d;H;$!d;g;y/\n/,/' $file`
uml5> if grep "^$myuser:" /etc/passwd > /dev/null 2>&1; then
uml5> other_groups="-G `su -pc groups $myuser | sed
's/[[:space:]]\+/,/g'`$other_groups"
uml5> usermod $options $initial_groups$other_groups $myuser
uml5> else
uml5> if [ "$other_groups" != "" ]; then other_groups="-G
${other_groups#,}"; fi
uml5> useradd -m $options $other_groups $myuser
uml5> fi
uml5> done
uml5> for file in `ls $UTILDIR/keyring_* 2> /dev/null`; do
uml5> add_keys ${file#$UTILDIR/keyring_} < $file
uml5> done
host> /bin/chmod a+x /tmp/vnuml_opt_fs.UGshUV/umlboot
host> /usr/bin/mkisofs -R -q -o
/tmp/vnuml/simulations/tutorial-r1/vms/uml5/fs/opt_fs /tmp/vnuml_opt_fs.UGshUV/
host> /bin/rm -rf /tmp/vnuml_opt_fs.UGshUV/
host> /bin/chown 0 /tmp/vnuml_notify.ctl.Lt6bn1
host> /bin/chown -R 0 /tmp/vnuml
daemon: /usr/local/share/vnuml/kernels/linux
ubd0=/tmp/vnuml/simulations/tutorial-r1/vms/uml1/fs/root_cow_fs,/usr/local/share/vnuml/filesystems/root_fs
ubd1=/tmp/vnuml/simulations/tutorial-r1/vms/uml1/fs/opt_fs root=/dev/ubda
eth1=daemon,fe:fd:0:0:1:1,unix,/tmp/vnuml/networks/Net0.ctl
uml_dir=/tmp/vnuml/simulations/tutorial-r1/vms/uml1/ umid=run
mconsole=notify:/tmp/vnuml_notify.ctl.Lt6bn1
Checking PROT_EXEC mmap in /tmp...OK
Checking for the skas3 patch in the host:
- /proc/mm...found
- PTRACE_FAULTINFO...found
- PTRACE_LDT...found
UML running in SKAS3 mode
Checking that ptrace can change system call numbers...OK
Checking syscall emulation patch for ptrace...OK
Checking advanced syscall emulation patch for ptrace...OK
Linux version 2.6.14-usermode-r1-bs3 ([EMAIL PROTECTED]) (gcc-Version 3.4.5
(Gentoo 3.4.5, HTB-3.4.4-1.00, ssp-3.4.5-1.0, pie-8.7.9)) #7 Fri Jan 6 13:10:41
Local time zone must be set--see zic manua
Built 1 zonelists
Kernel command line:
ubd0=/tmp/vnuml/simulations/tutorial-r1/vms/uml1/fs/root_cow_fs,/usr/local/share/vnuml/filesystems/root_fs
ubd1=/tmp/vnuml/simulations/tutorial-r1/vms/uml1/fs/opt_fs root=/dev/ubda
eth1=daemon,fe:fd:0:0:1:1,unix,/tmp/vnuml/networks/Net0.ctl
uml_dir=/tmp/vnuml/simulations/tutorial-r1/vms/uml1/
mconsole=notify:/tmp/vnuml_notify.ctl.Lt6bn1
PID hash table entries: 256 (order: 8, 4096 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 28184k available
Mount-cache hash table entries: 512
Checking for host processor cmov support...Yes
Checking for host processor xmm support...No
Checking that host ptys support output SIGIO...Yes
Checking that host ptys support SIGIO on close...No, enabling workaround
Checking for /dev/anon on the host...Not available (open failed with errno 2)
Using 2.6 host AIO
NET: Registered protocol family 16
Netdevice 1 (fe:fd:00:00:01:01) : daemon backend (uml_switch version 3) -
unix:/tmp/vnuml/networks/Net0.ctl
mconsole (version 2) initialized on
/tmp/vnuml/simulations/tutorial-r1/vms/uml1/run/mconsole
ubd: Synchronous mode
Loading Reiser4. See www.namesys.com for a description of Reiser4.
Initializing Cryptographic API
io scheduler noop registered
io scheduler cfq registered
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
Initialized stdio console driver
Console initialized on /dev/tty0
Initializing software serial port version 1
Creating "/tmp/vnuml/simulations/tutorial-r1/vms/uml1/fs/root_cow_fs" as COW
file for "/usr/local/share/vnuml/filesystems/root_fs"
ubda: unknown partition table
ubdb: unknown partition table
ReiserFS: ubda: found reiserfs format "3.6" with standard journal
ReiserFS: ubda: using ordered data mode
ReiserFS: ubda: journal params: device ubda, size 8192, journal first block 18,
max trans len 1024, max batch 900, max commit age 30, max trans age 30
ReiserFS: ubda: checking transaction log (ubda)
ReiserFS: ubda: Using r5 hash to sort names
VFS: Mounted root (reiserfs filesystem) readonly.
winch_thread : new_tty_pgrp failed, err = 1
Boot timeout for virtual machine uml1 reached. Abort, Retry, or Continue?
[A/r/c]: