From 35d2f61ec1e279b4173fc1bbf9e65be57c2dac9d Mon Sep 17 00:00:00 2001 From: Arthur Sengileyev Date: Sun, 8 Jan 2023 18:56:35 +0200 Subject: [PATCH] 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 --- pkg/machine/qemu/options_windows_amd64.go | 2 +- pkg/machine/qemu/options_windows_arm64.go | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 pkg/machine/qemu/options_windows_arm64.go diff --git a/pkg/machine/qemu/options_windows_amd64.go b/pkg/machine/qemu/options_windows_amd64.go index b0eaeb5a84..c6ea4afb57 100644 --- a/pkg/machine/qemu/options_windows_amd64.go +++ b/pkg/machine/qemu/options_windows_amd64.go @@ -1,7 +1,7 @@ package qemu var ( - QemuCommand = "qemu-system-x86_64" + QemuCommand = "qemu-system-x86_64w" ) func (v *MachineVM) addArchOptions() []string { diff --git a/pkg/machine/qemu/options_windows_arm64.go b/pkg/machine/qemu/options_windows_arm64.go new file mode 100644 index 0000000000..984c7e4015 --- /dev/null +++ b/pkg/machine/qemu/options_windows_arm64.go @@ -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{} +}