Storage Proxmox and Terraform/Telmate

Daxcor

Member
Oct 31, 2021
22
0
6
57
ok I am working on my first terraform project and I am using it to create vms. I am trying to sort out the syntax. The documentation is unclear.

So I created storage on a separate drive. I used the "directory" option. I called the storage "vm".
here is the terraform disk section.

disk {
id = 0
type = "virtio"
storage = "local-lvm"
storage_type = "directory"
size = "100G"
}

When I look at the disk of a test vm that I created manually I get.

1698695706783.png

disk {
type = "virtIO SCSI single"
storage = "vm"
storage_type = "directory"
size = "100G"
}

Is this what I should be using for settings to duplicate the above?
 
This is what I ended up making work.

Code:
# System
  bios   = "seabios"
  scsihw = "virtio-scsi-single"

  # Disks
  disk {
    type    = "scsi"
    storage = "vm"
    size    = "100G"
    ssd     = 1
  }
 
Last edited: