Comment 5 for bug 1630909

Revision history for this message
Christian Ehrhardt  (paelzer) wrote : Re: failing console access on s390x

With all mentioned before done I hit:
KVM_S390_MEM_OP failed: Cannot allocate memory
qemu-system-s390x: terminating on signal 15 from pid 56570
autopkgtest-virt-qemu: DBG: cleanup...
<VirtSubproc>: failure: timed out on client shared directory setup

A discussion turned out that pre qemu 2.7 s390 only had virtio-9p-ccw and no mapping to virtio-9p-pci. So for a while we might need to use the long opts for that.

In the following case the s390 version squashing the former and the new change:

@@ -532,10 +534,13 @@
             '-net', 'nic,model=virtio',
             '-net', 'user' + nic_opt,
             '-monitor', 'unix:%s/monitor,server,nowait' % workdir,
- '-serial', 'unix:%s/ttyS0,server,nowait' % workdir,
- '-serial', 'unix:%s/ttyS1,server,nowait' % workdir,
- '-virtfs',
- 'local,id=autopkgtest,path=%s,security_model=none,mount_tag=autopkgtest' % shareddir,
+ '-device', 'virtio-serial',
+ '-chardev', 'socket,path=%s/ttyS0,server,nowait,id=ttyS0' % workdir,
+ '-device', 'virtconsole,chardev=ttyS0,name=org.fedoraproject.console.ttyS0',
+ '-chardev', 'socket,path=%s/ttyS1,server,nowait,id=ttyS1' % workdir,
+ '-device', 'virtconsole,chardev=ttyS1,name=org.fedoraproject.console.ttyS1',
+ '-fsdev', 'local,id=autopkgtest,path=%s,security_model=none' % shareddir,
+ '-device', 'virtio-9p-ccw,fsdev=autopkgtest,mount_tag=autopkgtest',
             '-drive', 'file=%s,cache=unsafe,if=virtio,index=0' % overlay]
     for i, image in enumerate(args.image[1:]):
         argv.append('-drive')

That got me further again, but now I'm stopped at:
autopkgtest-virt-qemu: DBG: Copying host timezone America/New_York to VM
autopkgtest-virt-qemu: DBG: expect: "#"
autopkgtest-virt-qemu: DBG: expect: found ""b'#'""
autopkgtest-virt-qemu: DBG: expect: "/python"
autopkgtest-virt-qemu: DBG: expect: found ""b'/python'""
autopkgtest-virt-qemu: DBG: expect: "# "
autopkgtest-virt-qemu: DBG: expect: found ""b'# '""
autopkgtest-virt-qemu: DBG: expect: "# "
autopkgtest-virt-qemu: DBG: expect: found ""b'# '""
autopkgtest-virt-qemu: DBG: execute-timeout: /tmp/autopkgtest-virt-qemu.i1ulemwi/runcmd true
autopkgtest-virt-qemu: DBG: can connect to autopkgtest sh in VM
autopkgtest-virt-qemu: DBG: determine_normal_user: got user "ubuntu"
autopkgtest-virt-qemu: DBG: auxverb = ['/tmp/autopkgtest-virt-qemu.i1ulemwi/runcmd'], downtmp = None
autopkgtest-virt-qemu: DBG: execute-timeout: /tmp/autopkgtest-virt-qemu.i1ulemwi/runcmd mktemp --directory --tmpdir autopkgtest.XXXXXX
autopkgtest-virt-qemu: DBG: execute-timeout: /tmp/autopkgtest-virt-qemu.i1ulemwi/runcmd chmod 1777 /tmp/autopkgtest.MKTMnx
autopkgtest-virt-qemu: DBG: cleanup...
qemu-system-s390x: terminating on signal 15 from pid 56709
adt-run: DBG: TestbedFailure testbed gave exit status -13 after quit