Storage Proxmox and Terraform/Telmate

Daxcor

Member
Oct 31, 2021
19
0
6
56
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:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!