From e22643bddea7a3e9e397b18614fcf51195f19f99 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Sun, 5 Mar 2023 20:07:58 +0100 Subject: debvm-create: extend examples in the manual page --- bin/debvm-create | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'bin/debvm-create') diff --git a/bin/debvm-create b/bin/debvm-create index 89256eb..521ad36 100755 --- a/bin/debvm-create +++ b/bin/debvm-create @@ -136,10 +136,33 @@ Any positional arguments passed here will be treated as mirror specifications by =head1 EXAMPLES -In order to create images for Debian ports architectures, you can pass two options to mmdebstrap: +In order to create images for Debian ports architectures, you can pass two options to mmdebstrap. debvm-create ... -- http://deb.debian.org/debian-ports --keyring=/usr/share/keyrings/debian-ports-archive-keyring.gpg +You can also install a graphical desktop environment. + + debvm-create ... -- --hook-dir=/usr/share/mmdebstrap/hooks/useradd --aptopt='Apt::Install-Recommends "true"' --include=linux-image-generic,task-gnome-desktop + +Here the hook creates a password-less user C. +In order for C to work reasonably well, C should be enabled. +By default a C<-cloud> kernel that lacks graphics drivers is installed. + +Installing Ubuntu is also supported somewhat. + + debvm-create --release kinetic -- --keyring=/usr/share/keyrings/ubuntu-archive-keyring.gpg --components=main,universe --include=e2fsprogs + +Note that C must be enabled as the C and C hooks rely packages from that component. +C should be pulled by C. + +There also is an aid for sharing a directory with the VM. + + debvm-create ... -- --include=linux-image-generic --hook-dir=/usr/share/mmdebstrap/hooks/9pmount + debvm-run ... -- -virtfs local,security_model=none,path=/host_path,mount_tag=guest_tag + +This will mount the directory C from the host as C in the VM during boot using 9P. +Note that the C<-cloud> kernel lacks the 9P filesystem driver. + =head1 SEE ALSO debvm-run(1) mmdebstrap(1) -- cgit v1.2.3