87 lines
3.3 KiB
Plaintext
87 lines
3.3 KiB
Plaintext
<domain type='kvm' >
|
|
<name><%= scope.lookupvar('n1k_vsm::vsmname') %></name>
|
|
<memory unit='KiB'><%= scope.lookupvar('n1k_vsm::memory') %></memory>
|
|
<vcpu placement='static'> <%= scope.lookupvar('n1k_vsm::vcpu') %></vcpu>
|
|
|
|
<os>
|
|
<type arch='x86_64' machine='rhel6.5.0'>hvm</type>
|
|
<boot dev='hd'/>
|
|
<boot dev='cdrom'/>
|
|
</os>
|
|
|
|
<features> <acpi/> <apic/> <pae/> </features>
|
|
|
|
<clock offset='localtime'/>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>restart</on_reboot>
|
|
<on_crash>restart</on_crash>
|
|
|
|
<devices>
|
|
<emulator>/usr/libexec/qemu-kvm</emulator>
|
|
<disk type='file' device='disk'>
|
|
<driver name='qemu' type='raw'/>
|
|
<source file='<%= scope.lookupvar('n1k_vsm::diskfile') %>'/>
|
|
<target dev='hda' bus='ide'/>
|
|
</disk>
|
|
|
|
<disk type='file' device='cdrom'>
|
|
<driver name='qemu' type='raw'/>
|
|
<source file='<%= scope.lookupvar('n1k_vsm::imgfile') %>'/>
|
|
<target dev='hdb' bus='ide'/>
|
|
<readonly/>
|
|
</disk>
|
|
|
|
<controller type='ide' index='0'>
|
|
<alias name='ide0'/>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
|
|
</controller>
|
|
|
|
<interface type='bridge'>
|
|
<mac address='<%= @ctrlmac %>'/>
|
|
<source bridge='<%= @ctrlbridge %>'/>
|
|
<virtualport type='openvswitch' />
|
|
<target dev='<%= @ctrltap %>'/>
|
|
<model type='e1000'/>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
|
|
</interface>
|
|
|
|
<interface type='bridge'>
|
|
<mac address='<%= @mgmtmac %>'/>
|
|
<source bridge='<%= @mgmtbridge %>'/>
|
|
<virtualport type='openvswitch' />
|
|
<target dev='<%= @mgmttap %>'/>
|
|
<model type='e1000'/>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
|
|
</interface>
|
|
|
|
<interface type='bridge'>
|
|
<mac address='<%= @pktmac %>'/>
|
|
<source bridge='<%= @pktbridge %>'/>
|
|
<virtualport type='openvswitch' />
|
|
<target dev='<%= @pkttap %>'/>
|
|
<model type='e1000'/>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
|
|
</interface>
|
|
|
|
<input type='mouse' bus='ps2'/>
|
|
|
|
<graphics type='vnc' port='-1' autoport='yes' listen='0.0.0.0' keymap='en-us'>
|
|
<listen type='address' address='0.0.0.0'/>
|
|
</graphics>
|
|
|
|
<video>
|
|
<model type='cirrus' vram='9216' heads='1'/>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
|
|
</video>
|
|
|
|
<memballoon model='virtio'>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
|
|
</memballoon>
|
|
|
|
<console type='pty' tty='/dev/pts/<%= scope.lookupvar('n1k_vsm::consolepts') %>'>
|
|
<source path='/dev/pts/<%= scope.lookupvar('n1k_vsm::consolepts') %>'/>
|
|
<target port='0'/>
|
|
</console>
|
|
</devices>
|
|
</domain>
|