# Define Hypervisor parameters for this OS <% if @obj.nil? -%> hypervisors.<%= @name -%> do |hyper| <% else -%> hypervisors.<%= @name -%> do |hyper| <% end -%>
# No. of CPUs <% if @obj.nil? || @obj.cpu_count.nil? -%> #hyper.cpu_count = 1 <% else -%> hyper.cpu_count = <%= @obj.cpu_count %> <% end -%> # Enable CPU Hot plug? <% if @obj.nil? || @obj.cpu_hot_plug.nil? -%> #hyper.cpu_hot_plug = false <% else -%> hyper.cpu_hot_plug = <%= @obj.cpu_hot_plug %> <% end -%> # CPU Execution Cap <% if @obj.nil? || @obj.cpu_execution_cap.nil? -%> #hyper.cpu_execution_cap = 100 <% else -%> hyper.cpu_execution_cap = <%= @obj.cpu_execution_cap %> <% end -%> # RAM Size <% if @obj.nil? || @obj.ram_size.nil? -%> #hyper.ram_size = '1GiB' <% else -%> hyper.ram_size = '<%= @obj.ram_size -%>' <% end -%> # Video ram size <% if @obj.nil? || @obj.video_ram_size.nil? -%> #hyper.video_ram_size = '1GiB' <% else -%> hyper.video_ram_size = '<%= @obj.video_ram_size -%>' <% end -%> # Is ACPI enabled? <% if @obj.nil? || @obj.acpi_enabled.nil? -%> #hyper.acpi_enabled = true <% else -%> hyper.acpi_enabled = <%= @obj.acpi_enabled %> <% end -%> # Should PAE (Processor Address Extensions) enabled? <% if @obj.nil? || @obj.pae_enabled.nil? -%> #hyper.pae_enabled = true <% else -%> hyper.pae_enabled = <%= @obj.pae_enabled %> <% end -%> # Should H/w Virtualization for Guest be enabled <% if @obj.nil? || @obj.hw_virt_enabled.nil? -%> #hyper.hw_virt_enabled = true <% else -%> hyper.hw_virt_enabled = <%= @obj.hw_virt_enabled %> <% end -%> # Should nested paging for guest be enabled <% if @obj.nil? || @obj.hw_nested_pages.nil? -%> #hyper.hw_nested_pages = true <% else -%> hyper.hw_nested_pages = <%= @obj.hw_nested_pages %> <% end -%> # Should Hypervisor use large pages for this guest <% if @obj.nil? || @obj.use_large_pages.nil? -%> #hyper.use_large_pages = true <% else -%> hyper.use_large_pages = <%= @obj.use_large_pages %> <% end -%> # Should the guest run in unrestricted mode <% if @obj.nil? || @obj.unrestricted_guest_mode.nil? -%> #hyper.unrestricted_guest_mode = false <% else -%> hyper.unrestricted_guest_mode = <%= @obj.unrestricted_guest_mode %> <% end -%> # Should 3d acceleration be enabled for Video <% if @obj.nil? || @obj.video_3d_acceleration.nil? -%> #hyper.video_3d_acceleration = false <% else -%> hyper.video_3d_acceleration = <%= @obj.video_3d_acceleration %> <% end -%> # Should EFI firmware be used instead of bios <% if @obj.nil? || @obj.use_efi.nil? -%> #hyper.use_efi = false <% else -%> hyper.use_efi = <%= @obj.use_efi %> <% end -%> # Guest memory balloon size <% if @obj.nil? || @obj.guest_balloon_size.nil? -%> #hyper.guest_balloon_size = '0GiB' <% else -%> hyper.guest_balloon_size = '<%= @obj.guest_balloon_size -%>' <% end -%>
<% if @obj.nil? -%> end <% else -%> end <% end -%>