Comment 7 for bug 1788432

Revision history for this message
Colin Ian King (colin-king) wrote :

Host information:

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.4 LTS
Release: 16.04
Codename: xenial

uname -a
Linux s2lp5 4.4.0-130-generic #156-Ubuntu SMP Thu Jun 14 09:18:59 UTC 2018 s390x s390x s390x GNU/Linux

qemu: 2.5+dfsg-5ubuntu10.30

this was created using uvt:

#!/bin/bash
#
# Quick and dirty script to create temporary guests which are reachable
# from the kernel VPN via uvt-kvm. After creation one has to login once
# via "virsh console <vm-name>" to figure out the ip address. :/

BASEDIR=$(dirname $0)

if [ "$1" = "" ]; then
 echo "$(basename $0) <vm-name>"
 exit 1
fi
VMNAME="$1"
shift
uvt-kvm create --cpu 2 --memory 2048 --disk 20 --password ubuntu \
 --template $BASEDIR/uvt-template.xml $VMNAME arch=s390x "$@"

uvt-template.xml:

<domain type="kvm">
    <os>
        <type arch="s390x" machine="s390-ccw-virtio">hvm</type>
    </os>
    <iothreads>1</iothreads>
    <on_poweroff>destroy</on_poweroff>
    <on_reboot>restart</on_reboot>
    <on_crash>preserve</on_crash>
    <devices>
        <emulator>/usr/bin/qemu-system-s390x</emulator>
        <interface type="direct">
            <source dev="encc000.2719" mode="bridge"/>
            <model type="virtio"/>
        </interface>
        <console type="pty">
            <target type="sclp"/>
        </console>
    </devices>
</domain>

Hope that's enough info