Skip to content

Instantly share code, notes, and snippets.

@abbbi
Created June 30, 2021 09:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abbbi/56dab2ea459dc4b49f7d3aaea1a973dd to your computer and use it in GitHub Desktop.
Save abbbi/56dab2ea459dc4b49f7d3aaea1a973dd to your computer and use it in GitHub Desktop.
diff
--- libvirt5.xml 2021-06-30 11:33:12.796353471 +0200
+++ libvirt7.xml 2021-06-30 11:33:24.072141548 +0200
@@ -1,4 +1,4 @@
-<domain type='kvm' id='3'>
+<domain type='kvm'>
<name>dc01</name>
<uuid>1718d28f-00b9-4b1c-be6f-51ed3423bb8e</uuid>
<memory unit='KiB'>6291456</memory>
@@ -53,7 +53,6 @@
<backingStore/>
<target dev='vda' bus='virtio'/>
<boot order='1'/>
- <alias name='virtio-disk0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
</disk>
<disk type='file' device='disk'>
@@ -61,106 +60,73 @@
<source file='/vm/ata2018/dc01-2.raw'/>
<backingStore/>
<target dev='vdb' bus='virtio'/>
- <alias name='virtio-disk1'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</disk>
<controller type='usb' index='0' model='ich9-ehci1'>
- <alias name='usb'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x7'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci1'>
- <alias name='usb'/>
<master startport='0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci2'>
- <alias name='usb'/>
<master startport='2'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x1'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci3'>
- <alias name='usb'/>
<master startport='4'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x2'/>
</controller>
- <controller type='pci' index='0' model='pci-root'>
- <alias name='pci.0'/>
- </controller>
+ <controller type='pci' index='0' model='pci-root'/>
<controller type='ide' index='0'>
- <alias name='ide'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
</controller>
<controller type='virtio-serial' index='0'>
- <alias name='virtio-serial0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
</controller>
- <controller type='fdc' index='0'>
- <alias name='fdc0'/>
- </controller>
+ <controller type='fdc' index='0'/>
<interface type='bridge'>
<mac address='52:54:00:bd:45:7a'/>
<source bridge='br0'/>
- <target dev='vnet0'/>
<model type='virtio'/>
- <alias name='net0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
<serial type='pty'>
- <source path='/dev/pts/2'/>
<target type='isa-serial' port='0'>
<model name='isa-serial'/>
</target>
- <alias name='serial0'/>
</serial>
- <console type='pty' tty='/dev/pts/2'>
- <source path='/dev/pts/2'/>
+ <console type='pty'>
<target type='serial' port='0'/>
- <alias name='serial0'/>
</console>
<channel type='spicevmc'>
- <target type='virtio' name='com.redhat.spice.0' state='disconnected'/>
- <alias name='channel0'/>
+ <target type='virtio' name='com.redhat.spice.0'/>
<address type='virtio-serial' controller='0' bus='0' port='1'/>
</channel>
<input type='tablet' bus='usb'>
- <alias name='input0'/>
<address type='usb' bus='0' port='1'/>
</input>
- <input type='mouse' bus='ps2'>
- <alias name='input1'/>
- </input>
- <input type='keyboard' bus='ps2'>
- <alias name='input2'/>
- </input>
- <graphics type='spice' port='5900' autoport='yes' listen='127.0.0.1'>
+ <input type='mouse' bus='ps2'/>
+ <input type='keyboard' bus='ps2'/>
+ <graphics type='spice' autoport='yes' listen='127.0.0.1'>
<listen type='address' address='127.0.0.1'/>
<image compression='off'/>
</graphics>
<video>
<model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
- <alias name='video0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>
<redirdev bus='usb' type='spicevmc'>
- <alias name='redir0'/>
<address type='usb' bus='0' port='2'/>
</redirdev>
<redirdev bus='usb' type='spicevmc'>
- <alias name='redir1'/>
<address type='usb' bus='0' port='3'/>
</redirdev>
<memballoon model='virtio'>
- <alias name='balloon0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
</memballoon>
</devices>
- <seclabel type='dynamic' model='apparmor' relabel='yes'>
- <label>libvirt-1718d28f-00b9-4b1c-be6f-51ed3423bb8e</label>
- <imagelabel>libvirt-1718d28f-00b9-4b1c-be6f-51ed3423bb8e</imagelabel>
- </seclabel>
- <seclabel type='dynamic' model='dac' relabel='yes'>
- <label>+108:+115</label>
- <imagelabel>+108:+115</imagelabel>
- </seclabel>
+ <seclabel type='dynamic' model='apparmor' relabel='yes'/>
+ <seclabel type='dynamic' model='dac' relabel='yes'/>
</domain>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment