Skip to content

Commit

Permalink
virtme: always add modules required by microvm to the initramfs
Browse files Browse the repository at this point in the history
Some pre-compiled kernels may not have all the modules required by
microvm (virtio_mmio / virtio_pci) statically built inside the kernel,
causing a boot failure.

This can happen for example with the stock kernel in openSUSE
Tumbleweed.

To prevent this from happening always include the modules required by
microvm, so that we can boot also these kernels without having to
disable microvm.

With this change applied we can run the stock openSUSE Tumbleweed kernel
via `vng -vr`.

Signed-off-by: Andrea Righi <[email protected]>
  • Loading branch information
Andrea Righi committed Feb 16, 2024
1 parent d1c6cf3 commit b794b7b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions virtme/virtmods.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
'virtio:d00000009v00001AF4', # 9pnet_virtio
'virtio:d00000003v00001AF4', # virtio_console

# These are required by the microvm architecture.
'virtio_pci', # virtio-pci
'virtio_mmio', # virtio-mmio

# For virtio_pci architectures (which are, hopefully, all that we care
# about), there's really only one required driver, virtio_pci.
# For completeness, here are both of the instances we care about
Expand Down

0 comments on commit b794b7b

Please sign in to comment.