Lost host networking outbound when trying to set up Terraform svc account.

akulbe

Member
Jan 1, 2023
55
4
13
Portland, OR
I'm new to Proxmox. This is my first setup. I was attempting to set up a Terraform service account/role to do automation with.

Code:
pveum role add TerraformProv -privs "Datastore.AllocateSpace Datastore.Audit Pool.Allocate Sys.Audit VM.Allocate VM.Audit VM.Clone VM.Config.CDROM VM.Config.CPU VM.Config.Cloudinit VM.Config.Disk VM.Config.HWType VM.Config.Memory VM.Config.Network VM.Config.Options VM.Monitor VM.PowerMgmt"
pveum user add terraform-prov@pve --password <mypass>
pveum aclmod / -user terraform-prov@pve -role TerraformProv

These were the commands that I ran. The results are a mystery to me…

Since doing that, I can still SSH to the host, but it has no Internet access to be able to grab updates from the Internet. Oh yeah… all the VMs still have network access to/from.

I have two questions:

  1. Is it possible to set up a service account for Terraform to use for IaC?
  2. How do I fix this situation, so that the host has access as well as the guests?

Thank you, in advance!!
 
Last edited:
Hello! Yes, adding an account with these privileges should be possible -- whether they are sufficient to work with a terraform provider, I don't know. From the looks of it, it seems unlikely that the user creation commands caused the networking issues. To troubleshoot those, could you post your /etc/network/interfaces? What does ip route say? Have you created any firewall rules?