[Libguestfs] fallback to virtio_blk if guest kernel lacks virtio_scsi support

Olaf Hering olaf at aepfle.de
Mon Sep 3 12:58:08 UTC 2012


On Mon, Sep 03, Richard W.M. Jones wrote:

> I don't know if I want to add extra complexity for this, given what I
> said above about virtio-scsi being clearly a better option for the
> future.  Can you maintain a small out-of-tree patch for this until
> OpenSuSE updates its kernel?

I agree that this guest capability can not be queried easily. Perhaps
running file on the vmlinuz and query the version, assume 3.4 and later
is good enough. That would not cover backported features.

I will carry a small patch which forces qemu_supports_virtio_scsi to
always return 0.

Olaf




More information about the Libguestfs mailing list