From 30247ea76e72ed89a5d86ec9b78ca8f89a989258 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 7 Nov 2023 21:36:46 +0100 Subject: [PATCH] man: many fixes systemd-vmspawn(1) - version information - indentation and missing tags - mkosi and qemu don't need root --- man/systemctl.xml | 8 +-- man/systemd-vmspawn.xml | 118 +++++++++++++++++++++++----------------- 2 files changed, 72 insertions(+), 54 deletions(-) diff --git a/man/systemd-vmspawn.xml b/man/systemd-vmspawn.xml index bf3aaf028eafe..4ca6f1a74fd2f 100644 --- a/man/systemd-vmspawn.xml +++ b/man/systemd-vmspawn.xml @@ -44,59 +44,73 @@ The following options are understood: - Image Options + Image Options - - - - + + + + - Root file system disk image (or device node) for the virtual machine. - - + Root file system disk image (or device node) for the virtual machine. + + + + + - Host Configuration + Host Configuration + + + + SMP + + Configures the number of CPUs to start the virtual machine with. + Defaults to 1. + + + + + + + MEM + + Configures the amount of memory to start the virtual machine with. + Defaults to 2G. - - - SMP + + + - Configures the number of CPUs to start the virtual machine with. - Defaults to 1. - + + - - MEM + Configures whether to use KVM. If the option is not specified KVM support will be + detected automatically. If true, KVM is always used, and if false, KVM is never used. - Configures the amount of memory to start the virtual machine with. - Defaults to 2G. - + + - - + + - Configure whether to use KVM. - If the option is not specified KVM support will be detected automatically. - If yes is specified KVM is always used, and vice versa if no is set KVM is never used. - + Start QEMU in graphical mode. - - + + - Start QEMU in graphical mode. - + + - - + Configures whether to search for firmware which supports secure boot. If the option + is not specified, the first firmware which is detected will be used. If true, then the first + firmware with secure boot support will be selected. If false, then the first firmware without + secure boot will be selected. - Configure whether to search for firmware which supports secure boot. - If the option is not specified the first firmware which is detected will be used. - If the option is set to yes then the first firmware with secure boot support will be selected. - If no is specified then the first firmware without secure boot will be selected. - - + + + @@ -116,19 +130,21 @@ use C-style escaping (i.e. \n to embed a newline, or \x00 to embed a NUL byte). Note that the invoking shell might already apply unescaping once, hence this might require double escaping!. - + + - - Other + + + Other - - - - - - + + + + + + @@ -139,8 +155,10 @@ Run an Arch Linux VM image generated by mkosi - # mkosi -d arch -p systemd -p linux --autologin -o image.raw -f build - # systemd-vmspawn --image=image.raw + +$ mkosi -d arch -p systemd -p linux --autologin -o image.raw -f build +$ systemd-vmspawn --image=image.raw + @@ -155,7 +173,7 @@ See Also systemd1, - mkosi1, + mkosi1