Subject: Re: [vserver] Problem binfmt.
From: Marcello Henrique <faraohh@gmail.com>
Date: Wed, 18 Feb 2009 19:58:38 -0300
Wed, 18 Feb 2009 19:58:38 -0300
# uname -a
Linux next 2.6.26-1-vserver-amd64 #1 SMP Sat Jan 10 19:46:42 UTC 2009 x86 64
GNU/Linux

# ls -l /proc/sys/fs/binfmt misc
total 0
-rw-r--r-- 1 root root 0 Fev 18 18:59 asmassembly
-rw-r--r-- 1 root root 0 Fev 18 18:59 ccompile
-rw-r--r-- 1 root root 0 Fev 18 18:59 cxxcompile
-rw-r--r-- 1 root root 0 Fev 18 18:59 fcompile
-rw-r--r-- 1 root root 0 Fev 18 18:59 gcjcompile
-rw-r--r-- 1 root root 0 Fev 18 18:59 pcompile
--w------- 1 root root 0 Fev 18 18:59 register
-rw-r--r-- 1 root root 0 Fev 18 19:01 status

I try in the host, then:

# vserver dekiwiki start
Starting enhanced syslogd: rsyslogd.
Starting MySQL database server: mysqld.
Checking for corrupt, not cleanly closed and upgrade needing tables..
Starting MindTouch Deki API: mindtouch.host.exe.
Starting MTA: exim4.
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.

Any tips?

On Wed, Feb 18, 2009 at 19:50, Michael S. Zick <mszick@morethan.org> wrote:

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


-- 
Marcello Henrique
Associação Software Livre de Goiás (www.aslgo.org.br)
Cercomp - UFG (www.cercomp.ufg.br)


# uname -a
Linux next 2.6.26-1-vserver-amd64 #1 SMP Sat Jan 10 19:46:42 UTC 2009 x86 64 GNU/Linux

# ls -l /proc/sys/fs/binfmt misc
total 0
-rw-r--r-- 1 root root 0 Fev 18 18:59 asmassembly
-rw-r--r-- 1 root root 0 Fev 18 18:59 ccompile
-rw-r--r-- 1 root root 0 Fev 18 18:59 cxxcompile
-rw-r--r-- 1 root root 0 Fev 18 18:59 fcompile
-rw-r--r-- 1 root root 0 Fev 18 18:59 gcjcompile
-rw-r--r-- 1 root root 0 Fev 18 18:59 pcompile
--w------- 1 root root 0 Fev 18 18:59 register
-rw-r--r-- 1 root root 0 Fev 18 19:01 status

I try in the host, then:

# vserver dekiwiki start
Starting enhanced syslogd: rsyslogd.
Starting MySQL database server: mysqld.
Checking for corrupt, not cleanly closed and upgrade needing tables..
Starting MindTouch Deki API: mindtouch.host.exe.
Starting MTA: exim4.
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.

Any tips?

On Wed, Feb 18, 2009 at 19:50, Michael S. Zick <mszick@morethan.org> wrote:
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
>





--
Marcello Henrique
Associação Software Livre de Goiás (www.aslgo.org.br)
Cercomp - UFG (www.cercomp.ufg.br)