diff options
author | Eamonn O'Toole <eamonn.otoole@hpe.com> | 2017-03-16 16:12:22 +0000 |
---|---|---|
committer | Alvaro <alvaro.saurin@gmail.com> | 2017-03-22 12:19:05 +0100 |
commit | a07e21b74726d9ce443ac9332417c169b2ccd708 (patch) | |
tree | cf8e1bee9cc6ed8c4fa37b56440615397f953c91 /docs | |
parent | 68630335a6c23ab544661b8ef9c6692df886fd7d (diff) | |
download | terraform-provider-libvirt-a07e21b74726d9ce443ac9332417c169b2ccd708.tar terraform-provider-libvirt-a07e21b74726d9ce443ac9332417c169b2ccd708.tar.gz |
Add scsi controller option and wwn to virtual disks
We've added the facility to define a disk bus type of scsi to the
specification of a disk in the domain definition. If the disk is
a scsi disk, a random wwn is generated unless a wwn is provided for
that disk.
The disk stanza now looks as follows:
disk {
volume_id = "${libvirt_volume.mydisk.id}"
scsi = "yes"
wwn = "05abcd123456789a"
}
Having "scsi" present with any value will specify a scsi bus for
the disk. If "wwn" is present for a scsci disk then the value of
"wwn" is used for the disk wwn, otherwise a random value is generated.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/providers/libvirt/r/domain.html.markdown | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/providers/libvirt/r/domain.html.markdown b/docs/providers/libvirt/r/domain.html.markdown index 99948e39..af3d7247 100644 --- a/docs/providers/libvirt/r/domain.html.markdown +++ b/docs/providers/libvirt/r/domain.html.markdown @@ -109,6 +109,10 @@ nvram = [ The `disk` block supports: * `volume_id` - (Required) The volume id to use for this disk. +* `scsi` - (Optional) Use a scsi controller for this disk. The controller +model is set to `virtio-scsi` +* `wwn` - (Optional) Specify a WWN to use for the disk if the disk is using +a scsi controller, if not specified then a random wwn is generated for the disk If you have a volume with a template image, create a second volume using the image as the backing volume, and then use the new volume as the volume for the disk. This way the image will not be modified. @@ -127,6 +131,7 @@ resource "libvirt_domain" "domain1" { name = "domain1" disk { volume_id = "${libvirt_volume.mydisk.id}" + scsi = "yes" } network_interface { |