A simple, powerful CLI tool to spin up OpenIndiana virtual machines with QEMU

Add AHCI support for virtual machines in QEMU configuration

+10 -2
+5 -1
src/subcommands/start.ts
··· 29 29 : "user,id=net0,hostfwd=tcp::2222-:22", 30 30 "-device", 31 31 `e1000,netdev=net0,mac=${vm.macAddress}`, 32 + "-device", 33 + "ahci,id=ahci0", 32 34 "-nographic", 33 35 "-monitor", 34 36 "none", ··· 39 41 ..._.compact( 40 42 vm.drivePath && [ 41 43 "-drive", 42 - `file=${vm.drivePath},format=${vm.diskFormat},if=virtio`, 44 + `file=${vm.drivePath},format=${vm.diskFormat},if=none,id=disk0`, 45 + "-device", 46 + "ide-hd,drive=disk0,bus=ahci0.0", 43 47 ], 44 48 ), 45 49 ],
+5 -1
src/utils.ts
··· 112 112 : "user,id=net0,hostfwd=tcp::2222-:22", 113 113 "-device", 114 114 `e1000,netdev=net0,mac=${macAddress}`, 115 + "-device", 116 + "ahci,id=ahci0", 115 117 "-nographic", 116 118 "-monitor", 117 119 "none", ··· 122 124 ..._.compact( 123 125 options.image && [ 124 126 "-drive", 125 - `file=${options.image},format=${options.diskFormat},if=virtio`, 127 + `file=${options.image},format=${options.diskFormat},if=none,id=disk0`, 128 + "-device", 129 + "ide-hd,drive=disk0,bus=ahci0.0", 126 130 ], 127 131 ), 128 132 ],