[Vserver] x with nvidia module in vserver?

2005-10-04 Thread Torsten Becker

Hello List,

I try to run a complete workstation in a vserver including a x-server.
This is no problem since I do not try to use the hardware acceleration 
with the nvidia kernel module.

I have set several capabilities for the vserver:

CAP_CHOWN
CAP_DAC_READ_SEARCH
CAP_FOWNER
CAP_FSETID
CAP_KILL
CAP_SETGID
CAP_SETUID
CAP_SETPCAP
CAP_NET_BIND_SERVICE
CAP_NET_BROADCAST
CAP_NET_RAW
CAP_SYS_MODULE
CAP_SYS_RAWIO
CAP_SYS_CHROOT
CAP_SYS_PTRACE
CAP_SYS_PACCT
CAP_MKNOD
CAP_LEASE

I copied the device files from the host to the vserver. If I use the 
nv driver for xfree all is well. But if I try to use nvidia xfree fails

with the error unable to load kernel module. This is clear for me.
Then I tried to figure out which device is used with the nv driver. I 
tried to copa the device file /dev/nvidia0-4 from the host to 
/dev/video0-4 in the vserver.

But the 3d-accel does not function...

Does anyone have a hint for me, how I can manage this? Or is it impossible?
I use this configuration to deploy the workstations to a pool of pc's. 
Therefor the security between host and vserver is not first goal.


Greets, Torsten

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] x with nvidia module in vserver?

2005-10-04 Thread Chuck
On Tuesday 04 October 2005 08:08 am, Torsten Becker wrote:

I have not tried this yet, but this is one of my priorities after I finish the 
servers. I also would be interested in a solution.

One question. Do you pre-load the nvidia module at startup so X doesn't have 
to try to insert it into the kernel?

I am going to need full functionality since I run a heavily loaded twinview 
desktop.

 Hello List,
 
 I try to run a complete workstation in a vserver including a x-server.
 This is no problem since I do not try to use the hardware acceleration 
 with the nvidia kernel module.
 I have set several capabilities for the vserver:
 
 CAP_CHOWN
 CAP_DAC_READ_SEARCH
 CAP_FOWNER
 CAP_FSETID
 CAP_KILL
 CAP_SETGID
 CAP_SETUID
 CAP_SETPCAP
 CAP_NET_BIND_SERVICE
 CAP_NET_BROADCAST
 CAP_NET_RAW
 CAP_SYS_MODULE
 CAP_SYS_RAWIO
 CAP_SYS_CHROOT
 CAP_SYS_PTRACE
 CAP_SYS_PACCT
 CAP_MKNOD
 CAP_LEASE
 
 I copied the device files from the host to the vserver. If I use the 
 nv driver for xfree all is well. But if I try to use nvidia xfree fails
 with the error unable to load kernel module. This is clear for me.
 Then I tried to figure out which device is used with the nv driver. I 
 tried to copa the device file /dev/nvidia0-4 from the host to 
 /dev/video0-4 in the vserver.
 But the 3d-accel does not function...
 
 Does anyone have a hint for me, how I can manage this? Or is it impossible?
 I use this configuration to deploy the workstations to a pool of pc's. 
 Therefor the security between host and vserver is not first goal.
 
 Greets, Torsten
 
 ___
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver
 

-- 

Chuck

...and the hordes of M$*ft users descended upon me in their anger,
and asked 'Why do you not get the viruses or the BlueScreensOfDeath
or insecure system troubles and slowness or pay through the nose 
for an OS as *we* do?!!', and I answered...'I use Linux'. 
The Book of John, chapter 1, page 1, and end of book


___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] what am i doing wrong with vserver exec?

2005-10-04 Thread Chuck
I am trying to execute this function from a cron off the host and it isnt 
working.

