Last active
August 29, 2015 14:21
-
-
Save sora/4106765c620b5a51a98f to your computer and use it in GitHub Desktop.
qemu-rocker4p.xml
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='qemu' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'> | |
<name>vm1</name> | |
<uuid>04b6918d-051b-4794-b526-c181694e5b83</uuid> | |
<memory unit='KiB'>1048576</memory> | |
<currentMemory unit='KiB'>1048576</currentMemory> | |
<vcpu placement='static'>1</vcpu> | |
<os> | |
<type arch='x86_64' machine='pc-0.11'>hvm</type> | |
<boot dev='cdrom'/> | |
<bootmenu enable='yes'/> | |
</os> | |
<features> | |
<acpi/> | |
<apic/> | |
<pae/> | |
</features> | |
<clock offset='localtime'/> | |
<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='qcow2'/> | |
<source file='/root/qemu-rocker/qemu-rocker.qcow2'/> | |
<target dev='hda' bus='virtio'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> | |
</disk> | |
<controller type='usb' index='0'> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/> | |
</controller> | |
<controller type='ide' index='0'> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/> | |
</controller> | |
<controller type='pci' index='0' model='pci-root'/> | |
<serial type='pty'> | |
<target port='0'/> | |
</serial> | |
<console type='pty'> | |
<target type='serial' port='0'/> | |
</console> | |
<input type='tablet' bus='usb'/> | |
<input type='mouse' bus='ps2'/> | |
<input type='keyboard' bus='ps2'/> | |
<graphics type='vnc' port='6000' autoport='no' listen='0.0.0.0' keymap='en'> | |
<listen type='address' address='0.0.0.0'/> | |
</graphics> | |
<sound model='es1370'> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> | |
</sound> | |
<video> | |
<model type='cirrus' vram='16384' 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='0x06' function='0x0'/> | |
</memballoon> | |
</devices> | |
<qemu:commandline> | |
<qemu:arg value='-device'/> | |
<qemu:arg value='rocker,name=sw1,len-ports=4,ports[0]=dev0,ports[1]=dev1,ports[2]=dev2,ports[3]=dev3'/> | |
<qemu:arg value='-netdev'/> | |
<qemu:arg value='socket,udp=127.0.0.1:1204,localaddr=127.0.0.1:1215,id=dev0'/> | |
<qemu:arg value='-netdev'/> | |
<qemu:arg value='socket,udp=127.0.0.1:1205,localaddr=127.0.0.1:1219,id=dev1'/> | |
<qemu:arg value='-netdev'/> | |
<qemu:arg value='socket,udp=127.0.0.1:1206,localaddr=127.0.0.1:1211,id=dev2'/> | |
<qemu:arg value='-netdev'/> | |
<qemu:arg value='socket,udp=127.0.0.1:1207,localaddr=127.0.0.1:1223,id=dev3'/> | |
</qemu:commandline> | |
</domain> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment