iac/terraform/proxmox/ubuntu-noble-base2.tf
Matt Reeves 33984b88a9
All checks were successful
OpenTofu Automation / deploy (push) Successful in 12s
init move to tf modules
2024-11-03 01:38:02 -04:00

45 lines
875 B
HCL

resource "proxmox_virtual_environment_vm" "Ubuntu-Noble-Base2" {
name = "ubuntu-noble-base"
node_name = "prox"
vm_id = 8103
tags = ["tofu", "ubuntu24"]
template = true
started = false
disk {
datastore_id = "Fast2Tb"
# See https://www.reddit.com/r/Proxmox/comments/1058ko7/comment/j3s4vli/ for how to inject qemu into base image
# virt-customize -a noble-server-cloudimg-amd64.img --install qemu-guest-agent
file_id = "local:iso/noble-server-cloudimg-amd64.img"
interface = "scsi0"
size = 5
}
agent {
enabled = true
}
initialization {
ip_config {
ipv4 {
address = "dhcp"
}
}
}
serial_device {}
network_device {
bridge = "vmbr0"
}
vga {
type = "serial0"
}
cpu {
cores = 2
type = "host"
architecture = "x86_64"
}
}