Re: [Vserver] Can't bind-mount host->guest

From: Jun OKAJIMA <>
Date: Sat 29 Oct 2005 - 18:53:17 BST
Message-Id: <>


I also have same question.
How to do a mount to vserver namespace?
I suppose that current vserver gets per-ctx namespace and this requires
special mount command. If so, what is the command?.

For example, assume the vserver I am using is 100,

[Host]# mount -o bind /home/okajima /vserver/100/home/okajima
[Host]# ls -la /vserver/100/home/okajima
       [ something come. This is okay.]
[Vserver]# ls -la /home/okajima
       [ nothing comes This is NOT okay.]
[Vserver]# mount -o bind /bin /mnt
[Vserver]$ ls -la /mnt
       [ Nothing comes.]
[Vserver]$ cat /proc/mounts
       [ /bin->/mnt stuff is not printed.]
[Host]# zcat /boot/initrd.gz > /vserver/100/diskimage
[Vserver]# mount -o loop diskimage /mnt
[Vserver]$ ls -la /mnt
       [ Nothing comes.]

Tell me the command to do a bind mount!.

                            --- Okajima, Jun. Tokyo, Japan.

My vserver is this.
{Okajima@Debian]$ vserver-info
                   VS-API: ???
             util-vserver: 0.30.208; Sep 2 2005, 18:43:18

                       CC: gcc, 2.95.4
                      CXX: g++, 2.95.4
                 CPPFLAGS: ''
                   CFLAGS: '-g -O2 -Wall -pedantic -W'
                 CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W'
               build/host: i686-pc-linux-gnu/i686-pc-linux-gnu
             Use dietlibc: no (you have been warned)
       Build C++ programs: no (affected: vbuild, vcheck)
       Build C99 programs: no (affected: vunify, vcopy, vhashify, vdlimit)
           Available APIs: compat,v11,v13,fscompat,net,oldproc,olduts
            ext2fs Source: kernel
    syscall(2) invocation: fast
      vserver(2) syscall#: 273/default

                   prefix: /usr/local
        sysconf-Directory: ${prefix}/etc
            cfg-Directory: ${prefix}/etc/vservers
         initrd-Directory: $(sysconfdir)/init.d
       pkgstate-Directory: ${prefix}/var/run/vservers
            Kernelheaders: /usr/include
          vserver-Rootdir: /vservers
Vserver mailing list
Received on Sat Oct 29 18:54:40 2005

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Sat 29 Oct 2005 - 18:54:48 BST by hypermail 2.1.8