Good morning! I would like to create a Windows 11 VM in Virtual Machine Manager. I am currently running Fedora Kinoite. What are considered to be the “best practices” for building these VMs?
Should I use VirtIO drivers whenever possible for the storage, display, and networking drivers? Or would I be better off leaving “SATA” for the disk bus for storage?
What UEFI firmware option should I choose in VMM?
Should I enable the “Hyper-V Enlightenments” in the VMM XML that SysGuides recommends? Will it actually help or harm the speed of the VM?
Should I set the svm policy flag inside of the VMM XML? I have an AMD Ryzen AI 9 HX370.
Should I turn on Core Isolation inside of the Windows image? Is it true that this should only be turned on for Intel processors?
What are some other common pitfalls for creating Windows 11 VMs that I should try to avoid?
I have “googled the answer”. My issue is that although there are some excellent guides out there for installing VMM and building W11 VMs - the ones from Trafotin and SysGuides in particular stand out - there are some minor differences in how people recommend building their VMs. I am therefore looking for feedback from users here that have built their own W11 VMs so I can try and optimize my VM/OS settings for maximum performance.
Here are my notes I what I did to setup my Windows 11 VM.
Start virt-manager
File/New Virtual Machine
Select “(*) Manual install” - Forward
Type “Windows 11” and select “Microsoft windows 11” - Forward
Set Memory and CPUs to your needs - win 11 needs atleast 2 CPUs -
Forward
Select of crate custom storage. Click Manage and select your .qcow image - Forward
At Step 5 of 5 select “ Customise configuration before install” - Finish
Click on “TPM vNone”.
a) Type should be emulated
b) Open Adavanced options
c) Set Model: to TIS and Version: to 2.0
d) Apply changes.
If converting from VMWare VM then click on NIC: …
a) Change the MAC address to match the value from your VMware config
b) It’s in the .vmx file for your VM and it the "ethernet0.generatedAddress. Apply changes.
Check that in “Overview” the Firmware is UEFI.
Click “Begin Installation” at the top of the window.
Based on the responses I have received thus far, let me re-summarize and simplify my question for clarity:
I have successfully installed VMM and all of its required components.
I have successfully created a W11 VM.
I do not want to use VMWare or VirtualBox, and I am not importing an image from either of those systems.
TL; DR: What settings can I change within VMM or the W11 VM itself in order to improve the performance of the W11 VM?
NOTE: Note: I have already disabled SuperFetch, turned off Windows Web Search in the registry, and Visual Effects have been set to “Adjust for best performance”.
No you didn’t. Otherwise you would just start with the first one to see that it works. qemu runs w11 from the very beginning. Provided you use qemu/kvm, after several messages it is still unknown to us.
Thankfully, I was able to find the answers I sought elsewhere. Kind of surprising, given that this is supposed to be the official Fedora support forum, but it is what it is…
In your browser, download the virtio-win ISO from Github
Create a WIndows 11 VM by setting the OS type to Windows 11
This will automatically configure the “Hyper-V” Enlightenments, so no need to configure the xml manually
On Step 5 of 5 of New VM creation select Customize Configuration before install
On Overview, make sure Chipset is set to “Q35” and Firmware is set to “UEFI”
In the bottom Left, Click on Add Hardware
Under Storage, click on “Select or create custom storage
Select Browse Local on the bottom right and navigate to the virtio-win ISO
Set Device Type to “CDROM device” and Bus Type to “SATA”
Best performance will be given by the following configuration:
VirtIO disk type
VirtIO network interface
VirtIO Inputs
Spice Display
Video QXL
When the Windows ISO boots, it wont detect any disks.
Click Load Driver
Select the virtio cdrom and expand the folder
Select amd64/win11 then hit OK
Install the VirtIO SCSI driver and continue with the OS Install as normal
After installation, there will be no network detected because the rest of the drivers are not installed. You can install the required drivers in Audit mode or after creating a local account. I will detail the steps in audit mode.
Hit Ctrl+Shift+F3 to enter audit mode, the VM will restart and automatically login to the Administrator user and show a window titled System Preparation Tool
Do not close the Sysprep window, if you do just reboot and it will enter audit mode again
Open the VirtIO CD using the FIle Explorer
Scroll to the bottom and run virtio-win-gt-x64.msi and install all features
Enter guest-agent and run qemu-ga-x86_64.msi
Enter spice-vdagent and run spice-vdagent-x64.msi
Enter qxl-wddm-dod and run QxlWddmDod_x64.msi
Now close File Explorer and focus the Sysprep window