qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: qemu-devel@nongnu.org
Subject: Re: usage of virtio-blk-device etc (microvm?)
Date: Tue, 31 Aug 2021 06:33:09 +0200	[thread overview]
Message-ID: <20210831043309.apcno22at6hfk6so@sirius.home.kraxel.org> (raw)
In-Reply-To: <95fd8301-713e-fa88-36e0-072860b88e63@msgid.tls.msk.ru>

  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	other threads:[~2021-08-31  4:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-30 17:26 usage of virtio-blk-device etc (microvm?) Michael Tokarev
2021-08-31  4:33 ` Gerd Hoffmann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210831043309.apcno22at6hfk6so@sirius.home.kraxel.org \
    --to=kraxel@redhat.com \
    --cc=mjt@tls.msk.ru \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).