Networking lxc启动:控制器:lxccontainer.c:等待“u daemonized”上的“u启动:842已接收容器状态”;停止“;而不是",;“运行”;
当我运行配置文件时 配置文件 sudo lxc启动-n控制器-d 它给了我这个错误 lxc start:controller:lxccontainer.c:wait_on_daemonized_start:842接收到的容器状态为“正在停止”而不是“正在运行” lxc start:controller:tools/lxc_start.c:main:330容器启动失败 lxc-start:controller:tools/lxc_-start.c:main:333要获取更多详细信息,请在前台模式下运行容器 lxc start:controller:tools/lxc_start.c:main:336通过设置--logfile和--logpriority选项可以获得其他信息 补充资料 lxc启动--版本 3.0.3 联阿援助团Networking lxc启动:控制器:lxccontainer.c:等待“u daemonized”上的“u启动:842已接收容器状态”;停止“;而不是",;“运行”;,networking,containers,ubuntu-18.04,lxc,telecommunication,Networking,Containers,Ubuntu 18.04,Lxc,Telecommunication,当我运行配置文件时 配置文件 sudo lxc启动-n控制器-d 它给了我这个错误 lxc start:controller:lxccontainer.c:wait_on_daemonized_start:842接收到的容器状态为“正在停止”而不是“正在运行” lxc start:controller:tools/lxc_start.c:main:330容器启动失败 lxc-start:controller:tools/lxc_-start.c:main:333要获取更多详细信息,请在前台模式下
Linux shahrukh VirtualBox 3.12.74-031274-generic#201705101001 SMP Wed May 10 14:04:20 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux结果是,在我的系统中,有
apparmor
的旧配置文件没有随apparmor
一起更新。简单地这样做就可以修复它:
sudo -sH # become root
apt purge apparmor* # uninstall apparmor and its configs
apt install apparmor* # reinstall it
apparmor_status # check if apparmor is running
# If the above status shows 0 for every profile or other error
# check first if apparmor is activated in the kernel through grub
cat /sys/module/apparmor/parameters/enabled
# if the above doesn't return "Y", then activate it first
mkdir -p /etc/default/grub.d
echo 'GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT apparmor=1 security=apparmor"' \
| tee /etc/default/grub.d/apparmor.cfg
update-grub
reboot