aboutsummaryrefslogtreecommitdiff
path: root/terraform/main.tf
diff options
context:
space:
mode:
authorKumar Damani <me@kumardamani.net>2026-09-12 20:19:48 +0000
committerKumar Damani <me@kumardamani.net>2026-09-12 20:19:48 +0000
commit5d1f4f8d18effc7d32b6c4b6e6f05189f5e2e836 (patch)
treec746d8cb023c303235a31838425d68fc0a743e57 /terraform/main.tf
parente8205ac38096ff6f32599f414caaf4d184f350dc (diff)
added new vm for photos, shrunk nc
Diffstat (limited to 'terraform/main.tf')
-rwxr-xr-xterraform/main.tf51
1 files changed, 49 insertions, 2 deletions
diff --git a/terraform/main.tf b/terraform/main.tf
index cbe8159..a1e5219 100755
--- a/terraform/main.tf
+++ b/terraform/main.tf
@@ -109,9 +109,9 @@ resource "proxmox_lxc" "nc_kumar" {
ostemplate = "local:vztmpl/debian-12-standard_12.0-1_amd64.tar.zst"
password = "${var.nc_kumar_password}"
unprivileged = false
- cores = 8
+ cores = 4
cpulimit = 0
- memory = 12288
+ memory = 6144
start = true
onboot = true
startup = "order=3"
@@ -379,6 +379,42 @@ resource "proxmox_vm_qemu" "git" {
slot = "virtio0"
size = "10G"
storage = "local-lvm"
+ format = "raw"
+ }
+
+ network {
+ id = 0
+ model = "virtio"
+ bridge = "vmbr1"
+ tag = 30
+ mtu = 1420
+ }
+}
+
+resource "proxmox_vm_qemu" "photos" {
+ target_node = "hesh"
+ name = "photos"
+ memory = 8192
+ start_at_node_boot = true
+ boot = "order=virtio0;net0"
+ clone_id = 104
+ full_clone = true
+ scsihw = "virtio-scsi-single"
+
+ startup_shutdown {
+ order = 4
+ }
+
+ cpu {
+ cores = 4
+ }
+
+ disk {
+ type = "disk"
+ slot = "virtio0"
+ size = "150G"
+ storage = "local-lvm"
+ format = "raw"
}
network {
@@ -388,6 +424,17 @@ resource "proxmox_vm_qemu" "git" {
tag = 30
mtu = 1420
}
+
+ pcis {
+ pci0 {
+ # raw pass-through of our GPU
+ raw {
+ raw_id = "0000:01:00"
+ primary_gpu = false
+ rombar = true
+ }
+ }
+ }
}
moved {