Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
libvirtd direct kernel boot
#!/usr/bin/env bash
mkinitrd \
--with fuse \
--with virtio_scsi \
--with virtio_mmio \
--with virtio_console \
--with virtio_blk \
-f initrd.img \
"$(uname -r)"
qemu-nbd -f qcow2 --connect=/dev/nbd0 disk.QCOW2
mount /dev/nbd0 /var/lib/machines/temp
bash --login -i
umount /dev/nbd0
qemu-nbd --disconnect /dev/nbd0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment