[SOLVED] Need to edit 100.conf outside of box

kino0924

Member
Dec 16, 2018
6
0
6
37
Hi,

I was trying to passthrough iGPU to one of VM but it caused entire system to crash.

The only problem is that I forgot that my VM has onboot: 1 which means everytime I start system, faulty VM gets started automatically and crashes system.
I see split second of pve login screen with ip but system freeze fast due to auto start VM

Things I tried:
1. Tried to remove iommu variables from grub
No matter what I remove (amd_iommu or any others, I still cant get system to run)
2. Boot into recovery mode and Edit "/var/lib/pve-cluster/config.db" with sqlite3
"Delete from tree where name="100.conf"
Unable to boot
3. Copied config.db db-shm db-wal into another proxmox system and modify
service pve-cluster stop
copy those 3 files
service pve-cluster start
edit "/etc/pve/nodes/zzz/qemu-server/100.conf"
service pve-cluster stop
copy config.db back to old pve
chmod 0600 config.db
start system
I see "nuke: can't remove '/dev': Directory not empty

Now I am out of option and I cant find anything wrong with my steps.

Any suggestion to restore pve?


Thanks.
 
amd_iommu defaults to on (therefore amd_iommu=on is unnecessary) and I expect that using amd_iommu=off will prevent passthrough from working but will allow you to start Proxmox. Press the e-key during the boot menu to temporarily change the kernel parameters. Alternatively, you can set IOMMU to Disabled in the BIOS to get the system to boot but not start VMs with passthrough, I assume.
 
  • Like
Reactions: kino0924 and Neobin
Thank you so much, i didnt know amd_iommu=on is default.
amd_iommu=off allowed me to not to crash the system and I was able to revert VM config
 
amd_iommu=on is actually not even valid but everybody keeps copying it from other people and because invalid parameters are ignored nobody ever notice it.

A good start would be, that the "old" wiki article [1] gets changed in this regard.
Or maybe even better; merge both [2] together.

But I have no clue what the correct way is to request a change in the wiki. Bugzilla?

[1] https://pve.proxmox.com/wiki/Pci_passthrough#AMD_CPU
[2] https://pve.proxmox.com/wiki/PCI(e)_Passthrough