Subject: Re: [vserver] Problem binfmt.
From: "Michael S. Zick" <mszick@morethan.org>
Date: Wed, 18 Feb 2009 16:50:59 -0600

On Wed February 18 2009, Marcello Henrique wrote:
> Hello,
>  I have this problem below, can someone help me?
> 
> Enabling additional executable binary formats: binfmt-supportmount:
> permission denied
> update-binfmts: warning: Couldn't mount the binfmt_misc filesystem on
> /proc/sys/fs/binfmt_misc.
> 
> My system is Debian 5.0 (lenny):
>

So is mine (kernel is kernel.org+VServer _not_ debian):

mszick@wolf466:~$ uname -a
Linux wolf466 2.6.27.4-vs2.3.0.35.7 #1 PREEMPT Sun Oct 26 12:41:10 CDT 2008 i686 GNU/Linux

mszick@wolf466:~$ ls -l /proc/sys/fs/binfmt_misc
total 0
-rw-r--r-- 1 root root 0 2009-02-18 06:17 lua51
-rw-r--r-- 1 root root 0 2009-02-18 06:17 luc51
--w------- 1 root root 0 2009-02-18 06:17 register
-rw-r--r-- 1 root root 0 2009-02-18 06:17 status

Works for me (tm).

Are you trying to mount binfmt_misc in a guest rather than in the host?
Mike
> 
> Versions:
>                    Kernel: 2.6.26-1-vserver-amd64
>                    VS-API: 0x00020303
>              util-vserver: 0.30.216-pre2772; Dec 13 2008, 04:56:19
> 
> Features:
>                CC: gcc, gcc (Debian 4.3.2-1) 4.3.2
>                       CXX: g++, g++ (Debian 4.3.2-1) 4.3.2
>                  CPPFLAGS: ''
>                    CFLAGS: '-Wall -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: x86_64-pc-linux-gnu/x86_64-pc-linux-gnu
>              Use dietlibc: yes
>        Build C++ programs: yes
>        Build C99 programs: yes
>            Available APIs: v13,net,v21,v22,v23,netv2
>             ext2fs Source: e2fsprogs
>     syscall(2) invocation: alternative
>       vserver(2) syscall#: 236/glibc
>                crypto api: beecrypt
>    use library versioning: yes
> 
> Paths:
>                    prefix: /usr
>         sysconf-Directory: /etc
>             cfg-Directory: /etc/vservers
>          initrd-Directory: $(sysconfdir)/init.d
>        pkgstate-Directory: /var/run/vservers
>           vserver-Rootdir: /var/lib/vservers
>