lib/vagrant-libvirt/templates/domain.xml.erb in vagrant-libvirt-0.0.15 vs lib/vagrant-libvirt/templates/domain.xml.erb in vagrant-libvirt-0.0.16

- old
+ new

@@ -29,9 +29,20 @@ <driver name='qemu' type='qcow2' cache='<%= @domain_volume_cache %>'/> <source file='<%= @domain_volume_path %>'/> <%# we need to ensure a unique target dev -%> <target dev='vda' bus='<%= @disk_bus %>'/> </disk> +<%# additional disks -%> +<% @disks.each do |d| -%> + <disk type='file' device='disk'> + <driver name='qemu' type='<%= d[:type] %>'/> + <source file='<%= d[:path] %>'/> + <target dev='<%= d[:device] %>' bus='virtio'/> +<%# this will get auto generated by libvirt + <address type='pci' domain='0x0000' bus='0x00' slot='???' function='0x0'/> +-%> + </disk> +<% end -%> <serial type='pty'> <target port='0'/> </serial> <console type='pty'> <target port='0'/>