Skip to content

Instantly share code, notes, and snippets.

@Alex4386
Created December 20, 2023 08:10
Show Gist options
  • Save Alex4386/e7a41d86e53ee27eabe8c2ca74625247 to your computer and use it in GitHub Desktop.
Save Alex4386/e7a41d86e53ee27eabe8c2ca74625247 to your computer and use it in GitHub Desktop.
Add `noxsaves` dialect for Proxmox on deploying on `xsaves`-less Linux kernel versions on EPYC Rome-based processors
#!/bin/bash
# https://forum.proxmox.com/threads/cant-use-epyc-rome-cpu-after-update.125336/
TARGET="/etc/pve/virtual-guest/cpu-models.conf"
cat >> $TARGET <<- EOF
cpu-model: EPYC-Rome-noxsaves
flags -xsaves
phys-bits host
hidden 0
hv-vendor-id proxmox
reported-model EPYC-Rome
cpu-model: EPYC-Rome-v2-noxsaves
flags -xsaves
phys-bits host
hidden 0
hv-vendor-id proxmox
reported-model EPYC-Rome-v2
EOF
@Alex4386
Copy link
Author

curl -L https://gist.githubusercontent.com/Alex4386/e7a41d86e53ee27eabe8c2ca74625247/raw/add-noxsaves.sh | bash

@Alex4386
Copy link
Author

If you are using PVE API, use custom-EPYC-Rome-noxsaves or custom-EPYC-Rome-v2-noxsaves to refer this custom cpu-model.

@Alex4386
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment