Skip to content

Instantly share code, notes, and snippets.

@syci
Created February 19, 2018 21:28
Show Gist options
  • Save syci/d7c543b57feb04725db37f94ea463b57 to your computer and use it in GitHub Desktop.
Save syci/d7c543b57feb04725db37f94ea463b57 to your computer and use it in GitHub Desktop.
Ejemplo xml para Windows XEN Guest Virsh
<domain type='xen'>
<name>eucalyptus-windows</name>
<os>
<type>hvm</type>
<loader>/usr/lib/xen/boot/hvmloader</loader>
<boot dev='cdrom'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<clock offset='localtime'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<memory>524288</memory>
<vcpu>1</vcpu>
<devices>
<emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
<disk type='file'>
<source file='fully_qualified_path_to_disk'/>
<target dev='hda' bus='ide'/>
</disk>
<!--<disk type='file' device='disk'>
<driver name='tap' type='aio'/>
<source file='fully_qualified_path_to_secondary_disk'/>
<target dev='xvda' bus='xen'/>
</disk>
<disk type='file' device='floppy'>
<source file='fully_qualified_path_to_floppy_disk'/>
<target dev='fda'/>
</disk> -->
<disk type='file' device='cdrom'>
<source file='fully_qualified_path_to_iso'/>
<target dev='hdc'/>
<readonly/>
</disk>
<disk type='block' device='disk'>
<driver name='qemu' type='raw'/>
<source dev='/dev/md/storage'/>
<target dev='vdb' bus='virtio'/>
</disk>
<interface type='bridge'>
<source bridge='xenbr0'/>
<script path='/etc/xen/scripts/vif-bridge'/>
</interface>
<serial type='pty'>
<source path='/dev/pts/3'/>
<target port='0'/>
</serial>
<input type='tablet' bus='usb'/>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes' keymap='en-us' listen='0.0.0.0'/>
</devices>
</domain>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment