From 12ea607d563b2f47b488176792b52b293b7818e1 Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Fri, 3 Nov 2023 22:45:45 +0800 Subject: [PATCH] Update lxd_qa.md --- docs/en_US/guide/lxd_qa.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/en_US/guide/lxd_qa.md b/docs/en_US/guide/lxd_qa.md index a94e214452..49248eed58 100644 --- a/docs/en_US/guide/lxd_qa.md +++ b/docs/en_US/guide/lxd_qa.md @@ -6,7 +6,7 @@ outline: deep ## What if the lxc command says it can't be found after LXD is installed? -`` +``` ! lxc -h >/dev/null 2>&1 && echo 'alias lxc="/snap/bin/lxc"' >> /root/.bashrc && source /root/.bashrc export PATH=$PATH:/snap/bin ``` @@ -25,10 +25,10 @@ Enable CGroup V1: To enable CGroup V1 on an Ubuntu system, you need to edit the Please note that before changing kernel boot parameters, make sure to backup important data and settings to prevent unexpected problems. -Edit the ```/etc/default/grub`` file and add ``cgroup_enable=memory`` to the end of the parameters in ``GRUB_CMDLINE_LINUX_DEFAULT``. +Edit the ```/etc/default/grub`` file and add ``systemd.unified_cgroup_hierarchy=0`` to the end of the parameters in ``GRUB_CMDLINE_LINUX_DEFAULT``, just like: ``` -GRUB_CMDLINE_LINUX_DEFAULT="quiet splash cgroup_enable=memory" +GRUB_CMDLINE_LINUX_DEFAULT="quiet splash systemd.unified_cgroup_hierarchy=0" ``` Save the file and run the following command to update the GRUB boot. @@ -47,4 +47,4 @@ If the above changes still do not support the opening of centos7, try using a di [datalix](https://t.me/vps_reviews/338) German AMD Promotions -[luxvps](https://billing.luxvps.xyz/aff.php?aff=36) German AMD Promotions \ No newline at end of file +[luxvps](https://billing.luxvps.xyz/aff.php?aff=36) German AMD Promotions