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.
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.
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?