diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/runqemu | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index b6fca041ae..c324982e8a 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
@@ -1196,6 +1196,9 @@ class BaseConfig(object): | |||
1196 | elif drive_type.startswith("/dev/hd"): | 1196 | elif drive_type.startswith("/dev/hd"): |
1197 | logger.info('Using ide drive') | 1197 | logger.info('Using ide drive') |
1198 | vm_drive = "-drive file=%s,format=%s" % (self.rootfs, rootfs_format) | 1198 | vm_drive = "-drive file=%s,format=%s" % (self.rootfs, rootfs_format) |
1199 | elif drive_type.startswith("/dev/vdb"): | ||
1200 | logger.info('Using block virtio drive'); | ||
1201 | vm_drive = '-drive id=disk0,file=%s,if=none,format=%s -device virtio-blk-device,drive=disk0' % (self.rootfs, rootfs_format) | ||
1199 | else: | 1202 | else: |
1200 | # virtio might have been selected explicitly (just use it), or | 1203 | # virtio might have been selected explicitly (just use it), or |
1201 | # is used as fallback (then warn about that). | 1204 | # is used as fallback (then warn about that). |