diff --git a/README.md b/README.md index ddac000..cd515c5 100644 --- a/README.md +++ b/README.md @@ -779,6 +779,7 @@ It has a number of options: 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. +* `wwn` - WWN number of the disk device. The following example creates two additional disks. diff --git a/lib/vagrant-libvirt/config.rb b/lib/vagrant-libvirt/config.rb index 66504c6..a6693f0 100644 --- a/lib/vagrant-libvirt/config.rb +++ b/lib/vagrant-libvirt/config.rb @@ -604,7 +604,8 @@ module VagrantPlugins cache: options[:cache] || 'default', allow_existing: options[:allow_existing], shareable: options[:shareable], - serial: options[:serial] + serial: options[:serial], + wwn: options[:wwn] } @disks << disk # append diff --git a/lib/vagrant-libvirt/templates/domain.xml.erb b/lib/vagrant-libvirt/templates/domain.xml.erb index af48a25..824872c 100644 --- a/lib/vagrant-libvirt/templates/domain.xml.erb +++ b/lib/vagrant-libvirt/templates/domain.xml.erb @@ -129,6 +129,9 @@ <% if d[:serial] %> <%= d[:serial] %> <% end %> + <% if d[:wwn] %> + <%= d[:wwn] %> + <% end %> <%# this will get auto generated by Libvirt
-%>