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 1698695706783.png](https://forum.proxmox.com/data/attachments/57/57003-c14f9ed21e6e1adb5508cc48f69cbbb6.jpg)
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?
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 1698695706783.png](https://forum.proxmox.com/data/attachments/57/57003-c14f9ed21e6e1adb5508cc48f69cbbb6.jpg)
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?