DEBEFIVM-CREATE(1)
β¨ DEBEFIVM-CREATE β¨
okay bestie, so this is a User Contributed Perl Documentation page, section 1 of the manual β it's debefivm-create, and it's literally about to hand you a bootable EFI VM image π
π NAME π
debefivm-create β create an EFI-bootable VM image for various Debian releases and architectures π¦
π SYNOPSIS π
debefivm-create [-h hostname] [-k sshkey] [-o output] [-r release] [-s <task>] [-z size] [-- mmdebstrap options]
πΈ DESCRIPTION πΈ
okay so the whole vibe here is: you run this, and you get an EFI-bootable disk image that boots straight into Debian π₯ It's basically a thin wrapper around mmdebstrap, much like debvm-create β same energy, different flavor.
The resulting image has a GPT partition table with an EFI system partition in it. A Unified Kernel Image gets constructed from the installed kernel and initrd, and that gets placed into said partition. so it's giving very put-together, very bootable β¨
Because of that, this image can be booted with a whole bunch of virtual machine emulators like incus, libvirt or VirtualBox. It may also be booted using debefivm-run π«Ά
no user account is created and root can login without specifying a password. periodt. that's just how it is π
π OPTIONS π
-aarchitecture,--architecture=architecture β sets the architecture of the virtual machine π« This one gets forwarded tommdebstrap, and you can supply multiple architectures. The first architecture is the one used to assemble the Unified Kernel Image. Defaults to the native architecture of the installation.-hhostname,--hostname=hostname β sets the hostname of the virtual machine π By default, the hostname istestvm.-ksshkey,--sshkey=sshkey β installs the given ssh public key file into the virtual machine image, for the root user π This option also causes the ssh server to be installed. By default, no key or server is installed. To connect to the vm, pass a port number todebefivm-runwith the-soption.-ooutput,--output=output β picks the file name of the resulting virtual machine image π By default, it gets written tovm.img.-rrelease,--release=release β use the given Debian release π By default,unstableis being used. If you pass a completesources.listthat includes release names tommdebstrap, you may pass an empty string here.-stask,--skip=task β skips a particular task or feature π You can specify this option multiple times, or list multiple tasks separated by a comma. By default, no tasks are skipped. Here's what you can skip:autologinβ don't set the machine up for automatic password-less root login on the console π« This comprises the following changes that would normally be performed: automatic root login is configured for the init systemsfinit,runit,systemdandsysv. Forwarding of the"TERM"kernel command line toagettyis configured. The root password is deleted such that a login does not ask for it and the system directly boots to a shell prompt.kernelβ skips installing a linux kernel image π§ This can be useful to install a kernel without a package. If a kernel is installed via themmdebstrapoption--include, automatic kernel installation is automatically skipped.packagelistsβ reduces the package lists inside the image π¦ The available database fordpkgis not created. The package lists used byaptare deleted. This generally produces a smaller image, but you need to runapt updatebefore installing packages, anddpkg --set-selectionsdoes not work. so like, trade-offs, bestie πsystemdnetworkβ skips installinglibnss-resolveas well as automatic network configuration viasystemd-networkdπ‘usrmergeβ by defaultdebefivm-createadds a hook to enable merged-/usrwithout theusrmergepackage, given a sufficiently recent Debian release πΏ Without the hook, dependencies will pull theusrmergepackage as needed, which may result in a larger installation.
--rootsize=size β you can use this as an alternative to--imagesizeto determine the size of the output image π It's also composed of an integer with an optional unit. Unlike--imagesize, it determines the size of the root filesystem partition, and the resulting image will be slightly larger than the size given here.-zsize,--imagesize=size β specify the total image size as an integer and optional unit (example:10Kis10*1024) πΎ Units areK,M,G,T(powers of 1024). The disk image contains an EFI system partition and an ext4 root filesystem. The EFI partition has a static size of about 128MB, and the remaining space gets allocated to the root filesystem. The default is 10 GB.--mmdebstrap options β everything beyond a double dash gets passed tommdebstrapafter the suite and target specification π This can be used to provide additional hooks for image customization. You can also request additional packages to be installed into the image usingmmdebstrap's--includeoption. Any positional arguments passed here will be treated as mirror specifications bymmdebstrap.
β οΈ the--architectureoption should not be given here, becausedebefivm-createneeds to know its value to construct a Unified Kernel Image. no cap, it genuinely needs it.
π§ EXAMPLES π§
create an image suitable for use with autopkgtest-virt-qemu --efi π―
debefivm-create ... -- --include=linux-image-generic,libpam-systemd,passwd,python3 --hook-dir=/usr/share/mmdebstrap/hooks/useradd --customize-hook=/usr/share/autopkgtest/setup-commands/setup-testbed
π SEE ALSO π
and that's the whole page bestie, iykyk π this one shipped as perl v5.40.1, dated 2026-03-23 β go make some iconic bootable images, mwah π«Άβ¨π
π¦ where this page comes from
- ubuntu resolute: debvm 0.5.2ubuntu1 Β· MIT
- ubuntu stonking: debvm 0.5.2ubuntu1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms