PVE 可以建立 LXC 容器,但是没法启动容器
run_apparmor_parser: 919 Failed to run apparmor_parser on "/var/lib/lxc/101/apparmor/lxc-101_<-var-lib-lxc>": apparmor_parser: ????"lxc-101_</var/lib/lxc>"? ????????? apparmor_prepare: 1089 Failed to load generated AppArmor profile lxc_init: 850 Failed to initialize LSM __lxc_start: 2007 Failed to initialize container "101" TASK ERROR: startup for container ‘101’ failed
The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Dec 10 19:54:12 2021 [email protected]:~# apt install snapd 正在读取软件包列表… 完成 正在分析软件包的依赖关系树… 完成 正在读取状态信息… 完成 将会同时安装下列软件: squashfs-tools 建议安装: zenity | kdialog 下列【新】软件包将被安装: snapd squashfs-tools 升级了 0 个软件包,新安装了 2 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。 有 2 个软件包没有被完全安装或卸载。 需要下载 11.7 MB 的归档。 解压缩后会消耗 52.8 MB 的额外空间。 您希望继续执行吗? [Y/n] y 获取:1 http://security.debian.org/debian-security bullseye-security/main arm64 squashfs-tools arm64 1:4.4-2+deb11u2 [128 kB] 获取:2 http://deb.debian.org/debian bullseye/main arm64 snapd arm64 2.49-1+b5 [11.6 MB] 已下载 11.7 MB,耗时 0秒 (50.7 MB/s) 正在选中未选择的软件包 squashfs-tools。 (正在读取数据库 … 系统当前共安装有 70416 个文件和目录。) 准备解压 …/squashfs-tools_1%3a4.4-2+deb11u2_arm64.deb … 正在解压 squashfs-tools (1:4.4-2+deb11u2) … 正在选中未选择的软件包 snapd。 准备解压 …/snapd_2.49-1+b5_arm64.deb … 正在解压 snapd (2.49-1+b5) … 正在设置 squashfs-tools (1:4.4-2+deb11u2) … 正在设置 pve-manager (7.1-7) … 正在设置 proxmox-ve (7.1-1) … 正在设置 snapd (2.49-1+b5) … Created symlink /etc/systemd/system/multi-user.target.wants/snapd.recovery-chooser-trigger.service → /lib/systemd/system/snapd.recovery-chooser-trigger.service. Created symlink /etc/systemd/system/multi-user.target.wants/snapd.seeded.service → /lib/systemd/system/snapd.seeded.service. Created symlink /etc/systemd/system/cloud-final.service.wants/snapd.seeded.service → /lib/systemd/system/snapd.seeded.service. Created symlink /etc/systemd/system/multi-user.target.wants/snapd.service → /lib/systemd/system/snapd.service. Created symlink /etc/systemd/system/sockets.target.wants/snapd.socket → /lib/systemd/system/snapd.socket. 正在处理用于 dbus (1.12.20-2) 的触发器 … 正在处理用于 mailcap (3.69) 的触发器 … 正在处理用于 man-db (2.9.4-2) 的触发器 … [email protected]:~# snap install core error: cannot perform the following tasks: – Setup snap "core" (11996) security profiles (cannot setup profiles for snap "core": cannot load apparmor profiles: exit status 185 apparmor_parser output: apparmor_parser: ????"snap-update-ns.core"? ????????? apparmor_parser: ????"snap.core.hook.configure"? ????????? ) [email protected]:~# snap install lxd 2021-12-11T10:24:06+08:00 INFO Waiting for automatic snapd restart… error: cannot perform the following tasks: – Setup snap "lxd" (21901) security profiles (cannot setup profiles for snap "lxd": cannot load apparmor profiles: exit status 185 apparmor_parser output: apparmor_parser: ????"snap-update-ns.lxd"? ????????? apparmor_parser: ????"snap.lxd.benchmark"? ????????? apparmor_parser: ????"snap.lxd.activate"? ????????? apparmor_parser: ????"snap.lxd.buginfo"? ????????? apparmor_parser: ????"snap.lxd.check-kernel"? ????????? apparmor_parser: ????"snap.lxd.daemon"? ?????????apparmor_parser: ????"snap.lxd.hook.configure"? ????????? apparmor_parser: ????"snap.lxd.hook.install"? ????????? apparmor_parser: ????"snap.lxd.hook.remove"? ????????? apparmor_parser: ????"snap.lxd.lxc"? ????????? apparmor_parser: ????"snap.lxd.lxc-to-lxd"? ????????? apparmor_parser: ????"snap.lxd.lxd"? ????????? apparmor_parser: ????"snap.lxd.migrate"? ????????? ) [email protected]:~# |