Updated options for QEMU on Windows hosts

Using "w" suffixed versions of QEMU binaries for correct background process
handling and not bind it to lifecycle of command prompt window. Stub for
arm64 version added to fix compilation issues of this target, when QEMU
machine will be finally enabled.

Signed-off-by: Arthur Sengileyev <arthur.sengileyev@gmail.com>
This commit is contained in:
Arthur Sengileyev 2023-01-08 18:56:35 +02:00
parent f451f4fb56
commit 35d2f61ec1
2 changed files with 20 additions and 1 deletions

View File

@ -1,7 +1,7 @@
package qemu
var (
QemuCommand = "qemu-system-x86_64"
QemuCommand = "qemu-system-x86_64w"
)
func (v *MachineVM) addArchOptions() []string {

View File

@ -0,0 +1,19 @@
package qemu
var (
QemuCommand = "qemu-system-aarch64w"
)
func (v *MachineVM) addArchOptions() []string {
// stub to fix compilation issues
opts := []string{}
return opts
}
func (v *MachineVM) prepare() error {
return nil
}
func (v *MachineVM) archRemovalFiles() []string {
return []string{}
}