<%= @name %> <%= @uuid %> <%= @memory_size %> <%= @cpus %> <% if @cpu_mode != 'host-passthrough' %> <% if @cpu_mode == 'custom' %><%= @cpu_model %><% end %> <% if @nested %> <% end %> <% @cpu_features.each do |cpu_feature| %> <% end %> <% unless @cpu_topology.empty? %> <%# CPU topology -%> <% end %> <% end %> <% if @numa_nodes %> <% @numa_nodes.each_with_index do |node, index| %> <% end %> <% end %> <% unless @memory_backing.empty? %> <% @memory_backing.each do |backing| %> <<%= backing[:name] %> <%= backing[:config].map { |k,v| "#{k}='#{v}'"}.join(' ') %>/> <% end %> <% end%> <% if @machine_type %> <% if @machine_arch %> hvm <% else %> hvm <% end %> <% else %> <% if @machine_arch %> hvm <% else %> hvm <% end %> <% end %> <% if @loader %> <%= @loader %> <% end %> <% if @boot_order.count >= 1 %> <% end %> <%= @kernel %> <%= @initrd %> <%= @cmd_line %> <% if @dtb %> <%= @dtb %> <% end %> <% @features.each do |feature| %> <<%= feature %>/> <% end %> <% if @kvm_hidden %> <% end %> <% if @emulator_path %> <%= @emulator_path %> <% end %> <% if @domain_volume_path %> <%# we need to ensure a unique target dev -%> <% end %> <%# additional disks -%> <% @disks.each do |d| -%> <% if d[:shareable] %> <% end %> <% if d[:serial] %> <%= d[:serial] %> <% end %> <%# this will get auto generated by libvirt
-%> <% end -%> <% @cdroms.each do |c| %> <% end %> <% @channels.each do |channel| %> <%if channel[:source_mode] or channel[:source_path] %> mode='<%= channel[:source_mode] %>' <% end %> <% if channel[:source_path] %> path="<%= channel[:source_path] %>" <% end %> /> <% end %> name="<%= channel[:target_name] %>" <% end %> <% if channel[:target_address] %> address="<%= channel[:target_address] %>" <% end %> <% if channel[:target_port] %> port="<%= channel[:target_port] %>" <% end %> /> <% end %> <% @inputs.each do |input| %> <% end %> <% if !@sound_type.nil? %> <%# Sound device-%> <%# End Sound%> <% end %> <% if @graphics_type != 'none' %> <%# Video device -%> /> <%#End Video -%> <% end %> <% if @rng[:model] == "random"%> /dev/random <% end %> <% @pcis.each do |pci| %>
<% end %> <% @usbs.each do |usb| %> <% if usb[:vendor] %> <% end %> <% if usb[:product] %> <% end %> <% if usb[:bus] && usb[:device] %>
<% end %> <% end %> <% unless @redirdevs.empty? %> <% @redirdevs.each do |redirdev| %> <% end %> <% unless @redirfilters.empty? %> <% @redirfilters.each do |usbdev| %> <% end %> <% end %> <% end %> <% unless @watchdog_dev.empty? %> <%# Watchdog Device -%> <% end %> <% unless @smartcard_dev.empty? -%> <% if @smartcard_dev[:mode] == 'passthrough' %> <% if @smartcard_dev[:type] == 'tcp' %> <% else %> <% end %> <% end %> <% end -%> <% if @tpm_path -%> <%# TPM Device -%> <% end -%> <% unless @qargs.empty? %> <% @qargs.each do |arg| %> <% end %> <% end %>