0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-06-29 18:21:10 +00:00
terraform-provider-proxmox/docs/data-sources/virtual_environment_vm2.md
Pavel Boldyrev 3119194292
feat(vm): add RNG device support (#1774)
* 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>
2025-02-16 23:53:40 -05:00

3.0 KiB

layout title parent subcategory description
page proxmox_virtual_environment_vm2 Data Sources Virtual Environment This is an experimental implementation of a Proxmox VM datasource using Plugin Framework.

Data Source: proxmox_virtual_environment_vm2

!> DO NOT USE This is an experimental implementation of a Proxmox VM datasource using Plugin Framework.

Schema

Required

  • id (Number) The unique identifier of the VM in the Proxmox cluster.
  • node_name (String) The name of the node where the VM is provisioned.

Optional

Nested Schema for clone

Required:

  • id (Number) The ID of the VM to clone.

Optional:

  • retries (Number) The number of retries to perform when cloning the VM (default: 3).

Nested Schema for cpu

Optional:

  • affinity (String) List of host cores used to execute guest processes, for example: '0,5,8-11'
  • architecture (String) The CPU architecture.
  • cores (Number) The number of CPU cores per socket.
  • flags (Set of String) Set of additional CPU flags.
  • hotplugged (Number) The number of hotplugged vCPUs.
  • limit (Number) Limit of CPU usage.
  • numa (Boolean) Enable NUMA.
  • sockets (Number) The number of CPU sockets.
  • type (String) Emulated CPU type.
  • units (Number) CPU weight for a VM

Nested Schema for rng

Optional:

  • max_bytes (Number) Maximum bytes of entropy allowed to get injected into the guest every period.
  • period (Number) Period in milliseconds to limit entropy injection to the guest.
  • source (String) The entropy source for the RNG device.

Nested Schema for timeouts

Optional:

  • read (String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.

Nested Schema for vga

Optional:

  • clipboard (String) Enable a specific clipboard.
  • memory (Number) The VGA memory in megabytes (4-512 MB). Has no effect with serial display.
  • type (String) The VGA type.