Following the normal procedure yields this error:

lxc_start - start.c:start:1438 - No such file or directory - failed to exec /sbin/init
share|improve this question
up vote 3 down vote accepted

Running arm containers on an intel host is possible using qemu but it does not work out the box and requires copying a qemu file onto the container rootfs

Steps for a 16.04 host.

Assuming lxd-client package is installed.

sudo apt-get install qemu-user-static
lxc launch ubuntu:15.04/armhf arm1

Should output:

Creating arm1
Starting arm1
error: Error calling 'lxd forkstart arm1 /var/lib/lxd/containers /var/log/lxd/arm1/lxc.conf': err='exit status 1'
Try `lxc info --show-log arm1` for more info

To fix run:

sudo cp /usr/bin/qemu-arm-static /var/lib/lxd/containers/arm1/rootfs/usr/bin
# then start it again.
lxc start arm1

then you can log in by:

lxc exec arm1 bash
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.