Skip to content

Instantly share code, notes, and snippets.

@bartosh
Created April 10, 2017 17:43
Show Gist options
  • Save bartosh/6ee856911ca75cf128f3fedbcadca5dd to your computer and use it in GitHub Desktop.
Save bartosh/6ee856911ca75cf128f3fedbcadca5dd to your computer and use it in GitHub Desktop.
diff --git a/scripts/runqemu b/scripts/runqemu
index a4036ae..e08ebb3 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -986,7 +986,7 @@ class BaseConfig(object):
cmd2 = "grep -q 'root=/dev/hd' %s" % self.rootfs
if subprocess.call(cmd1, shell=True) == 0:
logger.info('Using scsi drive')
- vm_drive = '-drive if=none,id=hd,file=%s,format=%s -device virtio-scsi-pci,id=scsi -device scsi-hd,drive=hd' \
+ vm_drive = '-drive if=virtio,id=hd,file=%s,format=%s -device virtio-scsi-pci,id=scsi -device scsi-hd,drive=hd' \
% (self.rootfs, rootfs_format)
elif subprocess.call(cmd2, shell=True) == 0:
logger.info('Using ide drive')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment