Hi,

I tried to run an arm container under a x86_64 host and it works !!!!

Little how-to :

build a static compiled qemu-arm
         take qemu sources and build it with :
             ./configure --static --target-list=arm-linux-user; make
         U will find static qemu for arm at ./arm-linux-user/qemu-arm
use the binfmt_misc kernel module
         mount the pseudofs :
             mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc
have an arm container
         let's say it is at /lxc/armcontainer
copy qemu in the container :
         cp ./arm-linux-user/qemu-arm /lxc/armcontainer/
enable binfmt :
echo 
':arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/local/bin/qemu-arm:'>/proc/sys/fs/binfmt_misc/register
launch your container normaly.

I found this cool, I hope it be useful someone else.

I have made this how-to from bash history, I could have made some mistakes.
feel free to ask if you're in troubles.

regards,

Guillaume ZITTA





------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Lxc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to