[doc] module: make cgroups configuration more visible

This commit is contained in:
Quantum 2021-10-16 23:48:35 -04:00 committed by Geoffrey McRae
parent 13fabc2e4a
commit c9e8de334a

View File

@ -174,19 +174,19 @@ Create the following XML block in your domain:
Running libvirt this way violates AppArmor and cgroups policies, which will Running libvirt this way violates AppArmor and cgroups policies, which will
block the VM from running. These policies must be amended to allow the VM block the VM from running. These policies must be amended to allow the VM
to start. to start:
For AppArmor, create ``/etc/apparmor.d/local/abstractions/libvirt-qemu`` if - For AppArmor, create ``/etc/apparmor.d/local/abstractions/libvirt-qemu`` if
it doesn't exist, and add the following:: it doesn't exist, and add the following::
# Looking Glass # Looking Glass
/dev/kvmfr0 rw, /dev/kvmfr0 rw,
For cgroups, edit ``/etc/libvirt/qemu.conf``, uncomment the - For cgroups, edit ``/etc/libvirt/qemu.conf``, uncomment the
``cgroup_device_acl`` block, and add ``/dev/kvmfr0`` to the list. ``cgroup_device_acl`` block, and add ``/dev/kvmfr0`` to the list.
Then restart ``libvirtd``: Then restart ``libvirtd``:
.. code:: bash .. code:: bash
sudo systemctl restart libvirtd.service sudo systemctl restart libvirtd.service