This repository has been archived on 2024-07-30. You can view files and clone it, but cannot push or open issues or pull requests.
IaC-Homelab/test-vm.tf
2024-06-02 22:49:26 -04:00

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"
}
}