Created
August 5, 2014 02:47
-
-
Save scottslowe/ca31c88a52284eb12ac2 to your computer and use it in GitHub Desktop.
This libvirt domain XML can be used to create a KVM guest for running a virtualized instance of Arista EOS (vEOS).
This file contains hidden or 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>veos</name> | |
<memory unit='KiB'>2097152</memory> | |
<currentMemory unit='KiB'>2097152</currentMemory> | |
<vcpu placement='static'>1</vcpu> | |
<resource> | |
<partition>/machine</partition> | |
</resource> | |
<os> | |
<type arch='x86_64' machine='pc-i440fx-1.5'>hvm</type> | |
<boot dev='cdrom'/> | |
<boot dev='hd'/> | |
</os> | |
<features> | |
<acpi/> | |
<apic/> | |
<pae/> | |
</features> | |
<clock offset='utc'/> | |
<on_poweroff>destroy</on_poweroff> | |
<on_reboot>restart</on_reboot> | |
<on_crash>restart</on_crash> | |
<devices> | |
<emulator>/usr/bin/qemu-system-x86_64</emulator> | |
<disk type='file' device='disk'> | |
<driver name='qemu' type='vmdk'/> | |
<source file='/var/lib/libvirt/images/eos-4.13.3-veos.vmdk'/> | |
<target dev='hda' bus='ide'/> | |
<alias name='ide0-0-0'/> | |
<address type='drive' controller='0' bus='0' target='0' unit='0'/> | |
</disk> | |
<disk type='file' device='cdrom'> | |
<driver name='qemu' type='raw'/> | |
<source file='/var/lib/libvirt/images/aboot-veos-2.0.8.iso'/> | |
<target dev='hdc' bus='ide'/> | |
<readonly/> | |
<alias name='ide0-1-0'/> | |
<address type='drive' controller='0' bus='1' target='0' unit='0'/> | |
</disk> | |
<controller type='usb' index='0'> | |
<alias name='usb0'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/> | |
</controller> | |
<controller type='pci' index='0' model='pci-root'> | |
<alias name='pci0'/> | |
</controller> | |
<controller type='ide' index='0'> | |
<alias name='ide0'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/> | |
</controller> | |
<interface type='network'> | |
<source network='br-ex' portgroup='management'/> | |
<model type='e1000'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> | |
</interface> | |
<interface type='network'> | |
<source network='br-ex' portgroup='trunked'/> | |
<model type='e1000'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> | |
</interface> | |
<interface type='network'> | |
<source network='br-ex' portgroup='trunked'/> | |
<model type='e1000'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> | |
</interface> | |
<serial type='pty'> | |
<source path='/dev/pts/4'/> | |
<target port='0'/> | |
<alias name='serial0'/> | |
</serial> | |
<console type='pty' tty='/dev/pts/4'> | |
<source path='/dev/pts/4'/> | |
<target type='serial' port='0'/> | |
<alias name='serial0'/> | |
</console> | |
<input type='mouse' bus='ps2'/> | |
<graphics type='vnc' port='5903' autoport='yes' listen='127.0.0.1'> | |
<listen type='address' address='127.0.0.1'/> | |
</graphics> | |
<video> | |
<model type='cirrus' vram='9216' heads='1'/> | |
<alias name='video0'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> | |
</video> | |
<memballoon model='virtio'> | |
<alias name='balloon0'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> | |
</memballoon> | |
</devices> | |
<seclabel type='dynamic' model='apparmor' relabel='yes'/> | |
</domain> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment