Skip to content

Instantly share code, notes, and snippets.

@nemith
Created March 25, 2015 04:03
Show Gist options
  • Select an option

  • Save nemith/d728be041b419f7c89ec to your computer and use it in GitHub Desktop.

Select an option

Save nemith/d728be041b419f7c89ec to your computer and use it in GitHub Desktop.
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<name>vjunos0</name>
<!--aabbccdd-eeff-llll-mmxy-VJUNOS-->
<!--aabbccdd-eeff: mac base -->
<!--llll: mac length -->
<!--mm: member id -->
<!--x: b0b1: product_category b2b3: reboot reason -->
<!--y: reslotid: b0, in_issu: b1, vcmixed: b2, vcfabric: b3-->
<uuid>AABBCCDD-EEFF-42e3-0000-564a554e4f53</uuid>
<memory unit='MB'>2048</memory>
<memtune>
<hard_limit unit='MB'>2200</hard_limit>
</memtune>
<!-- cpu match='exact'>
<model fallback='allow'>SandyBridge</model>
</cpu -->
<vcpu placement='static' cpuset='2-3'>1</vcpu>
<cputune>
<vcpupin vcpu='0' cpuset='3'/>
</cputune>
<os>
<type arch='i686'>hvm</type>
<smbios mode='host'/>
</os>
<!--clock offset='utc'>
<timer name='rtc' tickpolicy='catchup' track='guest'>
<catchup threshold='123' slew='120' limit='10000'/>
</timer>
<timer name='pit' tickpolicy='delay'/>
</clock-->
<features> <acpi/> </features>
<on_poweroff>destroy</on_poweroff>
<on_reboot>destroy</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/bin/kvm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2' cache='writethrough'/>
<source file='/junos/images/0/vjunos.img'/>
<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='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/junos/images/0/vjunos-data.img'/>
<target dev='hdb' bus='ide'/>
<alias name='ide0-0-1'/>
<address type='drive' controller='0' bus='0' target='0' unit='1'/>
</disk>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/junos/images/0/vjunos-config.img'/>
<target dev='hdc' bus='ide'/>
<alias name='ide0-1-1'/>
<address type='drive' controller='0' bus='1' target='0' unit='0'/>
</disk>
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/junos/images/0/vjunos-platform.img'/>
<target dev='hdd' bus='ide'/>
<alias name='ide0-1-0'/>
<address type='drive' controller='0' bus='1' target='0' unit='1'/>
</disk>
<controller type='usb' index='0'>
<alias name='usb0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
</controller>
<controller type='ide' index='0'>
<alias name='ide0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
</controller>
<!--SERIAL PTY START TAG >
<serial type='pty'>
<target port='0'/>
</serial>
<SERIAL PTY END TAG -->
<!--SERIAL TCP START TAG >
<serial type='tcp'>
<source mode='bind' host='0.0.0.0' service='50000'/>
<protocol type='telnet'/>
<target port='0'/>
</serial>
<SERIAL TCP END TAG -->
<!--SERIAL DEV START TAG >
<serial type='dev'>
<source path='/dev/ttyS0'/>
<target port='1'/>
</serial>
<SERIAL DEV END TAG -->
<!-- Ethernet controller Gigabit Network Connection 0 -->
<!--ETH0 PORT START TAG >
<hostdev mode='subsystem' type='pci' managed='no'>
<source>
<address domain='0x000' bus='0x01' slot='0x00' function='0x1'/>
</source>
<alias name='eth0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</hostdev>
<ETH0 PORT END TAG -->
<interface type='bridge'>
<source bridge='virbr0'/>
<target dev='vnet0'/>
<model type='e1000'/>
<alias name='net0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</interface>
<interface type='bridge'>
<source bridge='ctrlbr0'/>
<target dev='vnet1'/>
<model type='e1000'/>
<alias name='net1'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x10' function='0x0'/>
</interface>
<!--ETH0 BR PORT START TAG >
<interface type='bridge'>
<source bridge='ethbr0'/>
<target dev='vnet2'/>
<model type='e1000'/>
<alias name='net2'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
<ETH0 BR PORT END TAG -->
<!-- Ethernet controller Gigabit Network Connection 1 -->
<!--DEBUG PORT START TAG >
<interface type='bridge'>
<source bridge='ethbr0'/>
<target dev='vnet3'/>
<model type='e1000'/>
<alias name='net3'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
</interface>
<DEBUG PORT END TAG -->
<!-- USB controller -->
<!--hostdev mode='subsystem' type='pci' managed='yes'>
<source>
<address domain='0x000' bus='0x00' slot='0x1d' function='0x0'/>
</source>
<alias name='usb-ctrl'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
</hostdev-->
<memballoon model='none'>
</memballoon>
</devices>
<qemu:commandline>
<qemu:arg value='-device'/>
<qemu:arg value='pci-hgcommdev,vmindex=0,bus=pci.0,addr=0x16'/>
</qemu:commandline>
<seclabel type='none'/>
</domain>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment