OpenVZ Forum


Home » General » Support » How to use binfmt_misc in VE
How to use binfmt_misc in VE [message #37710] Tue, 13 October 2009 13:14 Go to next message
ramjet is currently offline  ramjet
Messages: 16
Registered: September 2009
Junior Member
I would like to register a binary handler for byte compiled python code.

lenny2:/# mount -t binfmt_misc none /proc/sys/fs/binfmt_misc
mount: unknown filesystem type 'binfmt_misc'

lenny2:/# mount
simfs on / type simfs (rw)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=755)
proc on /proc type proc (rw,nosuid,nodev,noexec)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,gid=5,mode=620)

On hardware node I'm running Debian GNU/Linux 5.0.3 with kernel 2.6.26-2-openvz-amd64 and vzctl 3.0.23-8

On a proxmox PVE 1.1 with kernel 2.6.24-2-pve with vzctl 3.0.23-1pve1 I get same error.

I have tried loading binfmt_misc and mounting binfmt_misc on HN and restarted VE without luck.

When googling for OpenVZ and binfmt_misc I can see that other people have fs type binfmt_misc mounted inside VE.

Is binfmt_misc handler interface supported inside VE's?
Is it just a capability setting?
Am I running kernels which are missing a patch?

I need a recent kernel on HN because of RAID driver
Re: How to use binfmt_misc in VE [message #37742 is a reply to message #37710] Thu, 15 October 2009 16:03 Go to previous messageGo to next message
ramjet is currently offline  ramjet
Messages: 16
Registered: September 2009
Junior Member
I compiled a 2.6.27 kernel ( http://wiki.openvz.org/Download/kernel/2.6.27/2.6.27-briullo v.1) using vanilla Linux 2.6.27 kernel and patch-briullov.1-combined.gz.

But I'm still not able to get binfmt_misc listed in the VE in /proc/filesystems.

From this post I can see that it's possible:
http://forum.openvz.org/index.php?t=tree&&th=7839&am p;goto=37166#msg_37166

So what's the trick? Please...
Re: How to use binfmt_misc in VE [message #37818 is a reply to message #37742] Sat, 24 October 2009 13:17 Go to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Dear Peter,

I'm terribly sorry for that big delay.
There is no trick at all.
binfmt_misc can be mounted with RHEL5 based kernels
(look at fs/binfmt_misc.c - the part under #ifdef CONFIG_VE).
Please use that kernels if you have a chance.
Unfortunately, 2.6.26 kernels don't have such a virtualization trick so I would recommend you to file a bug (mark it as a feature request for example).
Thank you.
Previous Topic: Single IP number - multiple OpenVZ guests?
Next Topic: strange problem in vzdump
Goto Forum:
  


Current Time: Tue Sep 17 00:37:20 GMT 2024

Total time taken to generate the page: 0.04825 seconds