Closed rohanp-91 closed 8 months ago
Hello! Apple M1 (which is a base for both OS13 & OS14 arm64 runners) does not support nested virtualisation, that is why android emulator is not supposed to function here, it is expected and nothing could/should be done here.
@mikhailkoliada I see, makes sense. Is there any alternative to launch emulator on M1 devices?
@mikhailkoliada Also, could you please explain how is it nested virtualisation if I am not running in Rosetta? I am using qemu-darwin-aarch64.
Nevermind, I think it's because we are trying to launch the emulator VM inside the macOS VM.
Copying the comment from @peterlazar1993 , looks like it could be interesting for theoretical future GitHub Actions runners on M3 chips with macOS Sequoia:
You cannot run a VM(android emulator) inside a VM on M1, M2 macs.
M3 macs with OSX15 (upcoming), will allow nested virtualisation - forum.parallels.com/threads/macos-15-sequoia-nested-virtualization-for-m3-macs.364397
Description
We are trying to launch Android emulator using our test script. I have pasted a snippet of the relevant code below:
This same script works across macos-12 and macos-13 images. However, on macos-13-arm agents, it keeps failing with the following error:
Is there some agent level suppressions that's failing to launch Hypervisor? Since the same script works for macOS-13 (Intel), I don't think there's an issue with the script.
Platforms affected
Runner images affected
Image version and build link
Image: macos-13-arm64 Version: 20240219.3
https://msasg.visualstudio.com/Bing_Ads/_build/results?buildId=44158865&view=logs&j=1f633cd7-02c6-5eca-e555-d21a3c888056&t=6b46bbb8-3868-5170-56cb-4f4fbbcb5c8f
Is it regression?
No
Expected behavior
Android emulator should launch with Hypervisor.
Actual behavior
Hypervisor creation fails with HV_UNSUPPORTED.
Repro steps
Try to launch emulator.