Skip to content

Proxmox VE Virtual Machine Management

Optimal Configuration for Virtual Machines

The configuration of virtual machines can vary widely, but we only recommend this specific configuration, as it has demonstrated the best performance and stability in our production environment.

Configuration ItemsTypeAdvantagesDisadvantages
CPUhost/max/defaultThis type can pass through CPU information to the virtual machine.Online migration between different CPUs may encounter issues.
BIOSUEFIUEFI supports Windows 11. If the VM is running Windows 7 or earlier, please do not select it.”Does not support VMs running Windows 7 or earlier.
vga 1Virtio-GPUVirtio-GPU can provide better performance and supports access via SPICE, VNC, RDP, and other protocols.Virtio-GPU does not support Windows 7, and drivers need to be installed on the VM.
vga 2spiceIn a SPICE scenario, it can provide better performance. Supports SPICE, RDP, and VNC.equires the VM to install drivers and needs a SPICE client.
vga 3Nvidia vGPUApplicable in scenarios using Nvidia vGPU. Provides vGPU functionality. Supports SPICE, RDP, and VNCRequires Nvidia vGPU drivers.
SCSI controllerVirtIO SCSI singleprovides better I/O throughputDescription
Disk typeSCSIprovides better I/O throughput and supports hot-swapping.Description
Network Cardvirtioprovides better I/O throughputDescription
EFI diskpre-enroll keys keyProvides secure bootThe operating system within the VM needs to support secure boot.
TPM2.0Provides TPM devices.Snapshots require the storage to be block storage, such as LVM-thin, ZFS, or CEPH.
USBspiceProvides a virtual USB for SPICE usage.
Other configurations (located in the VM options page).
Qemu-gaMust be enabled.Provides communication interfaces between Proxmox VE and virtual machines.QEMU Guest Agent needs to be installed inside the VM.
OSTypeMust be selected correctly.Proxmox VE will optimize the configuration based on the OS type.
SPICE增强Needs to be enabled.Using SPICE enhances performance, such as folder sharing and video streaming.Requires more bandwidth.
KVM hardware virtualization.Must be enabled.Provides KVM hardware acceleration.

1. CPU configuration.

TypeValueDescription
socket1This is the physical number of CPUs; if it is 1, it represents a single socket, and if it is 2, it represents a dual socket. Recommended value is 1.
cors4This is the maximum number of CPUs in the system; for example, if set to 4, it represents 4 cores.
typedefaultDefault provides the best compatibility, refer to guidehttps://foxi.buduanwang.vip/virtualization/599.html/
otherdefaultSome advanced options may have adverse effects if not understood; it is recommended to stick with the defaults.

2. Memory configuration.

TypeValueDescription
Memory8192Unit: MB, total memory size
BallooningoffMemory ballooning allows you to allocate a certain amount of memory initially. If the host runs low on memory, it can reclaim memory from the virtual machine. You can enable it to save memory, but for stability, it is recommended not to enable it.

Note that the ballooning device does not allocate memory based on usage; it initially provides all the allocated memory, and only reclaims it if the host runs low on memory.

3. BIOS

ValueDescription
OVMFModern UEFI BIOS models support Secure Boot.

4. vga

ValueDescription
virtioThis is the optimal option.
spiceSPICE connection requires
mdevWhen using Nvidia vGPU, the web console will display the vGPU output. (This feature is unofficial and available only with PXVIRT. )

5. Machine

TypeDescription
q35Q35 is a modern motherboard model with PCIe support.

6. Scsi Controller

TypeDescription
VirtIO SCSI SingleParavirtualization offers the best performance. Note that in Windows virtual machines, you need to install the disk controller driver. Referencehttps://foxi.buduanwang.vip/virtualization/pve/1214.html/

7. Disk device

TypeValueDescription
Device TypeSCSIUsing SCSI can provide better performance and hot-swapping support. You need to install the disk controller driver.
SSD EmulationenableOnce enabled, the disk is recognized as an SSD by the system and supports TRIM.
TRIMenableEnabling TRIM allows the system to periodically perform low-level disk cleanup to save more disk space.

8. Network Card

TypeDescription
VirtIOParavirtualization offers the best performance. Note that in Windows virtual machines, you need to install the network card driver.

9. EFI Disk

Under the OVMF BIOS, EFI disks can store some BIOS configuration information. If not configured, a warning will be issued.

TypeDescription
pre-enroll keysOnce enabled, Secure Boot will be activated, and some systems that do not support Secure Boot will fail to start. If it is an ARM virtual machine, please do not add it.

10. TPM

TypeDescription
v2.0v2.0 is the new standard for TPM (Trusted Platform Module).

Note! After adding TPM, the virtual machine only supports snapshots when using block storage.

11. Qemu Guest Agent

TypeValueDescription
Qemu Guest AgentenableThis option must be enabled; it is a necessary procedure for communication between Proxmox VE and the virtual machine.

12. OS type

PXVDI will read the value of ostype and perform targeted optimizations.

TypeDescription
ostype < win8.1PXVDI will use RDP encryption to establish the connection
ostype >= win8.1PXVDI will use NLA (AD mode) and TLS encryption to establish the connection.

PXVDI and Virtual Machine System Compatibility

OSWindows10/windows11Windows8.1Windows7WindowsXP
Freerdp(ad mode)SupportSupportSupportSupport
Freerdp(non-ad mode)Need to disable NLA authentication.
SpiceSupportSupportSupportSupport
Horizonhttps://kb.vmware.com/s/article/78714Not supportNot supportNot support

Download materials

  1. Windows ISO can be downloaded from

https://msdn.itellyou.cn

  1. Windows KVM drivers can be downloaded here.

https://download.lierfang.com/proxmox/drivers/

  1. Spice guest tools

https://download.lierfang.com/proxmox/drivers/spice-guest-tools-latest.exe