Virt-manager, booting Windows 11 - cannot get past the shell screen

I need to find an alternative to Virtualbox, it is far too slow for me. I followed the Manjaro instructions to install Virt-Manager. I selected the Win 11.iso, accepted all defaults, including installation at /var. However, I can’t progress from the shell screen.

.
I don’t know what I am doing wrong.

It can’t find any medium to boot from.

I do a lot of Qemu with Win 10 though (including GPU passthrough). I haven’t even tried to get Win 11 working, I still think you have to hack your away around the TPM requirements to get Win 11 to even work.

Edit: A quick search is showing a lot has changed from when I looked into this over a year ago. You can, but there’s extra steps. You have to install the package swtpm if it’s not already. And use the secure boot firmware (/usr/share/ovmf/x64/OVMF_CODE.secboot.4m.fd)

It’s a requirement of even the installer.

1 Like

I cannot say if this has any correlation

  1. a space in the iso file name - edit filename to win11.iso
  2. Win11 explicitly looks for TPM2 and Secure Boot

I have created a win11 vm

  • Current user added to the libvirt group
  • Edit the vm properties before launch - set firmware to BIOS
Summary

While you can launch the installer - I remember reading about this long time ago - you will need to apply some windows registry tweaks to allow the installer to complete.

LEGALITY

There is the aspect of legality to consider and there is valid reasons to install a virtual Windows.,

Your reason may be entirely valid and this is not to judge yours.

It stands to reason that Manjaro Linux Forum does not endorse any form of piracy - so please ensure you have aquired and own a valid license to run Windows 11 in a virtual machine.

https://wiki.manjaro.org/index.php/Forum_Rules#Legality

Criminal solicitation is strictly forbidden.

In this context, “criminal solicitation” shall mean, “To actively or passively inform about, facilitate, incite, move, or persuade others to some act of lawlessness or illegal activity.”

Therefore, do not post discussions about or link to criminal solicitation in any form. This includes, but is not limited to information or links to facilitate illegal drug use, theft, network intrusion, creation of code for malicious purposes, prohibited software copying, prohibited use of copyrighted/patented material, so-called “warez”, or sites which provide torrents or links to such content. Illegal content will be removed swiftly and dealt with in full accordance with known applicable law.

Beyond the above, please take note of the following very important information

As it is located in Germany, the Manjaro forum server is under German law. German law is quite strict when it comes to copyright protection. The relevant laws are complicated and change fast. We don’t endorse any illegal use of copyrighted material. Therefore, we reserve the right to delete any postings that include copyrighted material, links that make copyrighted material illegally available, and/or postings that advocate the use of software that is used to use copyrighted material in an illegal way. There are many pages on the internet that deal with copyright infringements.

forum.manjaro.org is not a site for copyright violations.

Forum Rules - Manjaro

From virt-manager - Windows 11 | root.nix.dk

Summary

Install Win11 using libvirt

  • Create a new virtual machine
  • Select a Windows 11 ISO file
  • Accept the defaults clicking Next until you reach the final screen
  • Tick the box Customize configuration before install and click Finish
  • In the Overview pane - set vm firmware to BIOS and click Apply
  • Click the button Begin Installation

Installer

Before starting the installer press ShiftF10 so launch the Windows Cmd utility and launch regedit.

  • Expand HKEY_LOCAL_MACHINE\SYSTEM\Setup
  • Add new key named LabConfig
  • Add new DWORD value with name BypassTPMCheck and change the value to 1.
  • Add new DWORD value with name BypassRAMCheck and change the value to 1.
  • Add new DWORD value with name BypassSecureBootCheck and change the value to 1.

Close the registry editor and exit the shell, then continue the installer

Bypass network check

During last stage the installer will insist in network access.

This can be disabled using the Cmd utility ShiftF10 and enter OOBE\BYPASSNRO - then press Enter and back in the setup window click I don’t have internet.

1 Like

Thanks @Molski. I have the TPM and OVMF files installed, but I may not have applied the correct settings.
I discovered this guide but it is more complex than I expected. I am considering reverting to Windows 10 to avoid the Win 11 hurdles.

@linux-aarhus I downloaded the iso from Microsoft. I can’t even boot it let alone apply my licence, so I am guessing the problem is elsewhere. Win 10 may be the easier option.

Thanks for the replies.

So did I - see the content below the blur in above comment.

Summary

I took a look at it - indeed appears complex - it covers a lot of tweaking, which you may not need.

The bare minimum to get a virtual windows 11 running with virt-manager is provided above.

I suggest keeping the guide you found at hand - it may be useful should you take a further steps beyond the bare necessities.

Can confirm that the steps @linux-aarhus lists will get you a working W11 virtual machine using virtmanager.

Possible issue: The ISO is in a place where virtmanager cannot acces it, hence the error. If it is in your home folder place it somewhere else, like /var/tmp/.

I was hoping they would eventually come around. Last year they broke every cloud instance of Win 11 because of a TPM requirement patch that slipped through.

Like I did with Windows ME and Windows Vista, I skipped it. And I will again, or just refuse to run any Windows in the future.

At least if they don’t stop going out of their way to get Win 11 running and supported with Azure or Hyper-V, while attempting making it near impossible to run it anywhere else. The optimizations they put in for virtualising Win10/11 were actually really slick too. Allow me to pay you money and bloody well use them!

So it hasn’t changed much. When you bend over backwards to get it just installed. MS could render your Win 11 guest useless through a patch. And since this is violating the EULA, they can get away with it.

My ultimatum is that they will have until my Windows 10 extended support license expires, or RIP Microsoft.

2 Likes

Try wright exit at the prompt and the installer should start.

@lp354 thanks but I don’t know what ‘wright exit’ means. I gave up after my efforts resulted in a screwed system that wouldn’t boot. The downside; I lost a day. The upside; my machine has never been faster.

The only reason I wanted Windows was so I could dump Virtualbox and find another solution to install Scrivener for Windows.

I discovered a much easier way to install Scrivener for Windows on Linux using Lutris. Couldn’t be happier and I am Windows free. :grin:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.