-
Notifications
You must be signed in to change notification settings - Fork 550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PCI device using raw_id throws error #1186
Comments
@Cirx08 only user |
I should update this in the documentation. |
Does this include root API tokens? I am using root@pam!terraform |
What is your token |
Can you set via Proxmox GUI |
Yes, my workaround for rc-4 was to set up VMs without PCI and manually attach via the web gui. |
So, seems you cannot do it with root token: |
Is it still the case that only root password auth can set raw PCI devices? I have a unique use case where i am using terrform to spin up talos linux VM's. I manage proxmox from a repo using a self hosted action runner. I would ideally like to avoid using root creds in the repo for obvious reasons. The plan was to then integrate corssplane into my setup at somepoint so it can add nodes to the cluster using terraform if needed, but again if this capability relies on allowing root user auth I think I am going to pass on this for now. Unless someone knows of a way to do this without root level authentication? |
@jlengelbrecht the only alternative would be to use mapped pci devices. RC6 has support for them. You would have to create the mappings on each node first as root before you can reference them in Terraform. |
Thank you i will take a look at doing this. I have never created a mapping like this so ill poke around for some documentation on how to do this. Hopefully this gets me unstuck. Thank you |
got this working. In case anyone else is looking for a way to do GPU passthrough per VM. Here is a code snippet for a dynamic block I created that I used in my main.tf
|
Error: error updating VM: 500 only root can set 'hostpci0' config for non-mapped devices
pci {
id = 0
raw_id = "0000:01:00.0"
primary_gpu = false
rombar = true
}
I have tried multiple Ids and using the pcis block throws the same error. Using mapping_id works but raw_id does not.
The text was updated successfully, but these errors were encountered: