Open medyagh opened 1 year ago
It seems to be missing the -accel whpx
flag, but there are lots of other things needed to run QEMU on Windows.
// hardware acceleration is important, it increases performance by 10x
if runtime.GOOS == "darwin" {
// On macOS, enable the Hypervisor framework accelerator.
startCmd = append(startCmd,
"-accel", "hvf")
} else if _, err := os.Stat("/dev/kvm"); err == nil && runtime.GOOS == "linux" {
// On Linux, enable the Kernel Virtual Machine accelerator.
startCmd = append(startCmd,
"-accel", "kvm")
} else if runtime.GOOS == "windows" {
// On Windows, enable the WHPX (Hyper-V) accelerator.
startCmd = append(startCmd,
"-accel", "whpx")
}
But it should be possible to boot it, with the Windows qemu binaries:
Experimental Windows support added with https://github.com/kubernetes/minikube/pull/15781
What Happened?
currently we do not return the Qemu Firmware path for windows
https://github.com/kubernetes/minikube/blob/1784105c66c9060eaa447efa3dab6ac2918167ca/pkg/minikube/registry/drvs/qemu2/qemu2.go#L69
I tried to add this if runtime.GOOS == "windows" { return "C:\Program Files\qemu\share\edk2-x86_64-code.fd", nil }
but my current problem is I dont have a succesfull qemu installation on windows, since the exe binary seems to return nothing but blank space
Attach the log file
Operating System
None
Driver
None