bashtheshell / iommu-nested-pve Goto Github PK
View Code? Open in Web Editor NEWHow to configure IOMMU device for nested Proxmox hypervisor (PVE) VM - PCIe Passthrough
License: MIT License
How to configure IOMMU device for nested Proxmox hypervisor (PVE) VM - PCIe Passthrough
License: MIT License
I opened a ticket with Proxmox about directly adding this functionality: https://bugzilla.proxmox.com/show_bug.cgi?id=3784
root@♦pve:~# python3 add_vIOMMU.py 900000001
waiting until VM 900000001 stopps (PID 1965142)
kvm: -chardev socket,id=tpmchar,path=/var/run/qemu-server/900000001.swtpm: Failed to connect to '/var/run/qemu-server/900000001.swtpm': No such file or directory
The script doesn't work for my since proxmox seems to delete the vmid.swtpm file on shutdown of the guest. As a result the script works until the vm stops and then fails as the file is missing. Am I making a mistake or has the script been broken with an update from PVE?
I followed the guide on my Intel 11900K build and nested pve works perfectly passing through my GPU.
However, I also tried on my X570 3950x AMD build but the GPU is not exposed to the L1 PVE.
Output from L0 PVE
dmesg | grep -e DMAR -e IOMMU -e AMD-Vi
[ 0.417329] AMD-Vi: Using global IVHD EFR:0x0, EFR2:0x0
[ 1.001980] pci 0000:00:00.2: AMD-Vi: IOMMU performance counters supported
[ 1.003440] AMD-Vi: Extended features (0x58f77ef22294a5a, 0x0): PPR NX GT IA PC GA_vAPIC
[ 1.003446] AMD-Vi: Interrupt remapping enabled
[ 1.005649] perf/amd_iommu: Detected AMD IOMMU #0 (2 banks, 4 counters/bank).
IOMMU dofo enabled on L0.
Do I need to change any qemu args to make this work on AMD?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.