Sha256: f99a1120d811cb901ac6fafe6c808e55f35150730af8fc3f32b3dcc56ed06de1
Contents?: true
Size: 1.86 KB
Versions: 1
Compression:
Stored size: 1.86 KB
Contents
<domain type='<%= @domain_type %>'> <name><%= @name %></name> <memory><%= @memory_size %></memory> <vcpu><%= @cpus %></vcpu> <% if @nested %> <cpu mode='<%= @cpu_mode %>'> <% if @cpu_mode != 'host-passthrough' %> <model fallback='allow'>qemu64</model> <feature policy='optional' name='vmx'/> <feature policy='optional' name='svm'/> <% end %> </cpu> <% end %> <os> <type>hvm</type> <boot dev='hd'/> <kernel><%= @kernel %></kernel> <initrd><%= @initrd %></initrd> <cmdline><%= @cmd_line %></cmdline> </os> <features> <acpi/> <apic/> <pae/> </features> <clock offset='utc'/> <devices> <disk type='file' device='disk'> <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] %>' cache='<%= d[:cache] %>'/> <source file='<%= d[:absolute_path] %>'/> <target dev='<%= d[:device] %>' bus='<%= d[:bus] %>'/> <%# 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'/> </console> <input type='mouse' bus='ps2'/> <%# Video device -%> <graphics type='<%= @graphics_type %>' port='<%= @graphics_port %>' autoport='<%= @graphics_autoport %>' listen='<%= @graphics_ip %>' keymap='en-us' <%= @graphics_passwd%> /> <video> <model type='<%= @video_type %>' vram='<%= @video_vram %>' heads='1'/> </video> <%#End Video -%> </devices> </domain>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-libvirt-0.0.25 | lib/vagrant-libvirt/templates/domain.xml.erb |