Skip to content

Instantly share code, notes, and snippets.

@novel
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save novel/62332d87a7ed2616cb63 to your computer and use it in GitHub Desktop.
Save novel/62332d87a7ed2616cb63 to your computer and use it in GitHub Desktop.
Linux HVM guest
<domain type='xen'>
<name>xentest</name>
<uuid>4dea22b31d52d8f32516782e98ab3fa0</uuid>
<os>
<type>hvm</type>
<loader>/usr/local/lib/xen/boot/hvmloader</loader>
<boot dev='hd'/>
</os>
<memory>524288</memory>
<vcpu>1</vcpu>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<features>
<pae/>
<acpi/>
<apic/>
</features>
<clock sync="localtime"/>
<devices>
<emulator>/usr/local/lib/xen/bin/qemu-system-i386</emulator>
<interface type='bridge'>
<source bridge='virbr0'/>
<mac address='00:16:3e:5d:c7:9e'/>
</interface>
<disk type='file'>
<source file='/home/novel/freebsd-xen.img'/>
<target dev='hda'/>
</disk>
<graphics type='vnc' autoport='yes'>
<listen type='address' address='0.0.0.0'/>
</graphics>
</devices>
</domain>
<domain type='xen'>
<name>xenlinux</name>
<uuid>9a44817d-009d-11e5-b737-10c37bdc0412</uuid>
<os>
<type>hvm</type>
<loader>/usr/local/lib/xen/boot/hvmloader</loader>
<boot dev='cdrom'/>
<boot dev='hd'/>
</os>
<memory>2097152</memory>
<vcpu>1</vcpu>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<features>
<pae/>
<acpi/>
<apic/>
</features>
<clock sync="localtime"/>
<devices>
<emulator>/usr/local/lib/xen/bin/qemu-system-i386</emulator>
<interface type='bridge'>
<source bridge='virbr0'/>
</interface>
<disk type='file'>
<source file='/home/novel/ubuntu-xen.img'/>
<target dev='hda'/>
</disk>
<disk type='file' device='cdrom'>
<source file='/home/novel/xubuntu-15.04-desktop-amd64.iso'/>
<target dev='hdc' />
</disk>
<graphics type='vnc' autoport='yes'>
<listen type='address' address='0.0.0.0'/>
</graphics>
</devices>
</domain>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment