我试图在另一台机器上运行交叉编译的 lxc 映像,如下所示:我通过命令在 ubuntu 14.04 上创建了一个 lxc 映像:
lxc-create -t /usr/share/lxc/templates/lxc-busybox -n customBusyBox
我检查了创建的图像customBusyBox在这台机器上运行良好。现在我创建了它的.tar.gz文件,即customBusyBox.tar.gz并通过scp命令将它复制到另一台具有相同版本 ubuntu 即 14.04 的机器上。然后我将 customBusyBox 图像提取到/var/lib/lxc文件夹。然后作为超级用户,我尝试通过以下命令运行图像:
lxc-start -F -n customBusyBox
然后我得到了这个错误:
lxc-start: utils.c: safe_mount: 1746 No such file or directory - Failed to mount /lib64 onto /usr/lib/i386-linux-gnu/lxc/lib64
lxc-start: conf.c: mount_entry: 1650 No such file or directory - failed to mount '/lib64' on '/usr/lib/i386-linux-gnu/lxc/lib64'
lxc-start: conf.c: lxc_setup: 3790 failed to setup the mount entries for 'openWrt'
lxc-start: start.c: do_start: 826 Failed to setup container "openWrt".
lxc-start: sync.c: __sync_wait: 57 An error occurred in another process (expected sequence number 3)
lxc-start: start.c: __lxc_start: 1338 Failed to spawn container "openWrt".
lxc-start: tools/lxc_start.c: main: 360 The container failed to start.
lxc-start: tools/lxc_start.c: main: 364 Additional information can be obtained by setting the --logfile and --logpriority options.
我尝试在网上搜索它的解决方案但没有帮助:有人请提出一些解决方案。
谢谢