Skip to content

Commit a7f4068

Browse files
committed
Fix QEMU issue on binding multiple disks in M1
Signed-off-by: Balaji Vijayakumar <[email protected]>
1 parent 87ddded commit a7f4068

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/qemu/qemu.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ func Cmdline(cfg Config) (string, []string, error) {
466466
"-device", "scsi-cd,bus=scsi0.0,drive=cdrom0")
467467
default:
468468
// TODO: consider using virtio cdrom for all the architectures
469-
args = append(args, "-cdrom", filepath.Join(cfg.InstanceDir, filenames.CIDataISO))
469+
args = append(args, "-drive", fmt.Sprintf("file=%s,media=cdrom,readonly=on", filepath.Join(cfg.InstanceDir, filenames.CIDataISO)))
470470
}
471471

472472
// Kernel

0 commit comments

Comments
 (0)