Sha256: 54f8e87067484d8e893a9aa335e99c48c07148722ff347921e1f09eb10c22242

Contents?: true

Size: 1.75 KB

Versions: 28

Compression:

Stored size: 1.75 KB

Contents

<domain type='<%= domain_type %>'>
  <name><%= name %></name>
  <memory><%= memory_size %></memory>
  <vcpu><%= cpus %></vcpu>
  <os>
    <type arch='<%= arch %>'><%= os_type %></type>
<% boot_order.each do |dev| -%>
    <boot dev='<%= dev %>'/>
<% end -%>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <clock offset='utc'/>
  <devices>
<% volumes.each do |vol| -%>
    <disk type='file' device='disk'>
      <driver name='qemu' type='<%= vol.format_type %>'/>
      <source file='<%= vol.path %>'/>
      <%# we need to ensure a unique target dev -%>
      <target dev='vd<%= ('a'..'z').to_a[volumes.index(vol)] %>' bus='virtio'/>
    </disk>
<% end -%>
<% if iso_file -%>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='<%= "#{iso_dir}/#{iso_file}" %>'/>
      <target dev='hdc' bus='ide'/>
      <readonly/>
      <address type='drive' controller='0' bus='1' unit='0'/>
    </disk>
<% end -%>
<% nics.each do |nic| -%>
    <interface type='<%= nic.type %>'>
      <source <%= nic.type == 'bridge' ? "bridge='#{nic.bridge}'" : "network='#{nic.network}'" %> />
      <model type='<%= nic.model %>'/>
    </interface>
<% end -%>
    <serial type='pty'>
      <target port='0'/>
    </serial>
    <console type='pty'>
      <target port='0'/>
    </console>
    <input type='tablet' bus='usb'/>
    <input type='mouse' bus='ps2'/>
    <graphics type='<%= display[:type] %>' port='<%= display[:port] %>' autoport='yes' <% if display[:listen] and !(display[:listen].empty?)  %> listen='<%= display[:listen] %>'<% end %> <% if display[:password] and !(display[:password].empty?) %>passwd='<%=display[:password] %>'<% end %> />
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
    </video>
  </devices>
</domain>

Version data entries

28 entries across 28 versions & 5 rubygems

Version Path
fog-libvirt-0.3.0 lib/fog/libvirt/models/compute/templates/server.xml.erb
fog-libvirt-0.2.0 lib/fog/libvirt/models/compute/templates/server.xml.erb
fog-libvirt-0.1.0 lib/fog/libvirt/models/compute/templates/server.xml.erb
fog-libvirt-0.0.4 lib/fog/libvirt/models/compute/templates/server.xml.erb
fog-libvirt-0.0.3 lib/fog/libvirt/models/compute/templates/server.xml.erb
fog-libvirt-0.0.2 lib/fog/libvirt/models/compute/templates/server.xml.erb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/libvirt/models/compute/templates/server.xml.erb
fog-libvirt-0.0.1 lib/fog/libvirt/models/compute/templates/server.xml.erb
fog-1.29.0 lib/fog/libvirt/models/compute/templates/server.xml.erb
fog-1.28.0 lib/fog/libvirt/models/compute/templates/server.xml.erb
fog-1.27.0 lib/fog/libvirt/models/compute/templates/server.xml.erb
fog-1.26.0 lib/fog/libvirt/models/compute/templates/server.xml.erb
fog-1.25.0 lib/fog/libvirt/models/compute/templates/server.xml.erb
nsidc-fog-1.24.1 lib/fog/libvirt/models/compute/templates/server.xml.erb
fog-1.24.0 lib/fog/libvirt/models/compute/templates/server.xml.erb
ns-fog-1.22.11 lib/fog/libvirt/models/compute/templates/server.xml.erb
ns-fog-1.22.10 lib/fog/libvirt/models/compute/templates/server.xml.erb
ns-fog-1.22.9 lib/fog/libvirt/models/compute/templates/server.xml.erb
ns-fog-1.22.8 lib/fog/libvirt/models/compute/templates/server.xml.erb
ns-fog-1.22.7 lib/fog/libvirt/models/compute/templates/server.xml.erb