qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: usage of virtio-blk-device etc (microvm?)


From: Gerd Hoffmann
Subject: Re: usage of virtio-blk-device etc (microvm?)
Date: Tue, 31 Aug 2021 06:33:09 +0200

  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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]