Package: util-vserver
Version: 0.30.204-5
Am trying to get a cserver set up running on a sparc64 machine. The
kernel patch works fine and the kernel runs as normal. I seem to be
able to change security context:
devnull:~# chcontext --xid 1122 bash
New security context is 1122
devnull:~# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.3 0.0 1632 704 ? S 02:28 0:13 init [2]
root 8900 0.9 0.0 3120 1776 ttyS0 S 03:26 0:00 bash
root 8903 0.0 0.0 2952 1136 ttyS0 R+ 03:26 0:00 ps aux
devnull:~#
and I seem to be able to chbind however vserver seems to throw bus
errors.
When executing:
newvserver --hostname XXX --domain YYY --ip ZZZ
all works fine except starting the server
<snip>
WARNING: can not find configuration, assuming legacy method
/usr/sbin/newvserver: line 606: 8764 Bus error vserver
$VHOST
exec /vserver-config.sh
WARNING: can not find configuration, assuming legacy method
/usr/sbin/newvserver: line 636: 8781 Bus error vserver
$VHOST
exec /etc/init.d/rc 0
WARNING: can not find configuration, assuming legacy method
Stopping the virtual server frequency
Server frequency is not running
Restarting rebootmgr.
Stopping the reboot manager
Starting the reboot manager
You should now adjust /etc/vservers/frequency.conf to suit your needs,
or else just go ahead and type Vserver frequency start' to start
your new virtual server. debian/rules!
<>
and trying to start the server manually gives:
devnull:~# vserver XXX start
WARNING: can not find configuration, assuming legacy method
Starting the virtual server XXX
Server XXX is not running
/usr/lib/util-vserver/legacy/vserver: line 779: 8856 Bus error
$NICECMD $_CHBIND $SILENT $IPOPT --bcast $IPROOTBCAST $_CHCONTEXT_COMPAT
$SILENT $DISCONNECT $CAPS $FLAGS $
CTXOPT $HOSTOPT $DOMAINOPT --secure $_SAVE_S_CONTEXT $PKGSTATEDIR/$1.ctx
$_CAPCHROOT $CHROOTOPT . $STARTCMD
devnull:~#
Trying to: strace -v vserver -v XXX exec bash gives
execve("/usr/sbin/chbind", ["/usr/sbin/chbind", "--ip", "ZZZ",
"--bcast", "ZZ.255", "/usr/lib/util-vserver/chcontext-compat", "--flag",
"lock", "--flag", "nproc", "--cap",
"CAP_NET_RAW", "--secure", "--hostname", "XXX",
"/usr/lib/util-vserver/legacy/save_s_context",
"/var/run/vservers/XXX.ctx", "/usr/lib/util-vserver/capchroot",
"--suid", "ro
ot", ".", "bash"], ["HZ=100", "HOSTNAME=XXX", "TERM=vt102",
"SHELL=/bin/bash", "HUSHLOGIN=FALSE",
"OLDPWD=/var/lib/vservers/frequency", "USER=root",
"PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin",
"MAIL=/var/mail/root", "PWD=/var/lib/vservers/XXX",
"[EMAIL PROTECTED]:XXX \\W]", "HOME=/root", "SHLVL=1"
, "LOGNAME=root"]) = 0
open("/proc/net/dev", O_RDONLY) = 3
read(3, "Inter-|
Receive | Transmit\n
face |bytes packets errs drop fifo frame compressed
multicast|bytes packets errs drop fifo
colls carrier compressed\n lo: 782 8 0 0 0
0 0 0 782 8 0 0 0 0
0 0\n eth0:39603419 29767 0 0
0 0 0 0 1341471 19374 0 0 0
0 0 0\n eth1: 0 0 0 0 0
0 0 0 "..., 8192) = 1553
read(3, "", 6639) = 0
close(3) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x70000000
open("/proc/net/dev", O_RDONLY) = 3
read(3, "Inter-|
Receive | Transmit\n
face |bytes packets errs drop fifo frame compressed
multicast|bytes packets errs drop fifo
colls carrier compressed\n lo: 782 8 0 0 0
0 0 0 782 8 0 0 0 0
0 0\n eth0:39603419 29767 0 0
0 0 0 0 1341471 19374 0 0 0
0 0 0\n eth1: 0 0 0 0 0
0 0 0 "..., 8192) = 1553
read(3, "", 6639) = 0
close(3) = 0
--- SIGBUS (Bus error) @ 0 (0) ---
+++ killed by SIGBUS +++
Stracing this subprocess gives the same output - thus I conclude that
the problem is with chbind:
[00010a90] open("/proc/net/dev", O_RDONLY) = 3
[00010a90] read(3, "Inter-| Receive "..., 8192) = 1553
[00010a90] read(3, "", 6639) = 0
[00010a90] close(3) = 0
[00010a90] mmap(NULL, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x70000000
[00010a90] open("/proc/net/dev", O_RDONLY) = 3
[00010a90] read(3, "Inter-| Receive "..., 8192) = 1553
[00010a90] read(3, "", 6639) = 0
[00010a90] close(3) = 0
[00011130] --- SIGBUS (Bus error) @ 0 (0) ---
[????????] +++ killed by SIGBUS +++
I appreciate this is something of an obscure bug but I'd be most
greatful for any help fixing it.
Cheers,
- Martin
--
Martin
[EMAIL PROTECTED]
"Seasons change, things come to pass"
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]