Skip to content

Add DriveType= setting for qemu root disk device type - #4228

Merged
daandemeyer merged 1 commit into
systemd:mainfrom
brauner:work.qemu.nvme
Mar 29, 2026
Merged

Add DriveType= setting for qemu root disk device type#4228
daandemeyer merged 1 commit into
systemd:mainfrom
brauner:work.qemu.nvme

Conversation

@brauner

@brauner brauner commented Mar 21, 2026

Copy link
Copy Markdown
Member

Add a new DriveType= setting that allows configuring the device type used for the root disk when booting a virtual machine with qemu. The supported types are virtio-blk (default, preserving existing behavior), virtio-scsi, and nvme.

Previously, the only way to use nvme was by manually adding qemu device arguments via QemuArgs=. This makes nvme a first-class option.

When Removable= is enabled, the drive type is forced to virtio-scsi regardless of the DriveType= setting, preserving existing behavior.

Comment thread mkosi/config.py Outdated
Comment thread mkosi/qemu.py
Comment thread mkosi/resources/man/mkosi.1.md Outdated
@brauner
brauner force-pushed the work.qemu.nvme branch 2 times, most recently from 4e5402b to 180006d Compare March 21, 2026 16:50
Comment thread mkosi/qemu.py Outdated
Comment thread mkosi/config.py Outdated
Comment thread mkosi/qemu.py Outdated
Comment thread mkosi/config.py Outdated
Add a new DriveType= setting that allows configuring the device type
used for the root disk when booting a virtual machine with qemu. The
supported types are virtio-blk (default, preserving existing behavior),
virtio-scsi, and nvme.

Previously, the only way to use nvme was by manually adding qemu device
arguments via QemuArgs=. This makes nvme a first-class option.

When Removable= is enabled, the drive type is forced to virtio-scsi
regardless of the DriveType= setting, preserving existing behavior.

Signed-off-by: Christian Brauner <brauner@kernel.org>
@brauner

brauner commented Mar 24, 2026

Copy link
Copy Markdown
Member Author

Ok, vmspawn changes are merged.

@brauner
brauner requested a review from daandemeyer March 24, 2026 22:56
@daandemeyer
daandemeyer merged commit 5a14e98 into systemd:main Mar 29, 2026
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants