RE: [Vserver] unmount nfs with vserver

From: <>
Date: Tue 18 Oct 2005 - 22:35:30 BST
Message-ID: <>

I can mount it from the host using /usr/local/etc/vservers/unixdev1/fstab but have not figured out how to umount (if possible)

I was able to use the bcapabilities numeric values with out getting errors on vserver startup.
cat /usr/local/etc/vservers/unixdev1/bcapabilities

even with this I am unable to unmount the nfs filesystem when mounted from the host into the vserver.

when trying from inside the vserver I can not even mount the nfs filesystem
sudo mount -v -t nfs /unix_data
mount: failed with nfs mount version 4, trying 3..
mount: permission denied
the nfs server shows
Oct 18 15:31:57 calnfs01 rpc.mountd: authenticated mount request from for /nfs_unix_data (/nfs_unix_data)
Oct 18 15:31:57 calnfs01 rpc.mountd: authenticated mount request from for /nfs_unix_data (/nfs_unix_data)

I have been working on this from several angles to no avail. Is anyone else mounting nfs into a vserver? How are you doing it? Are you able to umount it afterwards?


-----Original Message-----
[]On Behalf Of Magnuson,
Sent: Tuesday, October 18, 2005 11:50 AM
Subject: RE: [Vserver] unmount nfs with vserver

I have done the following but am getting a error
sudo vi /usr/local/etc/vservers/caloratst01/bcapabilities

I also tried:

I am getting the following error on vserver startup
sudo vserver caloratst01 start
Unknown bcap 'VXC_SECURE_MOUNT'

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 'caloratst01'

Have I got the syntax of the file wrong?

-----Original Message-----
From: Herbert Poetzl []
Sent: Friday, October 14, 2005 11:18 AM
To: Magnuson, Sig
Subject: Re: [Vserver] unmount nfs with vserver

On Fri, Oct 14, 2005 at 10:42:49AM -0600, wrote:
> A while back I posted to the list about mounting nfs filesystem into a
> vserver. The only suggestion that I could get to work was adding the
> mount to fstab on host system.

> IE:
> cat /usr/local/etc/vservers/unixdev1/fstab
> none /proc proc defaults 0 0
> none /tmp tmpfs size=64m,mode=1777 0 0
> none /dev/pts devpts gid=5,mode=620 0 0
> # added Sept 14, 2005 - common unix NFS filesystem -sig
> /unix_data nfs hard,intr,nolock 0 0
> The one issue I came across was that I could not find a way to umount
> the NFS filesystem
> ssh unixdev1
> sudo umount /unix_data
> umount: /unix_data: must be superuser to umount
> umount: /unix_data: must be superuser to umount

>>hmm, looks like you are missing one of the
>>context capabilities for secure mount ...

>>#define VXC_SECURE_MOUNT 0x00010000
>>#define VXC_SECURE_REMOUNT 0x00020000
>>#define VXC_BINARY_MOUNT 0x00040000

> I thought I would be fine with it that way but it turns out it is a
> bigger issue than I thought. Any suggestions on how to umount the NFS
> filesystem?

>>unmounting on the host should work quite fine ...


> I have access to host and vserver.
> thanks
> sig
> sudo ./
> Linux-VServer Test [V0.13] Copyright (C) 2003-2005 H.Poetzl
> chcontext is working.
> chbind is working.
> Linux i686/0.30.208/0.30.208 [Ea] (0)
> VCI: 0002:0001 273 03000016
> ---
> [000]# succeeded.
> [001]# succeeded.
> [011]# succeeded.
> [031]# succeeded.
> [101]# succeeded.
> [102]# succeeded.
> [201]# succeeded.
> [202]# succeeded.
> sudo vserver-info
> Versions:
> Kernel:
> VS-API: 0x00020001
> util-vserver: 0.30.208; Aug 24 2005, 21:26:20
> Features:
> CC: gcc, gcc (GCC) 3.4.3 (CRUX)
> CXX: g++, g++ (GCC) 3.4.3 (CRUX)
> CFLAGS: '-g -O2 -std=c99 -Wall -pedantic -W -funit-at-a-time'
> CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W -fmessage-length=0 -
> funit-at-a-time'
> build/host: i686-pc-linux-gnu/i686-pc-linux-gnu
> Use dietlibc: yes
> Build C++ programs: yes
> Build C99 programs: yes
> Available APIs: compat,v11,v13,fscompat,net,oldproc,olduts
> ext2fs Source: e2fsprogs
> syscall(2) invocation: alternative
> vserver(2) syscall#: 273/glibc
> Paths:
> prefix: /usr/local
> sysconf-Directory: ${prefix}/etc
> cfg-Directory: ${prefix}/etc/vservers
> initrd-Directory: $(sysconfdir)/init.d
> pkgstate-Directory: ${prefix}/var/run/vservers
> Kernelheaders: /lib/modules/
> vserver-Rootdir: /vservers
> Assumed 'SYSINFO' as no other option given; try '--help' for more information.
> _______________________________________________
> Vserver mailing list
Vserver mailing list
Vserver mailing list
Received on Tue Oct 18 22:35:57 2005

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Tue 18 Oct 2005 - 22:36:00 BST by hypermail 2.1.8