44 lines
678 B
Terraform
44 lines
678 B
Terraform
|
resource "proxmox_virtual_environment_vm" "Windows11" {
|
||
|
name = "windows"
|
||
|
node_name = "pve2"
|
||
|
vm_id = 250
|
||
|
tags = ["tofu"]
|
||
|
started = false
|
||
|
bios = "ovmf"
|
||
|
machine = "q35"
|
||
|
|
||
|
disk {
|
||
|
datastore_id = "Fast500Gb"
|
||
|
interface = "scsi0"
|
||
|
size = 450
|
||
|
}
|
||
|
|
||
|
cpu {
|
||
|
cores = 2
|
||
|
type = "host"
|
||
|
architecture = "x86_64"
|
||
|
}
|
||
|
|
||
|
memory {
|
||
|
dedicated = 8192
|
||
|
}
|
||
|
|
||
|
efi_disk {
|
||
|
type = "4m"
|
||
|
}
|
||
|
|
||
|
network_device {
|
||
|
bridge = "vmbr0"
|
||
|
vlan_id = 1
|
||
|
}
|
||
|
|
||
|
tpm_state {
|
||
|
datastore_id = "Fast500Gb"
|
||
|
version = "v2.0"
|
||
|
}
|
||
|
|
||
|
operating_system {
|
||
|
type = "win11"
|
||
|
}
|
||
|
}
|