Created
April 10, 2017 17:43
-
-
Save bartosh/6ee856911ca75cf128f3fedbcadca5dd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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