meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
vm:proxmox:kvm:windows [2020/05/12 10:02] niziakvm:proxmox:kvm:windows [2025/01/09 08:35] (current) niziak
Line 4: Line 4:
     * [[https://pve.proxmox.com/wiki/Windows_VirtIO_Drivers|Windows VirtIO Drivers]]     * [[https://pve.proxmox.com/wiki/Windows_VirtIO_Drivers|Windows VirtIO Drivers]]
     * [[https://pve.proxmox.com/wiki/Migration_of_servers_to_Proxmox_VE|Migration of servers to Proxmox VE]]     * [[https://pve.proxmox.com/wiki/Migration_of_servers_to_Proxmox_VE|Migration of servers to Proxmox VE]]
 +
 +NOTE: ''QEMU guest agent'' requires  also ''virtio-serial''
 +
 +===== Win7 =====
 +    * WIN7: do not enable KVM storage cache. Writeback cache slows down everything.
 +
  
 ====== Tuning Guest ====== ====== Tuning Guest ======
   * [[https://pve.proxmox.com/wiki/Performance_Tweaks|Performance Tweaks]]   * [[https://pve.proxmox.com/wiki/Performance_Tweaks|Performance Tweaks]]
-  * Expose native CPU to GuestChange Processor type to **host*+  * Use ''kvm64'' CPU: [[https://www.reddit.com/r/Proxmox/comments/18w5k8c/windows_vm_insanely_slow/|Windows VM insanely slow]] 
-  * +  [[vm:proxmox:kvm:windows:mitigations]]) 
 +  Do not enable any caching on storage devices, it slows down everything! 
 +  If HDD is used, create ZFS SLOG and L2ARC cache on SSD/NVM 
 +  * <code shell>sfc /scannow</code> 
 + 
 +===== Disable Core isolation ===== 
 + 
 +''Windows Security'' (PL''Zabezpieczenia Windows'') -> ''Device Security'' (''Zabezpieczenia urządzenia'') -> ''Core Isolation details'' (PL: ''Szczegóły usługi Izolacja rdzenia''
 + 
 +<code powershell> 
 +reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v "Enabled" /t REG_DWORD /d 0 /f 
 +</code> 
  
 ===== Windows 10 ===== ===== Windows 10 =====
Line 14: Line 32:
   * Disable suspending: "Control Panel" --> "Power Options" --> "Show additional plans" --> "High performance"   * Disable suspending: "Control Panel" --> "Power Options" --> "Show additional plans" --> "High performance"
   * Disable hibernation: ''powercfg.exe /hibernate off''   * Disable hibernation: ''powercfg.exe /hibernate off''
 +  * launch "regedit.exe" and:
 +      * set value of ''HKLM\Software\Microsoft\Windows NT\CurrentVersion\winlogon'' and change "ShutdownWithoutLogon" to 1
 +      * go to ''HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\7516b95f-f776-4464-8c53-06167f40cc99\8EC4B3A5-6868-48c2-BE75-4F3044BE88A7'' and set "Attributes" value to 2
 +  * then go to "Control Panel" --> "System and Security" --> "Power Options" and then --> "Change plan settings" on choosed power plan --> "Change Advanced Power Settings" --> "Display" and set 'Console lock display off timeout' to 0 to disable it
 +