[SOLVED] AMD Ryzen specific configuration

Hello people,

Looking for a suitable platform to build a small lab i decided to go with proxmox ve 6.2 first. There were notable issue with installation and operation of proxmox on the X370 chipset with a AMD Ryzen CPU (1700X)

Eventually it was found the instability originates form BIOS configuration and boot time parameters.

  • Configuration required to improve AMD Ryzen CPU functionality with Linux, Qemu

modify /etc/default/grub and append the below line to GRUB_CMDLINE_LINUX (between " ")​
iommu=pt amd_iommu=on​
now execute update-grub​
modify /etc/modprobe/{yourfilenamehere}.conf to contain​
options kvm ignore_msrs=1​
  • Configuration required for PCI pass-through (from the proxmox wiki)
modify /etc/modules to contain​
vfio​
vfio_iommu_type1​
vfio_pci​
vfio_virqfd​
  • consider this kernel boot parameters to optionally also add: rcu_nocbs=0-15

    BIOS configuration for CPU features is best set to enabled as a default instead of AUTO or disabled.
boot mode select: legacy+uefi​
ErP ready: enabled​
Core performance boost: disabled​
> CPU Features (here typically set to enabled by me instead of auto, just works, better)​
Global C-state control: disabled​
Power Supply Idle control: Auto​
P-State Adjustment : Pstate 0​
Precision Boost Overdrive: AMD Default​
Mode0: enabled​
now reboot

Stability notes: (based on impressions and experience, results may vary)


observation:
update-grub does no longer appears to have the desired effect of updating, this shows in instability on reboot, required to manually append the parameters on boot.​
evidence:
cat /proc/cmdline does not show the parameters appended in /etc/default/grub​
 
Last edited:
Worth noting. I upgraded this machine recently to 32GB. Running memtest86 showed plenty of ram errors. Next i found how to get rid of them.

Reseat the new DDR4 DIM modules from 2020 on the same channel, the 2017 ones on the other channel. Reset the BIOS to defaults. And propably most importantly, set the XML profile to 2900Mhz instead of 3200Mhz. ZERO ERRORS since. Time to buy an extra fan to point at the memory banks.
 
I note that you don't need any tweaks above for normal proxmox operation.

Having stability issues would cause me to check RAM, as you have and found errors, or set `Power Supply Idle control: Typical idle current` (or similar phrasing in your BIOS).

You don't have to change anything further from defaults in the BIOS to run proxmox successfully (unless some are purely for PCI Passthru - but that isn't Ryzen related)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!