ubuntu16041.xml.install
[root@kvm1awb images]# cat ubuntu16041.xml.install
<domain type="kvm">
<name>ubuntu16041</name>
<description> Ubuntu 16.04.1 LTS VM</description>
<memory>2097152</memory>
<vcpu>2</vcpu>
<cputune> <shares>2048</shares> </cputune>
<os>
<type arch="s390x" machine="s390-ccw-virtio">hvm</type>
<!-- kernel and initrd lines need to be removed after installation -->
<kernel>/var/lib/libvirt/images/kernel.ubuntu</kernel>
<initrd>/var/lib/libvirt/images/initrd.ubuntu</initrd>
<cmdline>netcfg/disable_dhcp=true</cmdline>
<boot dev="hd"/>
</os>
<clock offset='utc'/>
<iothreads>2</iothreads>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>preserve</on_crash>
<devices>
<emulator>/usr/bin/qemu-system-s390x</emulator>
<!-- QCOW2 file of the KVM guest -->
<disk type="file" device="disk">
<driver name="qemu" type="qcow2"/>
<source file="/var/lib/libvirt/images/ubuntu16041.img"/>
<target dev="vda" bus="virtio"/>
<address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0001'/>
</disk>
<!-- openvswitch definition -->
<interface type='bridge'>
<source bridge='vswitch_data'/>
<virtualport type="openvswitch"/>
<model type='virtio'/>
</interface>
<console type="pty">
<target type="sclp" port="0"/>
</console>
</devices>
</domain>