34dc599af2
* added basic template for vms * added manifest to spawn vms Implements: blueprint reduced-footprint Change-Id: I5a218975e3f441bc53b86066101595ad7cb5ef06
66 lines
1.8 KiB
Plaintext
66 lines
1.8 KiB
Plaintext
<domain type='kvm'>
|
|
<name><%= @details['id'] %>_vm</name>
|
|
<memory unit='GiB'><%= @details['mem'] %></memory>
|
|
<vcpu placement='static'><%= @details['cpu'] %></vcpu>
|
|
<os>
|
|
<type arch='x86_64' machine='pc-i440fx-trusty'>hvm</type>
|
|
<boot dev='network'/>
|
|
<boot dev='hd'/>
|
|
</os>
|
|
<features>
|
|
<acpi/>
|
|
<apic/>
|
|
<pae/>
|
|
</features>
|
|
<clock offset='utc'/>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>restart</on_reboot>
|
|
<on_crash>restart</on_crash>
|
|
<devices>
|
|
<disk type='file' device='disk'>
|
|
<driver name='qemu' type='qcow2' cache='writeback'/>
|
|
<source file='/var/lib/nova/<%= @details['id'] %>_vm.img' size='<%= @details['vda_size'] %>'/>
|
|
<target dev='vda' bus='virtio'/>
|
|
</disk>
|
|
<controller type='usb' index='0'>
|
|
</controller>
|
|
<controller type='ide' index='0'>
|
|
</controller>
|
|
<controller type='pci' index='0' model='pci-root'/>
|
|
<interface type='bridge'>
|
|
<source bridge='br-fw-admin'/>
|
|
<model type='virtio'/>
|
|
</interface>
|
|
<interface type='bridge'>
|
|
<source bridge='br-ex'/>
|
|
<model type='virtio'/>
|
|
</interface>
|
|
<interface type='bridge'>
|
|
<source bridge='br-storage'/>
|
|
<model type='virtio'/>
|
|
</interface>
|
|
<interface type='bridge'>
|
|
<source bridge='br-mgmt'/>
|
|
<model type='virtio'/>
|
|
</interface>
|
|
<interface type='bridge'>
|
|
<source bridge='br-mesh'/>
|
|
<model type='virtio'/>
|
|
</interface>
|
|
<serial type='pty'>
|
|
<target port='0'/>
|
|
</serial>
|
|
<console type='pty'>
|
|
<target type='serial' port='0'/>
|
|
</console>
|
|
<input type='mouse' bus='ps2'/>
|
|
<input type='keyboard' bus='ps2'/>
|
|
<graphics type='vnc' port='-1' autoport='yes'/>
|
|
<video>
|
|
<model type='cirrus' vram='9216' heads='1'/>
|
|
</video>
|
|
<memballoon model='virtio'>
|
|
</memballoon>
|
|
</devices>
|
|
</domain>
|