[lxc-devel] lxc + gento + qemu, almost there
Joakim Tjernlund
joakim.tjernlund at transmode.se
Thu Mar 5 14:28:42 UTC 2015
I am running a gentoo ppc stage3 on lxc amd64.
All I needed to do for this to boot was:
Add to gentoo template
chroot()
{
rr=$1
shift 1
proot -w / -r "${rr}" -q qemu-ppc "$@"
}
ppc-qemu.conf:
lxc.network.type = veth
lxc.network.link = virbr0
lxc.network.flags = up
#for user emulation of PPC arch
lxc.mount.entry=/usr/bin/qemu-ppc usr/bin/qemu-ppc none ro,bind,optional 0 0
lxc-create -n cusfpv3 -t gentoo -f /etc/lxc/ppc-qemu.conf -- -a ppc -v ppc
touch /var/lib/lxc/cusfpv3/rootfs/usr/bin/qemu-ppc # create a handle for bind mount
lxc-start -n cusfpv3
Could this be added to the template?
Obviously some rework is needed, but I suck at shell programming :(
the new chroot() function should be replaced with a bind mount of /usr/bin/qemu-ppc in ${rootfs}
Jocke
More information about the lxc-devel
mailing list