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

On Wed February 18 2009, Marcello Henrique wrote:
> # 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
>

If you can list it, it is already mounted.
- - Unless something changed, binfmt_misc/register and binfmt_misc/status
do not exist until the mount succeeds. - -

Have you tried any of these things? They should already be registered.
> 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.
> 

The 'vserver ...' command is starting the guest, and guests can't
insert kernel modules, sorry - but that is one of the purposes of VServer.

But since you can list those things in the host, they are already registered.
Try them, they should be working (in any context, host or guest) -
Then just kill off the update-binfmts in your guest.

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