Windows 11 install on Proxmox
Guides
Downloads
Prime the GPU
-
List all the vendor id's for PCI's connected to the system with
lspci -v
-
Find the GPU in question, and ignore its audio part
0c:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1) (prog-if 00 [VGA controller])
Subsystem: PNY GP102 [GeForce GTX 1080 Ti]
Flags: bus master, fast devsel, latency 0, IRQ 121, IOMMU group 29
Memory at ee000000 (32-bit, non-prefetchable) [size=16M]
Memory at b0000000 (64-bit, prefetchable) [size=256M]
Memory at c0000000 (64-bit, prefetchable) [size=32M]
I/O ports at f000 [size=128]
Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Legacy Endpoint, MSI 00
Capabilities: [100] Virtual Channel
Capabilities: [250] Latency Tolerance Reporting
Capabilities: [128] Power Budgeting <?>
Capabilities: [420] Advanced Error Reporting
Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
Capabilities: [900] Secondary PCI Express
Kernel driver in use: nouveau
Kernel modules: nvidiafb, nouveau
0c:00.1 Audio device: NVIDIA Corporation GP102 HDMI Audio Controller (rev a1)
Subsystem: PNY GP102 HDMI Audio Controller
Flags: bus master, fast devsel, latency 0, IRQ 116, IOMMU group 29
Memory at ef080000 (32-bit, non-prefetchable) [size=16K]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel~~
- Notice the
0c:00.0
in the Nvidia GPU, we will use that to get details of it withlspci -n -s 0c:00
Running the command give the following
root@vm:~# lspci -n -s 0c:00
0c:00.0 0300: 10de:1b06 (rev a1)
0c:00.1 0403: 10de:10ef (rev a1)
- From the out put make note of the
10de:1b06
and10de:10ef
GPU address.
Run nano /etc/modprobe.d/vfio.conf
Paste the following by adjusting the ids with the GPU address accordingly options vfio-pci ids=10de:1b06,10de:10ef disable_vga=1
-
Run
update-initramfs -u
and thenreset
-
Map the drive to the system
Configuration
-
NUMA being disabled or enabled does not matter, and NUMA unlocks some features which I will look into at another time.
-
Balooning was not recommended due to stability issues, I will experiment with it and see the result of it.
-
Confirm without starting the system!
-
Let's check our boot order:
Move the boot iso to the top and click ok
- Make note of the VM id number for this windows, in our case it is 102.
Run the following command so it is [THIS_ID].conf, like so:
nano /etc/pve/qemu-server/102.conf
- Paste the following to the end of the file:
cpu: host,hidden=1,flags=+pcid
args: -cpu 'host,+kvm_pv_unhalt,+kvm_pv_eoi,hv_vendor_id=NV43FIX,kvm=off'
-
Save
-
Add the PCI device
Installing Windows
-
Start the VM and get a visual
-
Select the proper drivers
- Install the defaults On the last versions of W11, you can not continue without network connection. You can bypass it: Shift + F10 keyboard shortcut and write OOBE\BYPASSNRO in the command prompt
95
Reply
Configure Windows
Switch from Microsoft account to local account 3
-
Go to Settings > Accounts
-
Select Your Info
-
Click sign in with a local account instead
-
Remove pin (a restart might berequired first!)
Unlink One drive
-
Search for One Drive in Windows Search
-
It should load in the system tray, click on it there and once the popup comes up click the Setting menu icon.
- Now Unlink this PC
- You can now safely delete the contents of OneDrive folder if still remaining
Adjust windows update 4
-
Go to Settings > Windows Update > Advanced options
-
Make sure Get me up to date is unchecked
-
Set the active hour range Manually
Adjust power plan 4
-
In the search, search for power plan
-
Switch to High performance
- Lets get rid of fast strtup
- Activate admin mode
- Uncheck Turn on fast startup
- Save changes
Change user account control settings 4
- In the search, search for
Change User Account Control settings
and open it
- Set to Never notify and click OK
Adjust Windows Privacy Settings 4
-
Go to Settings > Privacy & Security > General
-
==Go through each Privacy & Security sub-setting and adjust settings to your needs==
Example:
- Set feedback frequency to Never in Diagnotics & feedback
- Switch to Enhanced search in Searching Windwos
Remove Startup Items
- In Task Manager > Startup apps disable all that are not neede
Remove Hidden File Extensions
-
Open File Explorer
-
Click on the 3 buttons ... > Options
-
Go to the View tab
-
Uncheck the following
Hide extensions for known file types and select/toggle Show hidden files, folders, and drives
- Click Apply then OK
Update Network Drivers to Use VirtIO drivers
-
Make sure the VirtIO ISO is mounted to Windows
-
Right click Start and select Device Manager
-
Right click the network adapter and click Update
- Browse to NetKVM folder and choose Win11 for our OS
Enable Windows Auto-login 5
- [Download the Auto-login enabler registry file if you have not done so yet. Unarchive it and execute it. (https://www.howtogeek.com/wp-content/uploads/2022/10/Enable_Automatic_Login_Option.zip)
OR do it manually
-
Open up Run (Win + R)
-
type
netplwiz
and ok -
Uncheck
Users must enter a user name and password to use this computer
-
Make sure the correct account is selected in the Users for this computer section
-
Click Apply
- Enter the account password and click OK
Download updates and restart Windows
Configure the GPU passthrough
-
Shutdown the VM
-
Set the Display to none
- Start VM
Potential problems and solutions
- Try qm unlock [VM ID] if you get error message saying
trying to acquire lock... TASK ERROR: can't lock file '/var/lock/qemu-server/lock-[VM ID].conf' - got timeout
qm unlock YOUR_VM_ID
- During installation if stuck on network configuration, add another Network card with Intel E1000 interface through Proxmox.
Footnotes
-
https://www.youtube.com/watch?v=iq3F5wgn_CI&ab_channel=FootprintTechnologies ↩
-
https://www.youtube.com/watch?v=S6jQx4AJlFw&ab_channel=TechHut ↩
-
https://www.youtube.com/watch?v=anR3DWDOwmI&ab_channel=SandeepSingh ↩
-
https://www.youtube.com/watch?v=j70UOLVO4I4&ab_channel=AskYourComputerGuy ↩ ↩2 ↩3 ↩4
-
https://www.howtogeek.com/838506/how-to-sign-into-your-windows-11-pc-automatically/ ↩