]> git.ipfire.org Git - thirdparty/systemd.git/commit
vmspawn: add disk type selection for root and extra drives (#41301)
authorLennart Poettering <lennart@amutable.com>
Tue, 24 Mar 2026 20:48:00 +0000 (21:48 +0100)
committerGitHub <noreply@github.com>
Tue, 24 Mar 2026 20:48:00 +0000 (21:48 +0100)
commitfb17ad158131f4d376217d9aae5b5fc363aec076
tree183870c91794b5363e925b0b3976c806504d8fea
parenta8c2aa9e2fdde65939300e83f3782237d300e614
parentb76e1732f7c4781db4eb1611f7fdbbd7d8f830ad
vmspawn: add disk type selection for root and extra drives (#41301)

  vmspawn previously hardcoded virtio-blk for all drives. This adds
  --image-disk-type= to select the root disk type (virtio-blk,
  virtio-scsi, or nvme) and allows per-drive overrides via a
  colon-separated prefix on --extra-drive=. The format and disk type
  prefixes can appear in any order since their value sets don't overlap.

  For virtio-scsi, a single shared controller is created with drives
  attached as scsi-hd devices. For nvme, each drive gets its own
controller. Both have serial number length limits (30 and 20 characters
  respectively), so long filenames are replaced with a truncated SHA-256
  hex digest.
man/systemd-vmspawn.xml
shell-completion/bash/systemd-vmspawn
src/vmspawn/vmspawn-settings.c
src/vmspawn/vmspawn-settings.h
src/vmspawn/vmspawn.c