* feat(lxc): increase number of supported mount points to 256
* fix(container): correct condition for setting replicate value for rootfs
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
* fix(vm): improve error handling when updating `initialization` block
Fix for an edge case where a VM is created without an initialization block, then any subsequent update to the block would cause a panic.
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
* linter
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
---------
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
Allow to set disk speed and set / update other attributes of existing disks when cloning a VM
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
* fix(vm): fix vm machine type validation in order to support viommu
Signed-off-by: Mikael Nakajima <nakamorichi@protonmail.com>
* docs(vm): update machine type documentation with VIOMMU details
Enhance VM machine type documentation to clarify VIOMMU configuration option for q35 machine type
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
---------
Signed-off-by: Mikael Nakajima <nakamorichi@protonmail.com>
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
* feat(vm): add optional reboot after update configuration
- Add `reboot_after_update` parameter to VM resource
- Update documentation to reflect new configuration option
- Implement logic to control VM reboot after configuration changes
- Provide warning if reboot is required but disabled by configuration
---------
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
* feat(vm): add RNG device support
This commit adds support for configuring the Random Number Generator (RNG) device for virtual machines in both the VM resource and datasource. The implementation includes:
- New schema and model for RNG configuration
- Support for setting RNG source, max_bytes, and period
- Updated documentation for RNG configuration
- Test cases for RNG configuration
- Integration with VM creation, update, and read operations
---------
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
* fix(provider): fix for datastore does not support content type "dump"
Signed-off-by: cgeopapa <cgeocodgod@gmail.com>
* fix: move ContentType override further in the flow
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
* fix: update docs
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
---------
Signed-off-by: cgeopapa <cgeocodgod@gmail.com>
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
* fix(vm): fix `vga` block defaults handling during create / clone
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
* fix: formatting
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
* fix: acc test failure due to skip
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
---------
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
- Added error handling for HTTP error code 595 in vmsRead, providing a warning if a node is not available, which may result in an incomplete VM list.
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
* chore(deps): update module github.com/golangci/golangci-lint (v1.62.2 → v1.63.4) in /tools
| datasource | package | from | to |
| ---------- | --------------------------------- | ------- | ------- |
| go | github.com/golangci/golangci-lint | v1.62.2 | v1.63.4 |
* chore(deps): remove golang.org/x/exp dependency and update imports to use slices package
- Removed the golang.org/x/exp dependency from go.mod and go.sum.
- Updated imports in proxmox/api/client.go, proxmoxtf/datasource/vms.go, and proxmoxtf/resource/file.go to use the slices package instead of golang.org/x/exp/slices.
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
---------
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
* chore(tests): add option to select auth type (root user / token) for tests
* fix(vm): throw an error when `cpu.architecture` can't be set
---------
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
* fix(vm): add validation for `node_name` values
Also, fix acceptance tests that now fail on PVE 8.3
---------
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
Regression after #1580, the provider incorrectly detects that disk has been resized when other disk attributes change.
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
Fix for another use case of mismanaged default value. This one was a bit trickier to spot as it triggered only when provider is authenticated using root@pam, as architecture change is allowed only for root.
Removing default value altogether, as the PVE API default for this attribute is an empty string.
VM2 resource will have no such issue, related: #1310, #1311
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>