Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Ethorbit/0ace427f6021ed4130144813ec11d884 to your computer and use it in GitHub Desktop.
Save Ethorbit/0ace427f6021ed4130144813ec11d884 to your computer and use it in GitHub Desktop.
The solution for a Linux hypervisor host crashing due to a Ryzen vulnerability with Nested Virtualization

My scenario: I wanted to use Hyper-V's GPU Partitioning and WSL technology inside a Proxmox Virtual machine so that I could continue using Linux natively while taking advantage of Microsoft's groundbreaking virtualization features.

Problem

There is a vulnerability with the Ryzen Processor that allows a nested virtual machine's application to crash the underlying host system and even compromise the host entirely.

Sources:

Solution

Ideally, seeing as this is a vulnerability patched by the kernel, you want to upgrade your kernel, and maybe update your BIOS!

Alternatively, as an insecure workaround, you can add this to your grub boot parameters:

kvm_amd.vls=0 kvm_amd.nested=1 pcie_aspm=off

Those grub boot parameters will at least fix the crashing, but it might not help protect you against the part of the vulnerability that allows guests to compromise the security of the host, upgrading is crucial.

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