diff --git a/scripts/runqemu b/scripts/runqemu index a05facd0db6..98d3377b529 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -1187,6 +1187,9 @@ class BaseConfig(object): elif drive_type.startswith("/dev/hd"): logger.info('Using ide drive') vm_drive = "-drive file=%s,format=%s" % (self.rootfs, rootfs_format) + elif drive_type.startswith("/dev/vdb"): + logger.info('Using block virtio drive'); + vm_drive = '-drive id=disk0,file=%s,if=none,format=%s -device virtio-blk-device,drive=disk0' % (self.rootfs, rootfs_format) else: # virtio might have been selected explicitly (just use it), or # is used as fallback (then warn about that).