
* Split the network setup/teardown bits into their own scripts so you can shoot yourself in the foot with intention rather then unexpectedly. * Cowardly refuse to configure a network if the first interface name exists * Change the default bridge name to stxbr * Make the network variables all configurable via the environment * Don't make assumptions about where ISOIMAGE is located * Include a basic doc that outlines the differences from existing installation steps. (Needs more!) Change-Id: Ic46c03a09da97765b9f6bfe07e089efa38738993 Signed-off-by: Dean Troyer <dtroyer@gmail.com>
131 lines
4.3 KiB
XML
131 lines
4.3 KiB
XML
<domain type='kvm' id='164'>
|
|
<name>NAME</name>
|
|
<memory unit='KiB'>16777216</memory>
|
|
<currentMemory unit='KiB'>16777216</currentMemory>
|
|
<vcpu placement='static'>4</vcpu>
|
|
<resource>
|
|
<partition>/machine</partition>
|
|
</resource>
|
|
<os>
|
|
<type arch='x86_64' machine='pc-i440fx-xenial'>hvm</type>
|
|
</os>
|
|
<features>
|
|
<acpi/>
|
|
<apic/>
|
|
<pae/>
|
|
</features>
|
|
<cpu mode='host-model'>
|
|
<model fallback='allow'/>
|
|
<topology sockets='1' cores='4' threads='1'/>
|
|
<feature policy='optional' name='vmx'/>
|
|
<feature policy='optional' name='svm'/>
|
|
</cpu>
|
|
<clock offset='utc'/>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>restart</on_reboot>
|
|
<on_crash>destroy</on_crash>
|
|
<devices>
|
|
<emulator>/usr/bin/qemu-system-x86_64</emulator>
|
|
<disk type='file' device='disk'>
|
|
<driver name='qemu' type='qcow2'/>
|
|
<source file='DISK0'/>
|
|
<backingStore/>
|
|
<target dev='sda' bus='sata'/>
|
|
<boot order='1'/>
|
|
<alias name='sata0-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='DISK1'/>
|
|
<backingStore/>
|
|
<target dev='sdb' bus='sata'/>
|
|
<alias name='sata0-0-1'/>
|
|
<address type='drive' controller='0' bus='0' target='0' unit='1'/>
|
|
</disk>
|
|
<disk type='file' device='cdrom'>
|
|
<driver name='qemu' type='raw'/>
|
|
<source file='ISO'/>
|
|
<backingStore/>
|
|
<target dev='sdc' bus='sata'/>
|
|
<readonly/>
|
|
<boot order='2'/>
|
|
<alias name='sata0-0-2'/>
|
|
<address type='drive' controller='0' bus='0' target='0' unit='2'/>
|
|
</disk>
|
|
<controller type='usb' index='0'>
|
|
<alias name='usb'/>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
|
|
</controller>
|
|
<controller type='pci' index='0' model='pci-root'>
|
|
<alias name='pci.0'/>
|
|
</controller>
|
|
<controller type='sata' index='0'>
|
|
<alias name='sata0'/>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
|
|
</controller>
|
|
<interface type='bridge'>
|
|
<mac address='52:54:00:da:8c:ad'/>
|
|
<source bridge='%BR1%'/>
|
|
<target dev='vnet0'/>
|
|
<model type='e1000'/>
|
|
<alias name='net0'/>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
|
|
</interface>
|
|
<interface type='bridge'>
|
|
<mac address='52:54:00:da:48:ff'/>
|
|
<source bridge='%BR2%'/>
|
|
<target dev='vnet1'/>
|
|
<model type='e1000'/>
|
|
<boot order='3'/>
|
|
<alias name='net1'/>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
|
|
</interface>
|
|
<interface type='bridge'>
|
|
<mac address='52:54:00:54:e6:c2'/>
|
|
<source bridge='%BR3%'/>
|
|
<target dev='vnet2'/>
|
|
<model type='virtio'/>
|
|
<alias name='net2'/>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
|
|
</interface>
|
|
<interface type='bridge'>
|
|
<mac address='52:54:00:c5:62:6d'/>
|
|
<source bridge='%BR4%'/>
|
|
<target dev='vnet3'/>
|
|
<model type='virtio'/>
|
|
<alias name='net3'/>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
|
|
</interface>
|
|
<serial type='pty'>
|
|
<source path='/dev/pts/8'/>
|
|
<target port='0'/>
|
|
<alias name='serial0'/>
|
|
</serial>
|
|
<console type='pty' tty='/dev/pts/8'>
|
|
<source path='/dev/pts/8'/>
|
|
<target type='serial' port='0'/>
|
|
<alias name='serial0'/>
|
|
</console>
|
|
<input type='mouse' bus='ps2'/>
|
|
<input type='keyboard' bus='ps2'/>
|
|
<graphics type='vnc' port='5900' autoport='yes' listen='127.0.0.1' keymap='en-us'>
|
|
<listen type='address' address='127.0.0.1'/>
|
|
</graphics>
|
|
<video>
|
|
<model type='cirrus' vram='16384' 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='0x05' function='0x0'/>
|
|
</memballoon>
|
|
</devices>
|
|
<seclabel type='dynamic' model='apparmor' relabel='yes'>
|
|
<label>libvirt-6afab2ba-0ed0-45cb-b1bd-985e211a48de</label>
|
|
<imagelabel>libvirt-6afab2ba-0ed0-45cb-b1bd-985e211a48de</imagelabel>
|
|
</seclabel>
|
|
</domain>
|
|
|