{"id":800,"date":"2021-12-11T02:38:00","date_gmt":"2021-12-11T02:38:00","guid":{"rendered":"https:\/\/262235.xyz\/?p=800"},"modified":"2021-12-11T02:38:00","modified_gmt":"2021-12-11T02:38:00","slug":"800","status":"publish","type":"post","link":"https:\/\/lyvba.com\/index.php\/2021\/12\/11\/800\/","title":{"rendered":"\u770b\u6765\u7532\u9aa8\u6587ARM64\u662f\u771f\u7684\u4e0d\u80fd\u5957\u5a03\u5f00\u5c0f\u9e21\u4e86"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/12\/498220626.png\" alt=\"u3eeP.png\" title=\"u3eeP.png\"><\/p>\n<h3>PVE \u53ef\u4ee5\u5efa\u7acb LXC \u5bb9\u5668\uff0c\u4f46\u662f\u6ca1\u6cd5\u542f\u52a8\u5bb9\u5668<\/h3>\n<pre><code>run_apparmor_parser: 919 Failed to run apparmor_parser on \"\/var\/lib\/lxc\/101\/apparmor\/lxc-101_&lt;-var-lib-lxc&gt;\": apparmor_parser: ????\"lxc-101_&lt;\/var\/lib\/lxc&gt;\"?  ?????????\napparmor_prepare: 1089 Failed to load generated AppArmor profile\nlxc_init: 850 Failed to initialize LSM\n__lxc_start: 2007 Failed to initialize container \"101\"\nTASK ERROR: startup for container '101' failed<\/code><\/pre>\n<h2>LXD - \u5bb9\u5668\u548c\u865a\u62df\u673a\u7ba1\u7406\u5668<\/h2>\n<h3><a href=\"https:\/\/snapcraft.io\/install\/lxd\/debian\">https:\/\/snapcraft.io\/install\/lxd\/debian<\/a><\/h3>\n<p>LXD \u662f\u4e00\u4e2a\u7cfb\u7edf\u5bb9\u5668\u548c\u865a\u62df\u673a\u7ba1\u7406\u5668\u3002<\/p>\n<p>\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e2a\u7b80\u5355\u7684 CLI \u548c REST API \u6765\u7ba1\u7406\u672c\u5730\u6216\u8fdc\u7a0b\u5b9e\u4f8b\uff0c\u4f7f\u7528\u57fa\u4e8e\u56fe\u50cf\u7684\u5de5\u4f5c\u6d41\u5e76\u652f\u6301\u5404\u79cd\u9ad8\u7ea7\u529f\u80fd\u3002<\/p>\n<p>\u6620\u50cf\u53ef\u7528\u4e8e\u6240\u6709 Ubuntu \u7248\u672c\u548c\u67b6\u6784\u4ee5\u53ca\u5927\u91cf\u5176\u4ed6 Linux \u53d1\u884c\u7248\u3002\u73b0\u6709\u4e0e\u8bb8\u591a\u90e8\u7f72\u548c\u8fd0\u8425\u5de5\u5177\u7684\u96c6\u6210\uff0c\u4f7f\u5176\u50cf\u516c\u5171\u4e91\u4e00\u6837\u5de5\u4f5c\uff0c\u4f46\u4e00\u5207\u90fd\u5728\u60a8\u7684\u638c\u63a7\u4e4b\u4e2d\u3002<\/p>\n<p>LXD \u5bb9\u5668\u662f\u8f7b\u91cf\u7ea7\u7684\u3001\u9ed8\u8ba4\u5b89\u5168\u7684\uff0c\u662f\u5728 Linux \u4e0a\u8fd0\u884c Linux \u65f6\u865a\u62df\u673a\u7684\u7edd\u4f73\u66ff\u4ee3\u54c1\u3002<\/p>\n<p>LXD \u865a\u62df\u673a\u73b0\u4ee3\u4e14\u5b89\u5168\uff0c\u9ed8\u8ba4\u4f7f\u7528 UEFI \u548c\u5b89\u5168\u542f\u52a8\uff0c\u662f\u9700\u8981\u4e0d\u540c\u5185\u6838\u6216\u64cd\u4f5c\u7cfb\u7edf\u65f6\u7684\u7edd\u4f73\u9009\u62e9\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/12\/2271450981.png\" alt=\"u3Q1q.png\" title=\"u3Q1q.png\"><\/p>\n<h2>\u5728 Debian \u4e0a\u542f\u7528 snaps \u5e76\u5b89\u88c5 lxd  (\u4f46\u662f\u7532\u9aa8\u6587ARM64\u5b89\u88c5\u6709\u9519\u8bef)<\/h2>\n<p>Snaps \u662f\u6253\u5305\u4e86\u6240\u6709\u4f9d\u8d56\u9879\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u53ef\u901a\u8fc7\u5355\u4e2a\u6784\u5efa\u5728\u6240\u6709\u6d41\u884c\u7684 Linux \u53d1\u884c\u7248\u4e0a\u8fd0\u884c\u3002\u5b83\u4eec\u4f1a\u81ea\u52a8\u66f4\u65b0\u5e76\u4f18\u96c5\u5730\u56de\u6eda\u3002<\/p>\n<pre><code># \u5b89\u88c5 snaps \u548c core\nsudo apt update\nsudo apt install snapd\nsudo snap install core\n\n# \u5b89\u88c5 lxd\nsudo snap install lxd<\/code><\/pre>\n<pre><code>The programs included with the Debian GNU\/Linux system are free software;\nthe exact distribution terms for each program are described in the\nindividual files in \/usr\/share\/doc\/*\/copyright.\n\nDebian GNU\/Linux comes with ABSOLUTELY NO WARRANTY, to the extent\npermitted by applicable law.\nLast login: Fri Dec 10 19:54:12 2021\nroot@arm2021:~# apt install snapd\n\u6b63\u5728\u8bfb\u53d6\u8f6f\u4ef6\u5305\u5217\u8868... \u5b8c\u6210\n\u6b63\u5728\u5206\u6790\u8f6f\u4ef6\u5305\u7684\u4f9d\u8d56\u5173\u7cfb\u6811... \u5b8c\u6210\n\u6b63\u5728\u8bfb\u53d6\u72b6\u6001\u4fe1\u606f... \u5b8c\u6210\n\u5c06\u4f1a\u540c\u65f6\u5b89\u88c5\u4e0b\u5217\u8f6f\u4ef6\uff1a\n  squashfs-tools\n\u5efa\u8bae\u5b89\u88c5\uff1a\n  zenity | kdialog\n\u4e0b\u5217\u3010\u65b0\u3011\u8f6f\u4ef6\u5305\u5c06\u88ab\u5b89\u88c5\uff1a\n  snapd squashfs-tools\n\u5347\u7ea7\u4e86 0 \u4e2a\u8f6f\u4ef6\u5305\uff0c\u65b0\u5b89\u88c5\u4e86 2 \u4e2a\u8f6f\u4ef6\u5305\uff0c\u8981\u5378\u8f7d 0 \u4e2a\u8f6f\u4ef6\u5305\uff0c\u6709 0 \u4e2a\u8f6f\u4ef6\u5305\u672a\u88ab\u5347\u7ea7\u3002\n\u6709 2 \u4e2a\u8f6f\u4ef6\u5305\u6ca1\u6709\u88ab\u5b8c\u5168\u5b89\u88c5\u6216\u5378\u8f7d\u3002\n\u9700\u8981\u4e0b\u8f7d 11.7 MB \u7684\u5f52\u6863\u3002\n\u89e3\u538b\u7f29\u540e\u4f1a\u6d88\u8017 52.8 MB \u7684\u989d\u5916\u7a7a\u95f4\u3002\n\u60a8\u5e0c\u671b\u7ee7\u7eed\u6267\u884c\u5417\uff1f [Y\/n] y\n\u83b7\u53d6:1 http:\/\/security.debian.org\/debian-security bullseye-security\/main arm64 squashfs-tools arm64 1:4.4-2+deb11u2 [128 kB]\n\u83b7\u53d6:2 http:\/\/deb.debian.org\/debian bullseye\/main arm64 snapd arm64 2.49-1+b5 [11.6 MB]\n\u5df2\u4e0b\u8f7d 11.7 MB\uff0c\u8017\u65f6 0\u79d2 (50.7 MB\/s)\n\u6b63\u5728\u9009\u4e2d\u672a\u9009\u62e9\u7684\u8f6f\u4ef6\u5305 squashfs-tools\u3002\n(\u6b63\u5728\u8bfb\u53d6\u6570\u636e\u5e93 ... \u7cfb\u7edf\u5f53\u524d\u5171\u5b89\u88c5\u6709 70416 \u4e2a\u6587\u4ef6\u548c\u76ee\u5f55\u3002)\n\u51c6\u5907\u89e3\u538b ...\/squashfs-tools_1%3a4.4-2+deb11u2_arm64.deb  ...\n\u6b63\u5728\u89e3\u538b squashfs-tools (1:4.4-2+deb11u2) ...\n\u6b63\u5728\u9009\u4e2d\u672a\u9009\u62e9\u7684\u8f6f\u4ef6\u5305 snapd\u3002\n\u51c6\u5907\u89e3\u538b ...\/snapd_2.49-1+b5_arm64.deb  ...\n\u6b63\u5728\u89e3\u538b snapd (2.49-1+b5) ...\n\u6b63\u5728\u8bbe\u7f6e squashfs-tools (1:4.4-2+deb11u2) ...\n\u6b63\u5728\u8bbe\u7f6e pve-manager (7.1-7) ...\n\u6b63\u5728\u8bbe\u7f6e proxmox-ve (7.1-1) ...\n\u6b63\u5728\u8bbe\u7f6e snapd (2.49-1+b5) ...\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/snapd.recovery-chooser-trigger.service \u2192 \/lib\/systemd\/system\/snapd.recovery-chooser-trigger.service.\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/snapd.seeded.service \u2192 \/lib\/systemd\/system\/snapd.seeded.service.\nCreated symlink \/etc\/systemd\/system\/cloud-final.service.wants\/snapd.seeded.service \u2192 \/lib\/systemd\/system\/snapd.seeded.service.\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/snapd.service \u2192 \/lib\/systemd\/system\/snapd.service.\nCreated symlink \/etc\/systemd\/system\/sockets.target.wants\/snapd.socket \u2192 \/lib\/systemd\/system\/snapd.socket.\n\u6b63\u5728\u5904\u7406\u7528\u4e8e dbus (1.12.20-2) \u7684\u89e6\u53d1\u5668 ...\n\u6b63\u5728\u5904\u7406\u7528\u4e8e mailcap (3.69) \u7684\u89e6\u53d1\u5668 ...\n\u6b63\u5728\u5904\u7406\u7528\u4e8e man-db (2.9.4-2) \u7684\u89e6\u53d1\u5668 ...\nroot@arm2021:~# snap install core\nerror: cannot perform the following tasks:\n- Setup snap \"core\" (11996) security profiles (cannot setup profiles for snap \"core\": cannot load apparmor profiles: exit status 185\napparmor_parser output:\napparmor_parser: ????\"snap-update-ns.core\"?  ?????????\napparmor_parser: ????\"snap.core.hook.configure\"?  ?????????\n)\nroot@arm2021:~# snap install lxd\n2021-12-11T10:24:06+08:00 INFO Waiting for automatic snapd restart...\nerror: cannot perform the following tasks:\n- Setup snap \"lxd\" (21901) security profiles (cannot setup profiles for snap \"lxd\": cannot load apparmor profiles: exit status 185\napparmor_parser output:\napparmor_parser: ????\"snap-update-ns.lxd\"?  ?????????\napparmor_parser: ????\"snap.lxd.benchmark\"?  ?????????\napparmor_parser: ????\"snap.lxd.activate\"?  ?????????\napparmor_parser: ????\"snap.lxd.buginfo\"?  ?????????\napparmor_parser: ????\"snap.lxd.check-kernel\"?  ?????????\napparmor_parser: ????\"snap.lxd.daemon\"?  ?????????apparmor_parser: ????\"snap.lxd.hook.configure\"?  ?????????\napparmor_parser: ????\"snap.lxd.hook.install\"?  ?????????\napparmor_parser: ????\"snap.lxd.hook.remove\"?  ?????????\napparmor_parser: ????\"snap.lxd.lxc\"?  ?????????\napparmor_parser: ????\"snap.lxd.lxc-to-lxd\"?  ?????????\napparmor_parser: ????\"snap.lxd.lxd\"?  ?????????\napparmor_parser: ????\"snap.lxd.migrate\"?  ?????????\n)\nroot@arm2021:~# <\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>PVE \u53ef\u4ee5\u5efa\u7acb LXC \u5bb9\u5668\uff0c\u4f46\u662f\u6ca1\u6cd5\u542f\u52a8\u5bb9\u5668 run_apparmor_parser: 919  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-800","post","type-post","status-publish","format-standard","hentry","category-vps"],"_links":{"self":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/800","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/comments?post=800"}],"version-history":[{"count":0,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/800\/revisions"}],"wp:attachment":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media?parent=800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/categories?post=800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/tags?post=800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}