41 lines
740 B
HCL
41 lines
740 B
HCL
resource "proxmox_virtual_environment_vm" "virtual_machine" {
|
|
|
|
# VM General Settings
|
|
node_name = "prox"
|
|
vm_id = 7500
|
|
name = "vtest-vm"
|
|
description = "Open Tofu test"
|
|
|
|
agent {
|
|
# read 'Qemu guest agent' section, change to true only when ready
|
|
enabled = false
|
|
}
|
|
|
|
clone {
|
|
vm_id = 8000
|
|
}
|
|
|
|
# VM CPU Settings
|
|
cpu {
|
|
cores = 2
|
|
type = "host"
|
|
}
|
|
|
|
# VM Memory Settings
|
|
memory {
|
|
dedicated = 2048
|
|
}
|
|
|
|
# VM Network Settings
|
|
network_device {
|
|
bridge = "vmbr0"
|
|
vlan_id = 1
|
|
}
|
|
|
|
# VM Disk Settings
|
|
disk {
|
|
datastore_id = "Fast2Tb"
|
|
size = 20
|
|
interface = "scsi0"
|
|
}
|
|
}
|