mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Add WWN support
Add the disk attribute wwn to set the WWN of a disk drive. Signed-off-by: christopher@voltz.us
This commit is contained in:
@@ -777,6 +777,7 @@ It has a number of options:
|
|||||||
Disks with this option set to true need to be removed manually.
|
Disks with this option set to true need to be removed manually.
|
||||||
* `shareable` - Set to true if you want to simulate shared SAN storage.
|
* `shareable` - Set to true if you want to simulate shared SAN storage.
|
||||||
* `serial` - Serial number of the disk device.
|
* `serial` - Serial number of the disk device.
|
||||||
|
* `wwn` - WWN number of the disk device.
|
||||||
|
|
||||||
The following example creates two additional disks.
|
The following example creates two additional disks.
|
||||||
|
|
||||||
|
|||||||
@@ -600,7 +600,8 @@ module VagrantPlugins
|
|||||||
cache: options[:cache] || 'default',
|
cache: options[:cache] || 'default',
|
||||||
allow_existing: options[:allow_existing],
|
allow_existing: options[:allow_existing],
|
||||||
shareable: options[:shareable],
|
shareable: options[:shareable],
|
||||||
serial: options[:serial]
|
serial: options[:serial],
|
||||||
|
wwn: options[:wwn]
|
||||||
}
|
}
|
||||||
|
|
||||||
@disks << disk # append
|
@disks << disk # append
|
||||||
|
|||||||
@@ -127,6 +127,9 @@
|
|||||||
<% if d[:serial] %>
|
<% if d[:serial] %>
|
||||||
<serial><%= d[:serial] %></serial>
|
<serial><%= d[:serial] %></serial>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% if d[:wwn] %>
|
||||||
|
<wwn><%= d[:wwn] %></wwn>
|
||||||
|
<% end %>
|
||||||
<%# this will get auto generated by Libvirt
|
<%# this will get auto generated by Libvirt
|
||||||
<address type='pci' domain='0x0000' bus='0x00' slot='???' function='0x0'/>
|
<address type='pci' domain='0x0000' bus='0x00' slot='???' function='0x0'/>
|
||||||
-%>
|
-%>
|
||||||
|
|||||||
Reference in New Issue
Block a user