mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Merge pull request #747 from QuintenJohnson/disk-serial
Allow additional disk serial specification
This commit is contained in:
commit
a43942fb75
@ -693,6 +693,7 @@ It has a number of options:
|
||||
pre-existing disk. If the disk doesn't exist it will be created.
|
||||
Disks with this option set to true need to be removed manually.
|
||||
* `shareable` - Set to true if you want to simulate shared SAN storage.
|
||||
* `serial` - Serial number of the disk device.
|
||||
|
||||
The following example creates two additional disks.
|
||||
|
||||
|
@ -480,7 +480,8 @@ module VagrantPlugins
|
||||
bus: options[:bus],
|
||||
cache: options[:cache] || 'default',
|
||||
allow_existing: options[:allow_existing],
|
||||
shareable: options[:shareable]
|
||||
shareable: options[:shareable],
|
||||
serial: options[:serial]
|
||||
}
|
||||
|
||||
@disks << disk # append
|
||||
|
@ -86,6 +86,9 @@
|
||||
<% if d[:shareable] %>
|
||||
<shareable/>
|
||||
<% end %>
|
||||
<% if d[:serial] %>
|
||||
<serial><%= d[:serial] %></serial>
|
||||
<% end %>
|
||||
<%# this will get auto generated by libvirt
|
||||
<address type='pci' domain='0x0000' bus='0x00' slot='???' function='0x0'/>
|
||||
-%>
|
||||
|
Loading…
Reference in New Issue
Block a user