尽管所有设置都设置为 14.04 要求,但在可信赖的 14.04 容器中无法自动启动。他们都显示为 STOPPED
我已经正确配置了 2 个 LXC 容器:
calypso
encelado
Run Code Online (Sandbox Code Playgroud)
如果我跑,它们就会完美运行
sudo lxc-autostart
然后
sudo lxc-ls --fancy
导致:
ubuntu@saturn:/etc/init$ sudo lxc-ls --fancy
NAME STATE IPV4 IPV6 AUTOSTART
calypso RUNNING 192.168.1.161 - YES
encelado RUNNING 192.168.1.162 - YES
Run Code Online (Sandbox Code Playgroud)
问题是试图在启动时运行它们。
我在/var/lib/lxc/calypso/config::
# Template used to create this container: /usr/share/lxc/templates/lxc-download
# Parameters passed to the template:
# For additional config options, please look at lxc.conf(5)
# Distribution configuration
lxc.include = /usr/share/lxc/config/ubuntu.common.conf
lxc.arch = x86_64
# Container specific configuration …Run Code Online (Sandbox Code Playgroud)