Having issues with PCIe passthrough of a SAS controller

Benji99

New Member
Jan 16, 2023
16
5
3
Hi guys, I'm quite new to Proxmox, nice product :)

I'm having some issues that I'm hoping someone could shed some light.
I had a VM running Truenas working where I had successfully passed through my PCIe SAS controller to it.
I had to wipe the VM and re-create it but I'm no longer able to add the PCIe controller. When I add the PCI adapter in the gui of the new VM, I get an error:
only root can set 'hostpci0' config (500)

The old VM is completely gone from GUI of Proxmox
A reboot of the Proxmox host didn't resolve it. I'm guessing the PCIe is still hung up on the previous VM and can't be re-assigned to the new VM but I'm at a loss on how to achieve. I'd like to avoid wiping the attached SATA disks but I'm guessing that's irrelevant.

Any help is greatly appreciated :)
 
When I add the PCI adapter in the gui of the new VM, I get an error:
only root can set 'hostpci0' config (500)
Usually, you login as the root user to the Proxmox GUI (using the name root and the password of the root account) and add the host device.
Alternatively, you can add the host device via the command-line tool qm or edit the VM configuration file (both require you to login as root or to use sudo).
 
Thanks, I was able to add the PCI card by modifing the configuration file via CLI.

I'm pretty sure I was able to initially add it to the previous VM using the account that I set via the installation wizard (which has root privileges since I'm able to elevate in CLI). In fact I never set up a separate root account...