terraform-provider-libvirt icon indicating copy to clipboard operation
terraform-provider-libvirt copied to clipboard

Allow setting for disk mode sata

Open abbbi opened this issue 6 years ago • 3 comments

hi,

currently the plugin only supports two disk types: virtio(-scsi) and virtio. IDE is used for CDROM.

There are certain systems that dont work with the scsi or virtio option. Some might need SATA (like ESXi).

There should be the possiblity to specify SATA as disk bus option too.

abbbi avatar Jan 09 '19 09:01 abbbi

@abbbi for all this extension features, you can use this: https://github.com/dmacvicar/terraform-provider-libvirt/blob/master/website/docs/r/domain.html.markdown#altering-libvirts-generated-domain-xml-definition

:rocket:

MalloZup avatar Jan 09 '19 09:01 MalloZup

@MalloZup

yes i know, but then it might also make sense to have something like:

disk { type = "sata|scsi|virtio-scsi|ide" .. }

instead of forcibly defaulting to some value. Also, different disk modes require different controllers to be added.

abbbi avatar Jan 09 '19 09:01 abbbi

yop i get the point

MalloZup avatar Jan 09 '19 09:01 MalloZup