Skip to content

Instantly share code, notes, and snippets.

@krha
Created October 9, 2012 22:05
Show Gist options
  • Save krha/3861737 to your computer and use it in GitHub Desktop.
Save krha/3861737 to your computer and use it in GitHub Desktop.
Cloudlet Template XML
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<name>cloudlet</name>
<uuid>c7a5fdbd-cdaf-9455-926a-d65c16db1801</uuid>
<memory>1048576</memory>
<currentMemory>1048576</currentMemory>
<vcpu>4</vcpu>
<cpu>
<topology sockets='1' cores='4' threads='1'/>
</cpu>
<os>
<type arch='x86_64' machine='pc-1.0'>hvm</type>
</os>
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/path/to/vm.img' />
<target dev='hda' bus='ide' />
</disk>
<graphics type='vnc' port='-1' autoport='yes' keymap='en-us' listen='127.0.0.1'/>
<interface type='user'>
</interface>
</devices>
<features>
<acpi/>
</features>
<qemu:commandline>
<qemu:arg value='-redir'/>
<qemu:arg value='tcp:2222::22' />
</qemu:commandline>
</domain>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment