web-dev-qa-db-ja.com

Intelホストでarm lxdコンテナを実行するには

通常の手順に従うと、次のエラーが発生します。

lxc_start - start.c:start:1438 - No such file or directory - failed to exec /sbin/init
3
Tom

Qemuを使用して、Intelホストでアームコンテナーを実行することは可能ですが、ボックスが機能せず、コンテナーrootfsにqemuファイルをコピーする必要があります

16.04ホストの手順

lxd-clientパッケージがインストールされていると仮定します。

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

出力する必要があります:

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

実行を修正するには:

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

その後、次の方法でログインできます。

lxc exec arm1 bash
2
Tom