Skip to content

Commit d1b140c

Browse files
authored
Merge branch 'main' into feat/support-cluster-storage
2 parents ce96dda + 926ea8d commit d1b140c

File tree

28 files changed

+1100
-61
lines changed

28 files changed

+1100
-61
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.25.0@sha256:9e56f0d0f043a68bb8c47c819e47dc29f6e8f5129b8885bed9d43f058f7f3ed6
1+
FROM golang:1.25.0@sha256:91e2cd436f7adbfad0a0cbb7bf8502fa863ed8461414ceebe36c6304731e0fd9
22

33
ARG GOLANGCI_LINT_VERSION=2.4.0 # renovate: depName=golangci/golangci-lint datasource=github-releases
44

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.81.0"
2+
".": "0.82.1"
33
}

CHANGELOG.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,54 @@
11
# Changelog
22

3+
## [0.82.1](https://github.com/bpg/terraform-provider-proxmox/compare/v0.82.0...v0.82.1) (2025-08-19)
4+
5+
6+
### Bug Fixes
7+
8+
* **vm:** prevent re-creation of previously imported disks on update ([#2122](https://github.com/bpg/terraform-provider-proxmox/issues/2122)) ([c6c1c18](https://github.com/bpg/terraform-provider-proxmox/commit/c6c1c18a2b7a2ad80006bf5e22afec7dbf98071b))
9+
10+
11+
### Miscellaneous
12+
13+
* **deps:** update image golang (9e56f0d → 91e2cd4) ([#2123](https://github.com/bpg/terraform-provider-proxmox/issues/2123)) ([9d179dd](https://github.com/bpg/terraform-provider-proxmox/commit/9d179dde724604d3b2f297fd805c7c2cb8f723b4))
14+
* **docs:** fix TOC format, cleanup cloud image guide ([#2121](https://github.com/bpg/terraform-provider-proxmox/issues/2121)) ([b321a01](https://github.com/bpg/terraform-provider-proxmox/commit/b321a01b4f142d55afef53eca20c1b183386bc84))
15+
16+
## [0.82.0](https://github.com/bpg/terraform-provider-proxmox/compare/v0.81.0...v0.82.0) (2025-08-18)
17+
18+
19+
### Features
20+
21+
* **docs:** update compatibility notes for PVE 9.x ([#2116](https://github.com/bpg/terraform-provider-proxmox/issues/2116)) ([08ea66a](https://github.com/bpg/terraform-provider-proxmox/commit/08ea66a4e0e1c92851c5811bacde075d169fb1cc))
22+
* **lxc:** add `proxmox_virtual_environment_containers` data source ([#2090](https://github.com/bpg/terraform-provider-proxmox/issues/2090)) ([45f2805](https://github.com/bpg/terraform-provider-proxmox/commit/45f28051cd18bbb5838ef0de5eedc41a97ecee3b))
23+
* **lxc:** Add missing configuration options for container rootfs ([#2067](https://github.com/bpg/terraform-provider-proxmox/issues/2067)) ([b2c5012](https://github.com/bpg/terraform-provider-proxmox/commit/b2c50120ea552d078e9634228f8b90b356a163b9))
24+
25+
26+
### Bug Fixes
27+
28+
* **lxc:** adjust max number of container's IP configs ([#2088](https://github.com/bpg/terraform-provider-proxmox/issues/2088)) ([602568e](https://github.com/bpg/terraform-provider-proxmox/commit/602568e6a64945514b7e3a3294ec8fb1f98b6be8))
29+
* **provider:** parsing PVE version reported by API ([#2115](https://github.com/bpg/terraform-provider-proxmox/issues/2115)) ([f1501e2](https://github.com/bpg/terraform-provider-proxmox/commit/f1501e2655f4d9a246be8fe826a3d385448dce17))
30+
* **vm:** regression: disk re-ordering on re-apply ([#2114](https://github.com/bpg/terraform-provider-proxmox/issues/2114)) ([634ad69](https://github.com/bpg/terraform-provider-proxmox/commit/634ad690fefa719df7be1c7f8962cd4a5bead79a))
31+
32+
33+
### Miscellaneous
34+
35+
* **ci:** Update actions/checkout action ([#2098](https://github.com/bpg/terraform-provider-proxmox/issues/2098)) ([3855cb2](https://github.com/bpg/terraform-provider-proxmox/commit/3855cb293fd32486eb39aee056c3c526d4f15ba8))
36+
* **ci:** update actions/create-github-app-token action (v2.0.6 → v2.1.0) ([#2095](https://github.com/bpg/terraform-provider-proxmox/issues/2095)) ([6161969](https://github.com/bpg/terraform-provider-proxmox/commit/61619690cce176948e4795a98075c0854a42669b))
37+
* **ci:** update actions/create-github-app-token action (v2.1.0 → v2.1.1) ([#2099](https://github.com/bpg/terraform-provider-proxmox/issues/2099)) ([7f5d771](https://github.com/bpg/terraform-provider-proxmox/commit/7f5d77143a2c3a607ee3f647ad2d9054b9e0d00d))
38+
* **ci:** update goreleaser/goreleaser-action action (v6.3.0 → v6.4.0) ([#2111](https://github.com/bpg/terraform-provider-proxmox/issues/2111)) ([78ce7f0](https://github.com/bpg/terraform-provider-proxmox/commit/78ce7f0db4595ecf00c0420b3d46fe78cda1d204))
39+
* **ci:** update jetbrains/qodana-action action (v2025.1.1 → v2025.2.1) ([#2106](https://github.com/bpg/terraform-provider-proxmox/issues/2106)) ([0dec643](https://github.com/bpg/terraform-provider-proxmox/commit/0dec643b3dc670c48f3f79752cb93519e3515a36))
40+
* **ci:** update lycheeverse/lychee-action action (v2.4.1 → v2.5.0) ([#2096](https://github.com/bpg/terraform-provider-proxmox/issues/2096)) ([7c98464](https://github.com/bpg/terraform-provider-proxmox/commit/7c98464783a70e1ca801765eb5c16fed4ce0f329))
41+
* **deps:** update golangci/golangci-lint (v2.3.0 → v2.3.1) ([#2074](https://github.com/bpg/terraform-provider-proxmox/issues/2074)) ([9947a86](https://github.com/bpg/terraform-provider-proxmox/commit/9947a86106c7215f68183956cf0f2cde209a73fa))
42+
* **deps:** update golangci/golangci-lint (v2.3.1 → v2.4.0) ([#2110](https://github.com/bpg/terraform-provider-proxmox/issues/2110)) ([21bed82](https://github.com/bpg/terraform-provider-proxmox/commit/21bed824e4cc4fd53cc927273798e5c6b757f89d))
43+
* **deps:** update image golang (1.24.5 → 1.24.6) ([#2085](https://github.com/bpg/terraform-provider-proxmox/issues/2085)) ([ac91fe8](https://github.com/bpg/terraform-provider-proxmox/commit/ac91fe8de01fd61ca1015350801ffdb5451d7aa7))
44+
* **deps:** update image golang (1.24.6 → 1.25.0) ([#2107](https://github.com/bpg/terraform-provider-proxmox/issues/2107)) ([9e10206](https://github.com/bpg/terraform-provider-proxmox/commit/9e10206e19b9f3cdf5989bef6956a4a1242a7235))
45+
* **deps:** update image golang (10a15b9 → 9e56f0d) ([#2109](https://github.com/bpg/terraform-provider-proxmox/issues/2109)) ([420add8](https://github.com/bpg/terraform-provider-proxmox/commit/420add86698425afba60ac06b3481b1057da5aee))
46+
* **deps:** update module github.com/hashicorp/terraform-plugin-testing (v1.13.2 → v1.13.3) ([#2113](https://github.com/bpg/terraform-provider-proxmox/issues/2113)) ([1863847](https://github.com/bpg/terraform-provider-proxmox/commit/1863847b5764c5da9ed70d3bd9a3ce087ab185b4))
47+
* **deps:** update module golang.org/x/crypto (v0.40.0 → v0.41.0) ([#2086](https://github.com/bpg/terraform-provider-proxmox/issues/2086)) ([5018b31](https://github.com/bpg/terraform-provider-proxmox/commit/5018b31d2aa72c66771242c0d5463f10ad20f7d0))
48+
* **deps:** update module golang.org/x/net (v0.42.0 → v0.43.0) ([#2087](https://github.com/bpg/terraform-provider-proxmox/issues/2087)) ([5151dcc](https://github.com/bpg/terraform-provider-proxmox/commit/5151dcc7b7832a95312efe5773401e3443d26a1a))
49+
* **docs:** cleanup and update `clone-vm` example ([#2094](https://github.com/bpg/terraform-provider-proxmox/issues/2094)) ([c7cd61a](https://github.com/bpg/terraform-provider-proxmox/commit/c7cd61a2d3aea273df40e86532fa575c0dd95b98))
50+
* **docs:** remove spurious sdn datasource .tf examples ([#2092](https://github.com/bpg/terraform-provider-proxmox/issues/2092)) ([91e0fbf](https://github.com/bpg/terraform-provider-proxmox/commit/91e0fbf676a93dca8659ca55460ba2318b09620e))
51+
352
## [0.81.0](https://github.com/bpg/terraform-provider-proxmox/compare/v0.80.0...v0.81.0) (2025-08-01)
453

554

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
NAME=terraform-provider-proxmox
22
TARGETS=darwin linux windows
33
TERRAFORM_PLUGIN_EXTENSION=
4-
VERSION=0.81.0# x-release-please-version
4+
VERSION=0.82.1# x-release-please-version
55

66
GOLANGCI_LINT_VERSION=2.4.0# renovate: depName=golangci/golangci-lint datasource=github-releases
77

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ The project is not affiliated with [Proxmox Server Solutions GmbH](https://www.p
1919

2020
## Compatibility Promise
2121

22-
This provider is compatible with Proxmox VE 8.x (currently **8.4**).
22+
This provider is compatible with Proxmox VE 9.x (currently **9.0**). See [Known Issues](#known-issues) below for compatibility details.
2323

2424
> [!IMPORTANT]
25+
> Proxmox VE 8.x is supported, but some functionality might be limited or not work as expected. Testing against 8.x is not a priority, and issues specific to 8.x will not be addressed.
2526
> Proxmox VE 7.x is NOT supported. While some features might work with 7.x, we do not test against it, and issues specific to 7.x will not be addressed.
2627
2728
While the provider is on version 0.x, it is not guaranteed to be backward compatible with all previous minor versions.
@@ -31,7 +32,7 @@ However, we will try to maintain backward compatibility between provider version
3132

3233
### Production Requirements
3334

34-
- [Proxmox Virtual Environment](https://www.proxmox.com/en/proxmox-virtual-environment/) 8.x
35+
- [Proxmox Virtual Environment](https://www.proxmox.com/en/proxmox-virtual-environment/) 9.x
3536
- TLS 1.3 for the Proxmox API endpoint (legacy TLS 1.2 is optionally supported)
3637
- [Terraform](https://www.terraform.io/downloads.html) 1.5+ or [OpenTofu](https://opentofu.org) 1.6+
3738

@@ -77,7 +78,7 @@ The following assumptions are made about the test environment:
7778
Create `example/terraform.tfvars` with the following variables:
7879

7980
```sh
80-
virtual_environment_endpoint = "https://pve.example.doc:8006/"
81+
virtual_environment_endpoint = "https://pve.example.com:8006/"
8182
virtual_environment_ssh_username = "terraform"
8283
virtual_environment_api_token = "root@pam!terraform=00000000-0000-0000-0000-000000000000"
8384
```
@@ -93,6 +94,12 @@ Work has started to migrate the provider to the new [Terraform Plugin Framework]
9394

9495
## Known Issues
9596

97+
### Proxmox VE 9.0
98+
99+
Proxmox VE 9.0 has a new API for managing HA resources, which is not yet supported by the provider, see [#2097](https://github.com/bpg/terraform-provider-proxmox/issues/2097) for more details.
100+
101+
`apt_*` resources / datasources do not support the new deb822 style format.
102+
96103
### HA VMs / containers
97104

98105
If a VM or container resource is created with the provider but managed by an HA cluster, it might be migrated to a different node without the provider being aware of the change.
@@ -110,7 +117,7 @@ Add the following block to your VM config:
110117
}
111118
```
112119

113-
For more context, see #1639 and #1770.
120+
For more context, see issues #1639 and #1770.
114121

115122
### Disk Images from VMware Cannot Be Uploaded or Imported
116123

@@ -175,6 +182,7 @@ See [CONTRIBUTORS.md](CONTRIBUTORS.md) for a list of contributors to this projec
175182
- [Brian King](https://github.com/inflatador)
176183
- [Radosław Szamszur](https://github.com/rszamszur)
177184
- [Marshall Ford](https://github.com/marshallford)
185+
- [Simon Caron](https://github.com/simoncaron)
178186

179187
Thanks again for your continuous support, it is much appreciated! 🙏
180188

docs/guides/cloud-image.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ description: |-
1010

1111
## Download a public cloud image from URL
1212

13-
Proxmox does not natively support QCOW2 images, but provider can do the conversion for you.
14-
1513
Example of how to create a CentOS 8 VM from a "generic cloud" `qcow2` image. CentOS 8 images are available at [cloud.centos.org](https://cloud.centos.org/centos/8-stream/x86_64/images/):
1614

1715
```terraform
@@ -86,8 +84,6 @@ resource "proxmox_virtual_environment_download_file" "ubuntu_cloud_image" {
8684
}
8785
```
8886

89-
For [large images](https://registry.terraform.io/providers/bpg/proxmox/latest/docs/resources/virtual_environment_file#important-notes), you may want to use a dedicated temporary directory [configured](https://registry.terraform.io/providers/bpg/proxmox/latest/docs#tmp_dir) for provider via `tmp_dir` attribute, instead of system's default temporary directory. This is especially useful if you are deploying from a container with limited disk space.
90-
9187
## Create a VM from an existing image on Proxmox
9288

9389
If you already have a cloud image on Proxmox, you can use it to create a VM:

docs/index.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ Use the navigation to the left to read about the available resources.
1515
- [Environment Variables Summary](#environment-variables-summary)
1616
- [Example Usage](#example-usage)
1717
- [Authentication](#authentication)
18-
- [Authentication Methods Comparison](#authentication-methods-comparison)
19-
- [Static Credentials Examples](#static-credentials-examples)
20-
- [Security Best Practices](#security-best-practices)
21-
- [Environment variables](#environment-variables)
22-
- [API Token Authentication](#api-token-authentication)
23-
- [Pre-Authentication, or Passing an Authentication Ticket into the provider](#pre-authentication-or-passing-an-authentication-ticket-into-the-provider)
18+
- [Authentication Methods Comparison](#authentication-methods-comparison)
19+
- [Static Credentials Examples](#static-credentials-examples)
20+
- [Security Best Practices](#security-best-practices)
21+
- [Environment variables](#environment-variables)
22+
- [API Token Authentication](#api-token-authentication)
23+
- [Pre-Authentication, or Passing an Authentication Ticket into the provider](#pre-authentication-or-passing-an-authentication-ticket-into-the-provider)
2424
- [SSH Connection](#ssh-connection)
25-
- [SSH Agent](#ssh-agent)
26-
- [SSH Private Key](#ssh-private-key)
27-
- [SSH User](#ssh-user)
28-
- [Node IP address used for SSH connection](#node-ip-address-used-for-ssh-connection)
29-
- [SSH Connection via SOCKS5 Proxy](#ssh-connection-via-socks5-proxy)
25+
- [SSH Agent](#ssh-agent)
26+
- [SSH Private Key](#ssh-private-key)
27+
- [SSH User](#ssh-user)
28+
- [Node IP address used for SSH connection](#node-ip-address-used-for-ssh-connection)
29+
- [SSH Connection via SOCKS5 Proxy](#ssh-connection-via-socks5-proxy)
3030
- [VM and Container ID Assignment](#vm-and-container-id-assignment)
3131
- [Temporary Directory](#temporary-directory)
3232
- [Argument Reference](#argument-reference)
@@ -205,10 +205,10 @@ You can create an API Token for a user via the Proxmox UI, or via the command li
205205
- Create a role for the user (you can skip this step if you want to use any of the existing roles):
206206

207207
```sh
208-
sudo pveum role add Terraform -privs "Mapping.Audit Mapping.Modify Mapping.Use Permissions.Modify Pool.Allocate Pool.Audit Realm.AllocateUser Realm.Allocate SDN.Allocate SDN.Audit Sys.Audit Sys.Console Sys.Incoming Sys.Modify Sys.AccessNetwork Sys.PowerMgmt Sys.Syslog User.Modify Group.Allocate SDN.Use VM.Allocate VM.Audit VM.Backup 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.Console VM.Migrate VM.Monitor VM.PowerMgmt VM.Snapshot.Rollback VM.Snapshot Datastore.Allocate Datastore.AllocateSpace Datastore.AllocateTemplate Datastore.Audit"
208+
sudo pveum role add Terraform -privs "Realm.AllocateUser, VM.PowerMgmt, VM.GuestAgent.Unrestricted, Sys.Console, Sys.Audit, Sys.AccessNetwork, VM.Config.Cloudinit, VM.Replicate, Pool.Allocate, SDN.Audit, Realm.Allocate, SDN.Use, Mapping.Modify, VM.Config.Memory, VM.GuestAgent.FileSystemMgmt, VM.Allocate, SDN.Allocate, VM.Console, VM.Clone, VM.Backup, Datastore.AllocateTemplate, VM.Snapshot, VM.Config.Network, Sys.Incoming, Sys.Modify, VM.Snapshot.Rollback, VM.Config.Disk, Datastore.Allocate, VM.Config.CPU, VM.Config.CDROM, Group.Allocate, Datastore.Audit, VM.Migrate, VM.GuestAgent.FileWrite, Mapping.Use, Datastore.AllocateSpace, Sys.Syslog, VM.Config.Options, Pool.Audit, User.Modify, VM.Config.HWType, VM.Audit, Sys.PowerMgmt, VM.GuestAgent.Audit, Mapping.Audit, VM.GuestAgent.FileRead, Permissions.Modify"
209209
```
210210

211-
~> The list of privileges above is only an example, please review it and adjust to your needs.
211+
~> The list of available privileges has been changed in PVE 9.0, and the above list is only an example (and most likely too excessive for most use cases), please review it and adjust to your needs.
212212
Refer to the [privileges documentation](https://pve.proxmox.com/pve-docs/pveum.1.html#_privileges) for more details.
213213

214214
- Assign the role to the previously created user:

docs/resources/virtual_environment_acl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ resource "proxmox_virtual_environment_role" "operations_monitoring" {
2929
role_id = "operations-monitoring"
3030
3131
privileges = [
32-
"VM.Monitor",
32+
"VM.GuestAgent.Audit",
3333
]
3434
}
3535

docs/resources/virtual_environment_role.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ resource "proxmox_virtual_environment_role" "operations_monitoring" {
1616
role_id = "operations-monitoring"
1717
1818
privileges = [
19-
"VM.Monitor",
19+
"VM.GuestAgent.Audit",
2020
]
2121
}
2222
```

docs/resources/virtual_environment_user.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ resource "proxmox_virtual_environment_role" "operations_monitoring" {
2828
role_id = "operations-monitoring"
2929
3030
privileges = [
31-
"VM.Monitor",
31+
"VM.GuestAgent.Audit",
3232
]
3333
}
3434
```

0 commit comments

Comments
 (0)