/usr/sbin/vserver prometheus exec /bin/rm 
-f /var/spool/qmailscan/quarantine/new/*


darn wordwrap.

I am trying not to install cron in guests unless I absolutely must.

-- 

Chuck

...and the hordes of M$*ft users descended upon me in their anger,
and asked 'Why do you not get the viruses or the BlueScreensOfDeath
or insecure system troubles and slowness or pay through the nose 
for an OS as *we* do?!!', and I answered...'I use Linux'. 
The Book of John, chapter 1, page 1, and end of book


___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] x with nvidia module in vserver?

2005-10-04 Thread Torsten Becker

Chuck schrieb:
Since the vserver can not load a module I load it in the host.
The host is my also my testsystem for the nvidia-module. I have a 
complete x-workstation installed in the host.


Greets, Torsten


On Tuesday 04 October 2005 08:08 am, Torsten Becker wrote:

I have not tried this yet, but this is one of my priorities after I finish the 
servers. I also would be interested in a solution.


One question. Do you pre-load the nvidia module at startup so X doesn't have 
to try to insert it into the kernel?


I am going to need full functionality since I run a heavily loaded twinview 
desktop.


 


Hello List,

I try to run a complete workstation in a vserver including a x-server.
This is no problem since I do not try to use the hardware acceleration 
with the nvidia kernel module.

I have set several capabilities for the vserver:

CAP_CHOWN
CAP_DAC_READ_SEARCH
CAP_FOWNER
CAP_FSETID
CAP_KILL
CAP_SETGID
CAP_SETUID
CAP_SETPCAP
CAP_NET_BIND_SERVICE
CAP_NET_BROADCAST
CAP_NET_RAW
CAP_SYS_MODULE
CAP_SYS_RAWIO
CAP_SYS_CHROOT
CAP_SYS_PTRACE
CAP_SYS_PACCT
CAP_MKNOD
CAP_LEASE

I copied the device files from the host to the vserver. If I use the 
nv driver for xfree all is well. But if I try to use nvidia xfree fails

with the error unable to load kernel module. This is clear for me.
Then I tried to figure out which device is used with the nv driver. I 
tried to copa the device file /dev/nvidia0-4 from the host to 
/dev/video0-4 in the vserver.

But the 3d-accel does not function...

Does anyone have a hint for me, how I can manage this? Or is it impossible?
I use this configuration to deploy the workstations to a pool of pc's. 
Therefor the security between host and vserver is not first goal.


Greets, Torsten

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver

   



 




___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] x with nvidia module in vserver?

2005-10-04 Thread Chuck
On Tuesday 04 October 2005 08:22 am, Torsten Becker wrote:

hmm...for me maybe I should leave my big workstation alone and just create a 
vserver for one guest workstation on it which im assuming could load nv since 
it is local and honestly it doesnt even need to access the video card. will 
research to see if i can run x without a video device:).  i only use that 2nd 
workstation via a vnc window off my main one and 2 other people access it 
from remote. what im trying to do is to free up a whole computer dedicated 
only to running a remote desktop.

did you copy the video0-4 device file or did you use mknod to create it?

this will be interesting if someone who has been successful can tell us what 
needs to be done :)

 Chuck schrieb:
 Since the vserver can not load a module I load it in the host.
 The host is my also my testsystem for the nvidia-module. I have a 
 complete x-workstation installed in the host.
 
 Greets, Torsten
 
 On Tuesday 04 October 2005 08:08 am, Torsten Becker wrote:
 
 I have not tried this yet, but this is one of my priorities after I finish 
the 
 servers. I also would be interested in a solution.
 
 One question. Do you pre-load the nvidia module at startup so X doesn't 
have 
 to try to insert it into the kernel?
 
 I am going to need full functionality since I run a heavily loaded twinview 
 desktop.
 
   
 
 Hello List,
 
 I try to run a complete workstation in a vserver including a x-server.
 This is no problem since I do not try to use the hardware acceleration 
 with the nvidia kernel module.
 I have set several capabilities for the vserver:
 
 CAP_CHOWN
 CAP_DAC_READ_SEARCH
 CAP_FOWNER
 CAP_FSETID
 CAP_KILL
 CAP_SETGID
 CAP_SETUID
 CAP_SETPCAP
 CAP_NET_BIND_SERVICE
 CAP_NET_BROADCAST
 CAP_NET_RAW
 CAP_SYS_MODULE
 CAP_SYS_RAWIO
 CAP_SYS_CHROOT
 CAP_SYS_PTRACE
 CAP_SYS_PACCT
 CAP_MKNOD
 CAP_LEASE
 
 I copied the device files from the host to the vserver. If I use the 
 nv driver for xfree all is well. But if I try to use nvidia xfree 
fails
 with the error unable to load kernel module. This is clear for me.
 Then I tried to figure out which device is used with the nv driver. I 
 tried to copa the device file /dev/nvidia0-4 from the host to 
 /dev/video0-4 in the vserver.
 But the 3d-accel does not function...
 
 Does anyone have a hint for me, how I can manage this? Or is it 
impossible?
 I use this configuration to deploy the workstations to a pool of pc's. 
 Therefor the security between host and vserver is not first goal.
 
 Greets, Torsten
 
 ___
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver
 
 
 
 
   
 
 
 
 ___
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver
 

-- 

Chuck

...and the hordes of M$*ft users descended upon me in their anger,
and asked 'Why do you not get the viruses or the BlueScreensOfDeath
or insecure system troubles and slowness or pay through the nose 
for an OS as *we* do?!!', and I answered...'I use Linux'. 
The Book of John, chapter 1, page 1, and end of book


___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] x with nvidia module in vserver?

2005-10-04 Thread Chuck
On Tuesday 04 October 2005 08:22 am, Torsten Becker wrote:

just thought of something. I have not tried this yet, but have you tried 
loading X without a driver in the device configuration? or maybe a 'dummy' 
driver is needed..  i would think it can be made to latch onto the driver 
already loaded.


 Chuck schrieb:
 Since the vserver can not load a module I load it in the host.
 The host is my also my testsystem for the nvidia-module. I have a 
 complete x-workstation installed in the host.
 
 Greets, Torsten
 
 On Tuesday 04 October 2005 08:08 am, Torsten Becker wrote:
 
 I have not tried this yet, but this is one of my priorities after I finish 
the 
 servers. I also would be interested in a solution.
 
 One question. Do you pre-load the nvidia module at startup so X doesn't 
have 
 to try to insert it into the kernel?
 
 I am going to need full functionality since I run a heavily loaded twinview 
 desktop.
 
   
 
 Hello List,
 
 I try to run a complete workstation in a vserver including a x-server.
 This is no problem since I do not try to use the hardware acceleration 
 with the nvidia kernel module.
 I have set several capabilities for the vserver:
 
 CAP_CHOWN
 CAP_DAC_READ_SEARCH
 CAP_FOWNER
 CAP_FSETID
 CAP_KILL
 CAP_SETGID
 CAP_SETUID
 CAP_SETPCAP
 CAP_NET_BIND_SERVICE
 CAP_NET_BROADCAST
 CAP_NET_RAW
 CAP_SYS_MODULE
 CAP_SYS_RAWIO
 CAP_SYS_CHROOT
 CAP_SYS_PTRACE
 CAP_SYS_PACCT
 CAP_MKNOD
 CAP_LEASE
 
 I copied the device files from the host to the vserver. If I use the 
 nv driver for xfree all is well. But if I try to use nvidia xfree 
fails
 with the error unable to load kernel module. This is clear for me.
 Then I tried to figure out which device is used with the nv driver. I 
 tried to copa the device file /dev/nvidia0-4 from the host to 
 /dev/video0-4 in the vserver.
 But the 3d-accel does not function...
 
 Does anyone have a hint for me, how I can manage this? Or is it 
impossible?
 I use this configuration to deploy the workstations to a pool of pc's. 
 Therefor the security between host and vserver is not first goal.
 
 Greets, Torsten
 
 ___
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver
 
 
 
 
   
 
 
 
 ___
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver
 

-- 

Chuck

...and the hordes of M$*ft users descended upon me in their anger,
and asked 'Why do you not get the viruses or the BlueScreensOfDeath
or insecure system troubles and slowness or pay through the nose 
for an OS as *we* do?!!', and I answered...'I use Linux'. 
The Book of John, chapter 1, page 1, and end of book


___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] x with nvidia module in vserver?

2005-10-04 Thread Patrice Levesque

 research to see if i can run x without a video device:).  

Maybe have a look at Xvfb ? Dunno about remote sessions though.


-- 
 --|--
|
Patrice Levesque
 http://ptaff.ca/
[EMAIL PROTECTED]
|
 --|--
--


pgpMUaSC8UN7a.pgp
Description: PGP signature
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] what am i doing wrong with vserver exec?

2005-10-04 Thread Christian Heim
On Tuesday 04 October 2005 14:20, Chuck wrote:
 I am trying to execute this function from a cron off the host and it isnt
 working.

 /usr/sbin/vserver prometheus exec /bin/rm
 -f /var/spool/qmailscan/quarantine/new/*

Well thats how it works here :)

/usr/bin/vserver ns exec rm -rf /var/tmp/portage/

or even

/usr/bin/vserver mirror exec /root/bin/rsync-mirror-os.sh
-- 
Christian Heim [EMAIL PROTECTED]
Gentoo Linux Developer (VServer)


pgpB4uu96PjwY.pgp
Description: PGP signature
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] x with nvidia module in vserver?

2005-10-04 Thread Bodo Eggert
On Tue, 4 Oct 2005, Torsten Becker wrote:

 I try to run a complete workstation in a vserver including a x-server.
 This is no problem since I do not try to use the hardware acceleration 
 with the nvidia kernel module.
 I have set several capabilities for the vserver:

snip

That's enough to make the vserver insecure.

 Does anyone have a hint for me, how I can manage this? Or is it impossible?
 I use this configuration to deploy the workstations to a pool of pc's. 
 Therefor the security between host and vserver is not first goal.

If your X11 is exploited, you're toast, so you can as well run X11 from 
the host and make it contact the xdm running in the vserver.

Off cause this isn't as flexble as running in the vserver, but unless 
you're testing different X-Servers, this should be a minor problem.

However, I don't know if 3d support is network transparent, and I can't 
test it here.
-- 
Funny quotes:
30. Why is a person who plays the piano called a pianist but a person who
drives a race car not called a racist?
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] what am i doing wrong with vserver exec?

2005-10-04 Thread Chuck
On Tuesday 04 October 2005 08:43 am, Christian Heim wrote:

odd. it doesnt give any error yet the files remain. wonder if it could be 
permissions although as root it should not matter to a script executed as 
root...

this is one of the files to be deleted


-rw---  1 qscand nofiles 86449 Oct  4 06:38 prometheus112842211069422533

Chuck

 On Tuesday 04 October 2005 14:20, Chuck wrote:
  I am trying to execute this function from a cron off the host and it isnt
  working.
 
  /usr/sbin/vserver prometheus exec /bin/rm
  -f /var/spool/qmailscan/quarantine/new/*
 
 Well thats how it works here :)
 
 /usr/bin/vserver ns exec rm -rf /var/tmp/portage/
 
 or even
 
 /usr/bin/vserver mirror exec /root/bin/rsync-mirror-os.sh
 -- 
 Christian Heim [EMAIL PROTECTED]
 Gentoo Linux Developer (VServer)
 

-- 

Chuck

...and the hordes of M$*ft users descended upon me in their anger,
and asked 'Why do you not get the viruses or the BlueScreensOfDeath
or insecure system troubles and slowness or pay through the nose 
for an OS as *we* do?!!', and I answered...'I use Linux'. 
The Book of John, chapter 1, page 1, and end of book


___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] what am i doing wrong with vserver exec?

2005-10-04 Thread Enrico Scholz
[EMAIL PROTECTED] (Stephen Harris) writes:

 /usr/sbin/vserver prometheus exec /bin/rm -f 
 /var/spool/qmailscan/quarantine/new/*
 ...
 However, why not just use the host to remove the files?

Because of symlinks like

| /vservers/prometheus/var/spool/qmailscan/quarantine/new - /etc

or an other filesystem layout because of different namespaces.


The security relevant part of the first issue can be workarounded by
tools like 'chroot-sh' and the second issue by 'vnamespace -e'. But
'vserver ... exec' is more cleaner and solves the functionality relevant
part of the first issue also.


   /bin/rm -f /vservers/prometheus/var/spool/qmailscan/quarantine/new/*




Enrico


pgpAiBXOlYLkc.pgp
Description: PGP signature
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] fatal errors starting and stopping a guest

2005-10-04 Thread Chuck
this one is really odd. 

im using gentoo with
kernel 2.6.13.1-vs2.1.0-rc2
from vanilla kernel and vserver patch
util-vserver-0.30.208-r3
baselayout-vserver-1.12.0_pre8
for some reason i could never get the 1.11.13-r1

the machine is a dual processor p3-500 machine with intel mobo.

i have been having stop/start problems with this installation from the start. 
the single proc system has exactly the same setups and it has no problems.

initially it had problems when it came to mount/unmount.. even on a successful 
stop randomly i would get an error mounting in fstab, so usually going in and 
removing the contents of mtab cured it.  when i enabled mounting the shared 
portage directories in the etc/vserver/fstab, it would always fail on stop 
not able to unmount file systems. i suspect it would try unmounting distfiles 
after portage was unmounted thereby making distfiles invalid.


it seems that  i have no trouble starting/stopping guests within a few min 
after a host reboot, but after some time then the error occurs.. the last 
time i tried an experiment and went into each guest and did an orderly manual 
shut down of each running service, then exited and stopped them from the 
host. the first one errored out with the messages below.. at that point none 
of them shut down cleanly. and when i went to reboot the host using reboot, 
it did a power down instead!!!  i just made sure acpi is off in the kernel 
because i could not restart the host at that point by a remote power cycle.

another thing weird is the /etc/init.d/vserver script is not auto-starting the 
guests.. it tries because the ip addresses are still listed in each nic but 
no trace of the guests is present in the process list. and when i start them 
manually, they start with no other error than the expected RTNETLINK file 
exists nonfatal error.


the first error i received was on the first guest to be shut down:

==
apollo rio # vserver prometheus stop
/usr/lib/util-vserver/vserver.functions: line 804: 28440 Segmentation fault \   
  $_NOHUP $_VWAIT --timeout $VSHELPER_SYNC_TIMEOUT --terminate \
--status-fd 3 $2 $_is_tmpdir/out 2$_is_tmpdir/err 3$_is_tmpdir/fifo
internal error: 'vwait' exited with an unexpected status ''; I will
try to continue but be prepared for unexpected events.
* Prometheus Stopped
=

btw, the start and stopped messages are my additions in the 
pre-start/post-stop scripts.


then, when i tried to start it again i got:

==
apollo ~ # vserver prometheus start
* Prometheus starting
1Unable to handle kernel NULL pointer dereference at virtual address 

 printing eip:
c0136b7e
*pde = 
Oops: 0002 [#9]
SMP
Modules linked in:
CPU:1
EIP:0060:[c0136b7e]Not tainted VLI
EFLAGS: 00010246   (2.6.13.1-vs2.1.0-rc2)
EIP is at __dealloc_vx_info+0xe/0x50
eax:    ebx: 0d4d   ecx:    edx: f5807000
esi: ffef   edi: f5807000   ebp: eb0da000   esp: eb0dbf68
ds: 007b   es: 007b   ss: 0068
Process vcontext (pid: 31199, threadinfo=eb0da000 task=f5adb040)
Stack: eb0da000 c0136d52 f5807000 0d4d  feff c01375b8 0d4d
   c1923380   0003  0d4d c0136423 0d4d
    09010001 0804bcd4 bfa70704 c0102ff9 09010001 0d4d 
Call Trace:
 [c0136d52] __create_vx_info+0x92/0x1c0
 [c01375b8] vc_ctx_create+0x98/0x100
 [c0136423] sys_vserver+0x163/0x540
 [c0102ff9] syscall_call+0x7/0xb
Code: 4d c2 83 f8 01 89 c1 7e 9e e9 bb fd ff ff 0f bc c0 e9 9f fd ff ff 8d b4 
26 00 00 00 00 83 ec 04 8b 54 24 08 8b 02 8b 4a 04 85 c0 89 01 74 03 89 48 
04 81 4a 18 00 80 00 00 c7 42 04 00 02 20 00
 /usr/lib/util-vserver/vserver.start: line 147: 31199 Segmentation fault  
[EMAIL PROTECTED] $_CHBIND [EMAIL PROTECTED] -- $_EXEC_ULIMIT 
$VSERVER_DIR/ulimits $_VCONTEXT --create [EMAIL PROTECTED] -- 
${USE_VNAMESPACE:+$_VNAMESPACE --set -- } $_VLIMIT --dir 
$VSERVER_DIR/rlimits --missingok -- $_VSCHED --xid self [EMAIL PROTECTED] 
-- $_VUNAME --xid self --dir $VSERVER_DIR/uts --missingok -- 
[EMAIL PROTECTED] $_VUNAME --xid self --set -t 
context=$VSERVER_DIR -- $_VATTRIBUTE --set [EMAIL PROTECTED] -- 
$_SAVE_CTXINFO $VSERVER_DIR $_ENV -i -- $_VCONTEXT --migrate-self 
--endsetup --chroot $SILENT_OPT [EMAIL PROTECTED] 
[EMAIL PROTECTED] -- [EMAIL PROTECTED]

An error occured while executing the vserver startup sequence; when
there are no other messages, it is very likely that the init-script
(/sbin/init) failed.

Common causes are:
* /etc/rc.d/rc on Fedora Core 1 and RH9 fails always; the 'apt-rpm' build
  method knows how to deal with this, but on existing installations,
  appending 'true' to this file will help.


Failed to start vserver 'prometheus'



then, when i tried to shut the host down, i got this:



[Vserver] host reboot error

2005-10-04 Thread Chuck
i just tried doing a reboot on the host letting it stop all vservers itself. 
this is what happened:



* Remounting remaining filesystems readonly ...[ cut 
here ]
kernel BUG at kernel/vserver/context.c:144!
invalid operand:  [#1]
SMP
Modules linked in:
CPU:0
EIP:0060:[c0136cb0]Not tainted VLI
EFLAGS: 00010246   (2.6.13.1-vs2.1.0-rc2)
EIP is at free_vx_info+0x70/0x80
eax: 0001   ebx: f7d9b080   ecx: f6f5cec0   edx: f666e000
esi: e316b4fc   edi: 0400   ebp:    esp: e37d3e50
ds: 007b   es: 007b   ss: 0068
Process mount (pid: 31028, threadinfo=e37d2000 task=e2a5fa80)
Stack: c011ae58 f666e000 c019a550 e316b4fc c019a5cb f7d9b080 e316b4fc c019a550
   c0182f33 e316b4fc c019a550 c024ada1 e316b4fc e316b4fc c01831b3 e316b4fc
   c0414a94 f4d7c53c c017ff81 e316b4fc e316b4fc   f4d7c53c
Call Trace:
 [c011ae58] free_task+0x78/0x80
 [c019a550] proc_delete_inode+0x0/0x80
 [c019a5cb] proc_delete_inode+0x7b/0x80
 [c019a550] proc_delete_inode+0x0/0x80
 [c0182f33] generic_delete_inode+0x73/0x100
 [c019a550] proc_delete_inode+0x0/0x80
 [c024ada1] _atomic_dec_and_lock+0x31/0x50
 [c01831b3] iput+0x63/0x90
 [c017ff81] dput+0x151/0x1f0
 [c018063a] shrink_dcache_sb+0x18a/0x1f0
 [c016dde5] do_remount_sb+0x35/0x100
 [c0185a2d] do_remount+0xad/0x120
 [c01864dd] do_mount+0x21d/0x230
 [c0186263] copy_mount_options+0x63/0xc0
 [c01868ef] sys_mount+0x9f/0xe0
 [c0102ff9] syscall_call+0x7/0xb
Code: ce b0 3b c0 eb dc f6 42 18 01 74 cf 0f 0b 95 00 ce b0 3b c0 eb c5 0f 0b 
93 00 ce b0 3b c0 eb b7 0f 0b 92 00 ce b0 3b c0 eb a6 90 0f 0b 90 00 ce b0 
3b c0 eb 94 8d b6 00 00 00 00 57 56 53 83 ec
 /etc/init.d/halt.sh: line 196: 31028 Segmentation fault  mount -n -o 
remount,ro ${x} /dev/null



at this point it will hang forever until i power cycle it.

the last line usually means there was a problem in a guest

-- 

Chuck



___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Updates to testfs.sh script

2005-10-04 Thread micah

Actually, lets just forget about that previous diff, and instead use
this one. I found that the mkfs.xfs would fail because there previously
was a filesystem created by the mkfs.ext3 and it would complain that you
needed to use -f to force it to happen. Please use the attached diff
instead of the previous (this also bumps the version number one).

Micah

--- testfs.sh-0.09  2005-09-19 04:27:43.0 -0400
+++ testfs.sh-0.10  2005-10-04 17:16:07.0 -0400
@@ -1,7 +1,5 @@
 #!/bin/bash
 
-eR='\e[31m';eG='\e[32m';eY='\e[33m';eB='\e[34m';eN='\e[0m'
-
 function eecho () {
 C=$1; shift
 echo -e $C$*$eN
@@ -360,7 +358,7 @@
 nfsopt=vers=3,hard,intr,tcp,sync
 
 
-while getopts :hlotvxD:F:M:N:O: option; do
+while getopts :hlotvxcD:F:M:N:O: option; do
   case $option in
 h)  # help
 cat  EOF
@@ -377,6 +375,7 @@
   -M mnt  mount point [$MNT]
   -N src  nfs source [$NFS]
   -O opt  nfs options [$nfsopt]
+  -cdisable color output
 
 examples:
   
@@ -402,6 +401,9 @@
 t)  # terse output
 terse=1
 ;;
+c)  # disable color output
+color=no
+;;
 D)  # device 
 DEV=$OPTARG
 ;;
@@ -421,13 +423,17 @@
 done
 shift $(($OPTIND - 1))
 
+if [ $color != no ]; then
+eR='\e[31m';eG='\e[32m';eY='\e[33m';eB='\e[34m';eN='\e[0m'
+fi
+
 outdev=/dev/null
 [ $verbose -gt 1 ]  outdev=/dev/stdout
 errdev=/dev/null
 [ $verbose -gt 0 ]  errdev=/dev/stderr
 
 
-eecho $eY Linux-VServer FS Test [V0.09] Copyright (C) 2005 H.Poetzl
+eecho $eY Linux-VServer FS Test [V0.10] Copyright (C) 2005 H.Poetzl
 
 KERN=`uname -srm`
 CHCV=`chcontext --version 21`
@@ -454,18 +460,30 @@
 echo ---
 eecho $eY testing $fs filesystem ...
 case $fs in 
-ext2|ext3|xfs|jfs)
+ext2|ext3)
mkfs.$fs $DEV 1$outdev 2$errdev
rc=$?; ececho $rc [000]
[ $rc -gt 0 ]  echo ($fs format failed)  continue
do_test $fs $mntopt
;;
+xfs*)
+mkfs.$fs -f $DEV 1$outdev 2$errdev
+   rc=$?; ececho $rc [000]
+   [ $rc -gt 0 ]  echo ($fs format failed)  continue
+   do_test $fs $mntopt
+   ;;
 reiser*)
mkfs.reiserfs -f $DEV 1$outdev 2$errdev
rc=$?; ececho $rc [000]
[ $rc -gt 0 ]  echo (reiser format failed)  continue
do_test reiser attrs,$mntopt
;;
+jfs*)
+mkfs.jfs -q $DEV 1$outdev 2$errdev
+   rc=$?; ececho $rc [000]
+   [ $rc -gt 0 ]  echo ($fs format failed)  continue
+   do_test $fs $mntopt
+   ;;
 nfs)
do_test nfs $nfsopt,$mntopt
;;


signature.asc
Description: OpenPGP digital signature
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver