GithubHelp home page GithubHelp logo

bashtheshell / iommu-nested-pve Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 1.0 58 KB

How to configure IOMMU device for nested Proxmox hypervisor (PVE) VM - PCIe Passthrough

License: MIT License

Python 100.00%

iommu-nested-pve's People

Contributors

bashtheshell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

ecoprintec

iommu-nested-pve's Issues

<vmid>.swtpm deleted on shutdown

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?

Working on Intel but not AMD

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.