Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launch Windows 11 development environment on Apple M1 #3540

Closed
mahnunchik opened this issue Jan 25, 2022 · 12 comments
Closed

Launch Windows 11 development environment on Apple M1 #3540

mahnunchik opened this issue Jan 25, 2022 · 12 comments

Comments

@mahnunchik
Copy link

Describe the issue

Is it possible to launch already packed Windows 11 development environment? Downloaded from this page: https://developer.microsoft.com/en-us/windows/downloads/virtual-machines/

It seems it should be possible by using converted Hyper-V image.

$ qemu-img convert -p -O vhdx WinDev2112Eval.vhd WinDev2112Eval.vhdx

But I got stuck on UEFI Interactive shell

image

Configuration

  • UTM Version: 3.0.4
  • OS Version: macOS 12.1
  • Intel or Apple Silicon? Apple Silicon
@ty-yqs
Copy link
Contributor

ty-yqs commented Jan 26, 2022

Did you open this option ? It seems that you need to turn it off.

3F811F89-8245-4B90-B16C-F34A4DD007A1

@ty-yqs
Copy link
Contributor

ty-yqs commented Jan 27, 2022

Did you open this option ? It seems that you need to turn it off.

3F811F89-8245-4B90-B16C-F34A4DD007A1

I mean that there is also a option in UTM on M1 Mac.

@mahnunchik
Copy link
Author

Yep, I've tried to turn it off. The same result.

@conath
Copy link
Contributor

conath commented Jan 27, 2022

On M1, we can't run VMs that depend on x86_64 hardware virtualization like Hyper-V VMs. You may have better luck with the VirtualBox version of that download, as that one will at least include an EFI bootloader in the VM. Still it is created to run with hardware virtualization, which is unavailable for non-ARM guests in UTM on Apple Silicon.

@conath conath closed this as completed Jan 27, 2022
@conath
Copy link
Contributor

conath commented Jan 27, 2022

I am able to boot the VirtualBox image "Windows 11 Enterprise" from the "[Get a Windows 11 development environment]" website in UTM on my Intel Mac. I have attached the config plist for my VM here.
Windows 11 Dev Env (VirtualBox).utm.zip

To get the hard disk image from the downloaded .ova file, you need to rename it to .tar, then double click to decompress. After it's decompressed, you end up with a folder with a couple of files inside. You want the WinDev2112Eval-disk001.vmdk file. The others are not needed for UTM. Next step takes anywhere from minutes to hours depending on your Mac's storage speed: import the VM I linked above, or create a new emulated Windows VM in UTM and import the drive (click New Drive, then Import and choose the file). On my MacBook Air 11" (2015), the import took over half an hour.

Finally, to get it to boot, I had to disable EFI boot and enable hypervisor.
.

@mahnunchik
Copy link
Author

@conath Thank you for the research. How to enable hypervisor?

@conath
Copy link
Contributor

conath commented Jan 27, 2022

@mahnunchik In the VM configuration “QEMU” section, check the “Use Hypervisor” box (if the checkbox is not there, make sure you are using an Intel Mac and update UTM).

@conath
Copy link
Contributor

conath commented Jan 27, 2022

It's worth noting that UTM can't offer nested virtualization due to limitations of Apple's hypervisor on Intel Macs, so the feature "Windows Subsystem for Linux enabled with Ubuntu installed" advertised for this VM will not work and can't be configured to work in UTM, unfortunately.

@pipiche38
Copy link

Thanks it works well!

@erikmartinessanches
Copy link

erikmartinessanches commented Feb 16, 2023

It's worth noting that UTM can't offer nested virtualization due to limitations of Apple's hypervisor on Intel Macs, so the feature "Windows Subsystem for Linux enabled with Ubuntu installed" advertised for this VM will not work and can't be configured to work in UTM, unfortunately.

What about on M1 macs, can UTM offer nested virtualization for an arm Win 11 guest?

@oshan35
Copy link

oshan35 commented Sep 15, 2023

I am also having somewhat similer problem. Trying to load the VM from VHDX file. I directly downloaded it from windows official site.

https://www.microsoft.com/en-us/software-download/windowsinsiderpreviewARM64

can anyone tell me how to fix this.
Screenshot 2023-09-15 at 23 58 03

@ansidev
Copy link

ansidev commented Feb 24, 2024

In the previous step, you have to press any key to boot into the Windows installation wizard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants