Skip to content

Data Source: proxmox_virtual_environment_vm2

Warning

Deprecated: Use proxmox_vm instead. This data source will be removed in v1.0.

Retrieves information about a specific VM.

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

Read-Only

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 cdrom

Read-Only:

  • file_id (String) The file ID of the CD-ROM.

Nested Schema for cpu

Read-Only:

  • 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.
  • limit (Number) Limit of CPU usage.
  • numa (Boolean) Whether NUMA emulation is enabled.
  • sockets (Number) The number of CPU sockets.
  • type (String) Emulated CPU type.
  • units (Number) CPU weight for a VM
  • vcpus (Number) Number of active vCPUs.

Nested Schema for rng

Read-Only:

  • 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 vga

Read-Only:

  • 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.