Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion proxmoxtf/resource/vm/disk/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ const (
dvDiskDiscard = "ignore"
dvDiskCache = "none"

// see /usr/share/perl5/PVE/QemuServer/Drive.pm
// Using SCSI limit (31) as the highest value (IDE: 4, SCSI: 31, VirtIO: 16, SATA: 6).
maxResourceVirtualEnvironmentVMDiskDevices = 31

// MkDisk is the name of the disk resource.
MkDisk = "disk"
mkDiskAIO = "aio"
Expand Down Expand Up @@ -271,7 +275,7 @@ func Schema() map[string]*schema.Schema {
},
},
},
MaxItems: 14,
MaxItems: maxResourceVirtualEnvironmentVMDiskDevices,
MinItems: 0,
},
}
Expand Down