diff --git a/docs/cgroups.html.in b/docs/cgroups.html.in index a498590c45..081ba2eae1 100644 --- a/docs/cgroups.html.in +++ b/docs/cgroups.html.in @@ -76,11 +76,13 @@

The systemd convention is for the scope name of virtual machines / containers to be of the general format machine-$NAME.scope. Libvirt forms the - $NAME part of this by concatenating the driver type with the name - of the guest, and then escaping any systemd reserved characters. + $NAME part of this by concatenating the driver type with the id + and truncated name of the guest, and then escaping any systemd reserved + characters. So for a guest demo running under the lxc driver, - we get a $NAME of lxc-demo which when escaped is - lxc\x2ddemo. So the complete scope name is machine-lxc\x2ddemo.scope. + we get a $NAME of lxc-12345-demo which when escaped + is lxc\x2d12345\x2ddemo. So the complete scope name is + machine-lxc\x2d12345\x2ddemo.scope. The scope names map directly to the cgroup directory names.

@@ -113,19 +115,19 @@ $ROOT | +- machine.slice | - +- machine-qemu\x2dvm1.scope + +- machine-qemu\x2d1\x2dvm1.scope | | | +- emulator | +- vcpu0 | +- vcpu1 | - +- machine-qemu\x2dvm2.scope + +- machine-qemu\x2d2\x2dvm2.scope | | | +- emulator | +- vcpu0 | +- vcpu1 | - +- machine-qemu\x2dvm3.scope + +- machine-qemu\x2d3\x2dvm3.scope | | | +- emulator | +- vcpu0 @@ -135,15 +137,15 @@ $ROOT | | | +- machine-engineering-testing.slice | | | - | | +- machine-lxc\x2dcontainer1.scope + | | +- machine-lxc\x2d11111\x2dcontainer1.scope | | | +- machine-engineering-production.slice | | - | +- machine-lxc\x2dcontainer2.scope + | +- machine-lxc\x2d22222\x2dcontainer2.scope | +- machine-marketing.slice | - +- machine-lxc\x2dcontainer3.scope + +- machine-lxc\x2d33333\x2dcontainer3.scope

Non-systemd cgroups layout

@@ -174,19 +176,19 @@ $ROOT | +- machine | - +- vm1.libvirt-qemu + +- qemu-1-vm1.libvirt-qemu | | | +- emulator | +- vcpu0 | +- vcpu1 | - +- vm2.libvirt-qemu + +- qeme-2-vm2.libvirt-qemu | | | +- emulator | +- vcpu0 | +- vcpu1 | - +- vm3.libvirt-qemu + +- qemu-3-vm3.libvirt-qemu | | | +- emulator | +- vcpu0 @@ -196,15 +198,15 @@ $ROOT | | | +- testing.partition | | | - | | +- container1.libvirt-lxc + | | +- lxc-11111-container1.libvirt-lxc | | | +- production.partition | | - | +- container2.libvirt-lxc + | +- lxc-22222-container2.libvirt-lxc | +- marketing.partition | - +- container3.libvirt-lxc + +- lxc-33333-container3.libvirt-lxc

Using custom partitions