diff --git a/proxmox/main.tf b/proxmox/main.tf index aaba592..16788a7 100644 --- a/proxmox/main.tf +++ b/proxmox/main.tf @@ -8,7 +8,7 @@ terraform { } provider "proxmox" { - endpoint = "https://192.168.50.201:8006/" + endpoint = "https://192.168.50.251:8006/" api_token = var.proxmox_api_token insecure = true # self-signed cert on home Proxmox diff --git a/proxmox/scripts/create-debian12-template.sh b/proxmox/scripts/create-debian12-template.sh index bcd40b7..e5a1fa1 100644 --- a/proxmox/scripts/create-debian12-template.sh +++ b/proxmox/scripts/create-debian12-template.sh @@ -4,7 +4,7 @@ set -euo pipefail -TEMPLATE_ID=9000 +TEMPLATE_ID=9001 TEMPLATE_NAME="debian-12-cloud" STORAGE="local-lvm" IMAGE_URL="https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-amd64.qcow2" diff --git a/proxmox/vm.tf b/proxmox/vm.tf index 3f491da..1d147c5 100644 --- a/proxmox/vm.tf +++ b/proxmox/vm.tf @@ -4,7 +4,7 @@ resource "proxmox_virtual_environment_vm" "vm" { vm_id = var.vm_id clone { - vm_id = 9000 # debian-12-cloud template + vm_id = 9001 # debian-12-cloud template full = true } @@ -21,6 +21,8 @@ resource "proxmox_virtual_environment_vm" "vm" { dedicated = var.vm_memory } + scsi_hardware = "virtio-scsi-single" + disk { datastore_id = "local-lvm" interface = "scsi0"