Hello All,
I have HAXM (v7.8.0) installed on a Windows 11 Pro (x64) along with no hyperv installed which is running:
----------------------------------------
D:\haxm\checktool-windows-1.1.0>checktool.exe
CPU vendor * GenuineIntel
Intel64 supported * Yes
VMX supported * Yes
VMX enabled * Yes
EPT supported * Yes
NX supported * Yes
NX enabled * Yes
Hyper-V disabled * Yes
OS version * Windows 10.0.22631
OS architecture * x86_64
Guest unoccupied * Yes. 0 guest(s)
D:\haxm\checktool-windows-1.1.0>sc query intelhaxm
SERVICE_NAME: intelhaxm
TYPE : 1 KERNEL_DRIVER
STATE : 4 RUNNING
(STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
-----------------------------------------
I have then been able to compile crosvm with Rust [rustc 1.74.0 (79e9716c9 2023-11-13)] which compiled to the crosvm.exe file.
I also compiled the baremetal example just to get a simple test that everything was working, but when I run:
---------------------------------------
.\crosvm.exe run --disable-sandbox .\example\baremetal
[2023-12-03T15:50:30.497163000+00:00 INFO base::sys::windows::platform_timer_resolution] Successfully set timer res to 0.5ms with NtSetTimerResolution. Measured 1199us.
[2023-12-03T15:50:30.498017400+00:00 INFO crosvm::sys::windows::main] DLL loaded: "ntmarta.dll"
[2023-12-03T15:50:30.498511900+00:00 WARN crosvm::sys::windows] Cannot initialize HAXM: The system cannot find the file specified. (os error 2)
[2023-12-03T15:50:30.499053500+00:00 ERROR crosvm] exiting with error -536870763: no enabled hypervisor
Caused by:
exit code: -536870763 = 0xe0000095
PS D:\Crosvm\test> rustc --version
rustc 1.74.0 (79e9716c9 2023-11-13)
------------------------------------
The main problem seems to be "Cannot initialize HAXM: The system cannot find the file specified. (os error 2)" but I do not know what file it is looking for.
Also as a note, I am still a bit new to Rust.
Any thoughts on how to resolve this?
Thanks in advance and have a great day,
Lonnie