2024-11-02 01:50:25 -04:00
|
|
|
resource "proxmox_virtual_environment_vm" "Ubuntu-Noble-Base" {
|
|
|
|
name = "ubuntu-noble-base"
|
2024-07-12 23:57:29 -04:00
|
|
|
node_name = "pve2"
|
2024-11-02 01:50:25 -04:00
|
|
|
vm_id = 8102
|
|
|
|
tags = ["tofu", "ubuntu24"]
|
2024-07-12 23:57:29 -04:00
|
|
|
template = true
|
|
|
|
started = false
|
|
|
|
|
|
|
|
disk {
|
|
|
|
datastore_id = "local-lvm"
|
2024-11-02 01:50:25 -04:00
|
|
|
# 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"
|
2024-07-12 23:57:29 -04:00
|
|
|
interface = "scsi0"
|
2024-11-02 01:50:25 -04:00
|
|
|
size = 5
|
2024-07-12 23:57:29 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
agent {
|
|
|
|
enabled = true
|
|
|
|
}
|
|
|
|
|
|
|
|
initialization {
|
|
|
|
ip_config {
|
|
|
|
ipv4 {
|
|
|
|
address = "dhcp"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
serial_device {}
|
|
|
|
|
|
|
|
network_device {
|
|
|
|
bridge = "vmbr0"
|
|
|
|
}
|
|
|
|
|
|
|
|
vga {
|
|
|
|
type = "serial0"
|
|
|
|
}
|
|
|
|
|
2024-10-12 13:23:20 -04:00
|
|
|
cpu {
|
|
|
|
cores = 2
|
|
|
|
type = "host"
|
|
|
|
architecture = "x86_64"
|
|
|
|
}
|
2024-07-12 23:57:29 -04:00
|
|
|
}
|