Subject: Re: [vserver] /proc/net/dev missing when networknamespaces are active
From: Steve Kieu <msh.computing@gmail.com>
Date: Fri, 22 Jun 2012 21:10:04 +1000
Fri, 22 Jun 2012 21:10:04 +1000
I have asked once before but no one got no reply.

Basically normal ifconfig, route, will not work. However ip tools work, and
application using network still works

Interested to know how to unhide it as well ...



On Fri, Jun 22, 2012 at 8:17 PM, Adrian Reyer <are@lihas.de> wrote:

> Hi,
>
> as soon as I enable network namespaces with touch
> /etc/vservers/VSNAME/spaces/net, /proc/net/ within the vserver is empty.
> This again breaks ifconfig and dhclient.
> ip a l only shows 'lo'.
> Adding more entries to vprocunhide doesn't make any difference.
> /proc/self/net is just as empty as /proc/net.
>
> Versions:
>                   Kernel: 3.4.3-vs2.3.3.4
>                   VS-API: 0x00020308
>                      VCI: 0x0000000013001f11
>             util-vserver: 0.30.216-pre3034; Jun 19 2012, 10:41:29
>
> Features:
>                       CC: gcc, gcc (Debian 4.7.1-1) 4.7.0
>                 CPPFLAGS: ''
>                   CFLAGS: '-g -O2 -std=c99 -Wall -pedantic -W
> -funit-at-a-time'
>               build/host: x86 64-pc-linux-gnu/x86 64-pc-linux-gnu
>             Use dietlibc: yes
>       Build C++ programs:
>       Build C99 programs: yes
>           Available APIs: compat,v11,fscompat,v13,net,v21,v22,v23,netv2
>            ext2fs Source: e2fsprogs
>    syscall(2) invocation: alternative
>      vserver(2) syscall#: 236/glibc
>               crypto api: beecrypt
>          python bindings: yes
>   use library versioning: yes
>
> Paths:
>                   prefix: /usr
>        sysconf-Directory: /etc
>            cfg-Directory: /etc/vservers
>         initrd-Directory: /etc/init.d
>       pkgstate-Directory: /var/run/vservers
>          vserver-Rootdir: /var/lib/vservers
> --
> LiHAS - Adrian Reyer - Hessenwiesenstraße 10 - D-70565 Stuttgart
> Fon: +49 (7 11) 78 28 50 90 - Fax:  +49 (7 11) 78 28 50 91
> Mail: lihas@lihas.de - Web: http://lihas.de
> Linux, Netzwerke, Consulting & Support - USt-ID: DE 227 816 626 Stuttgart
>



-- 
Steve Kieu


I have asked once before but no one got no reply.

Basically normal ifconfig, route, will not work. However ip tools work, and application using network still works

Interested to know how to unhide it as well ...



On Fri, Jun 22, 2012 at 8:17 PM, Adrian Reyer <are@lihas.de> wrote:
Hi,

as soon as I enable network namespaces with touch
/etc/vservers/VSNAME/spaces/net, /proc/net/ within the vserver is empty.
This again breaks ifconfig and dhclient.
ip a l only shows 'lo'.
Adding more entries to vprocunhide doesn't make any difference.
/proc/self/net is just as empty as /proc/net.

Versions:
                  Kernel: 3.4.3-vs2.3.3.4
                  VS-API: 0x00020308
                     VCI: 0x0000000013001f11
            util-vserver: 0.30.216-pre3034; Jun 19 2012, 10:41:29

Features:
                      CC: gcc, gcc (Debian 4.7.1-1) 4.7.0
                CPPFLAGS: ''
                  CFLAGS: '-g -O2 -std=c99 -Wall -pedantic -W -funit-at-a-time'
              build/host: x86 64-pc-linux-gnu/x86 64-pc-linux-gnu
            Use dietlibc: yes
      Build C++ programs:
      Build C99 programs: yes
          Available APIs: compat,v11,fscompat,v13,net,v21,v22,v23,netv2
           ext2fs Source: e2fsprogs
   syscall(2) invocation: alternative
     vserver(2) syscall#: 236/glibc
              crypto api: beecrypt
         python bindings: yes
  use library versioning: yes

Paths:
                  prefix: /usr
       sysconf-Directory: /etc
           cfg-Directory: /etc/vservers
        initrd-Directory: /etc/init.d
      pkgstate-Directory: /var/run/vservers
         vserver-Rootdir: /var/lib/vservers
--
LiHAS - Adrian Reyer - Hessenwiesenstraße 10 - D-70565 Stuttgart
Fon: +49 (7 11) 78 28 50 90 - Fax:  +49 (7 11) 78 28 50 91
Mail: lihas@lihas.de - Web: http://lihas.de
Linux, Netzwerke, Consulting & Support - USt-ID: DE 227 816 626 Stuttgart



--
Steve Kieu