我尝试按照以下步骤从这里创建和启动 lxc 容器:https : //help.ubuntu.com/lts/serverguide/lxc.html
我的主机运行的是最新的 64 位 Precise (12.04),我正在尝试启动一个精确的容器。我创建了这样的容器:
sudo lxc-create -t ubuntu -n precise -- -r precise
Run Code Online (Sandbox Code Playgroud)
它似乎成功完成。当我尝试开始时,我得到:
$ sudo lxc-start -n precise
lxc-start: failed to spawn 'precise'
Run Code Online (Sandbox Code Playgroud)
和 kern.log 说:
Sep 27 09:27:15 hans kernel: [3738467.397433] device vethrtJYFO entered promiscuous mode
Sep 27 09:27:15 hans kernel: [3738467.399113] ADDRCONF(NETDEV_UP): vethrtJYFO: link is not ready
Sep 27 09:27:15 hans kernel: [3738467.409192] init: Failed to spawn network-interface (vethLNDNFP) pre-start process: unable to change root directory: No such file or …Run Code Online (Sandbox Code Playgroud) lxc ×1