Merge pull request #1729 from estesp/qemu-disk-flag-fix

The `-drive` parameter for qemu run requires more flags
This commit is contained in:
Justin Cormack
2017-04-27 18:54:14 +01:00
committed by GitHub

View File

@@ -238,7 +238,7 @@ func buildQemuCmdline(config QemuConfig) (QemuConfig, []string) {
}
if config.DiskPath != "" {
qemuArgs = append(qemuArgs, "-drive", "file="+config.DiskPath+",format=qcow2")
qemuArgs = append(qemuArgs, "-drive", "file="+config.DiskPath+",format=qcow2,index=0,media=disk")
}
// Check flags for iso/uefi boot and if so disable kernel boot