* usage of virtio-blk-device etc (microvm?)
@ 2021-08-30 17:26 Michael Tokarev
2021-08-31 4:33 ` Gerd Hoffmann
0 siblings, 1 reply; 2+ messages in thread
From: Michael Tokarev @ 2021-08-30 17:26 UTC (permalink / raw)
To: qemu-devel
Hi!
I tried to run the microvm variant of qemu-system, and found out
there's very little information about it available.
In particular, I wasn't able to have a hdd in the virtual machine
using virtio-blk-device like this:
-drive file=foo,if=none,id=drv -device virtio-blk-device,drive=drv
What modules/options are needed within linux guest to see such a
drive? By loading just virtio-blk module (which loads all its
dependencies) the drive isn't becoming available, like it usually
happens after loading virtio-pci with the pci version of virtio-blk.
Also, is there a way to use virtio-blk-device with, say, q35 machine
type? That is, to have virtio-BUS too?
Thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: usage of virtio-blk-device etc (microvm?)
2021-08-30 17:26 usage of virtio-blk-device etc (microvm?) Michael Tokarev
@ 2021-08-31 4:33 ` Gerd Hoffmann
0 siblings, 0 replies; 2+ messages in thread
From: Gerd Hoffmann @ 2021-08-31 4:33 UTC (permalink / raw)
To: Michael Tokarev; +Cc: qemu-devel
Hi,
> In particular, I wasn't able to have a hdd in the virtual machine
> using virtio-blk-device like this:
>
> -drive file=foo,if=none,id=drv -device virtio-blk-device,drive=drv
>
> What modules/options are needed within linux guest to see such a
> drive? By loading just virtio-blk module (which loads all its
> dependencies) the drive isn't becoming available, like it usually
> happens after loading virtio-pci with the pci version of virtio-blk.
You need both virtio-mmio.ko (transport) and virtio-blk.ko (device).
> Also, is there a way to use virtio-blk-device with, say, q35 machine
> type?
No.
take care,
Gerd
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-31 4:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-30 17:26 usage of virtio-blk-device etc (microvm?) Michael Tokarev
2021-08-31 4:33 ` Gerd Hoffmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).