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