Created
August 25, 2014 22:25
-
-
Save galvarado/54dc19e43b08f16e50e0 to your computer and use it in GitHub Desktop.
Libvirt XML example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<domain type='kvm'> | |
<name>instance-00000xxx</name> | |
<uuid>xxxxxxxxxxxxxxxxxx</uuid> | |
<memory>1048576</memory> | |
<currentMemory>1048576</currentMemory> | |
<vcpu>1</vcpu> | |
<os> | |
<type arch='x86_64' machine='pc-1.0'>hvm</type> | |
<boot dev='hd'/> | |
</os> | |
<features> | |
<acpi/> | |
</features> | |
<clock offset='utc'/> | |
<on_poweroff>destroy</on_poweroff> | |
<on_reboot>restart</on_reboot> | |
<on_crash>destroy</on_crash> | |
<devices> | |
<emulator>/usr/bin/kvm</emulator> | |
<disk type='file' device='disk'> | |
<driver name='qemu' type='qcow2' cache='none'/> | |
<source file='/var/lib/nova/instances/instance-00000xxx/disk'/> | |
<target dev='vda' bus='virtio'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> | |
</disk> | |
<interface type='bridge'> | |
<mac address='fa:16:3e:64:b6:90'/> | |
<source bridge='br100'/> | |
<model type='virtio'/> | |
<filterref filter='nova-instance-instance-00000xxx-fa163e64b690'> | |
<parameter name='DHCPSERVER' value='10.5.96.24'/> | |
<parameter name='IP' value='10.5.96.44'/> | |
</filterref> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> | |
</interface> | |
<serial type='file'> | |
<source path='/var/lib/nova/instances/instance-00000xxx/console.log'/> | |
<target port='0'/> | |
</serial> | |
<serial type='pty'> | |
<target port='1'/> | |
</serial> | |
<console type='file'> | |
<source path='/var/lib/nova/instances/instance-00000xxx/console.log'/> | |
<target type='serial' port='0'/> | |
</console> | |
<input type='tablet' bus='usb'/> | |
<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='0x05' function='0x0'/> | |
</memballoon> | |
</devices> | |
</domain> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment