Skip to content

Commit

Permalink
Updated options for QEMU on Windows hosts
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
arixmkii committed Jan 9, 2023
1 parent f451f4f commit 35d2f61
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/machine/qemu/options_windows_amd64.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package qemu

var (
QemuCommand = "qemu-system-x86_64"
QemuCommand = "qemu-system-x86_64w"
)

func (v *MachineVM) addArchOptions() []string {
Expand Down
19 changes: 19 additions & 0 deletions pkg/machine/qemu/options_windows_arm64.go
Original file line number Diff line number Diff line change
@@ -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{}
}

0 comments on commit 35d2f61

Please sign in to comment.