Running in a VM (qemu/kvm) cannot run kate or qterminal in miral-desktop

Bug #1646532 reported by Víctor R. Ruiz
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mir
Expired
Undecided
Unassigned
MirAL
Invalid
High
Unassigned

Bug Description

NB This is running in a VM (qemu/kvm) - real h/w works.

- Install qtubuntu-desktop, qterminal, kate, mir-graphics-drivers-desktop, mir-demos

Test case:

$ sudo mir_demo_server --vt 4 --launch qterminal

Expected result.
- qterminal be displayed correctly in a window.

Actual result.
- Empty window displayed.

Original test case:

- Install qtubuntu-desktop, qterminal, kate, mir-graphics-drivers-desktop
- Run $ miral-desktop -socket ${XDG_RUNTIME_DIR}/not_mir_socket -launcher 'gnome-terminal --app-id com.canonical.miral.Terminal'
- Run kate (or qterminal) from there.

Expected result.
- kate (or qterminal) must be displayed correctly in a window.

Actual result.
- Empty screen displayed.

Tested in Xenial + overlay + miral-desktop script from 0.5 release. Also tested with silo for 0.5 release, same results.

libmiral1: 0.4.0+16.04+04.20161104-0ubuntu1
miral-examples: 0.4.0+16.04+04.20161104-0ubuntu1

Revision history for this message
Víctor R. Ruiz (vrruiz) wrote :
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

I've updated my X+O box and tried this. Unfortunately, qterminal and kate both work for me.

Could you attach the console output to the log.

Changed in miral:
status: New → Incomplete
importance: Undecided → High
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

Works on real hardware for both X+O and Z.

It may be a GL on VM problem. *Some* of these are fixed in Mir-0.25, so worth retesting with silo 2180.

Revision history for this message
Víctor R. Ruiz (vrruiz) wrote :
Revision history for this message
Víctor R. Ruiz (vrruiz) wrote :
description: updated
summary: - Cannot run kate or qterminal in miral-desktop
+ Running in a VM (qemu/kvm) cannot run kate or qterminal in miral-desktop
Changed in miral:
status: Incomplete → Invalid
Revision history for this message
Gerry Boland (gerboland) wrote :

/me unable to reproduce on Zenial and X+O natively.

Are you using a VM?

Revision history for this message
Víctor R. Ruiz (vrruiz) wrote :

Yes, qemu/kvm.

Revision history for this message
Andreas Pokorny (andreas-pokorny) wrote :

What graphics emulation setup do you use inside qemu/kvm?
In general QXL should work.

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

Here's what <vigo_> shared with me:

To prepare an image for testing I follow these steps:

Create an image for a xenial + stable-overlay ppa + unity8-desktop-session:
$ qemu-img create -f qcow2 kvm-images/xenial-base.qcow2 30G

Run a xenial image in qemu and install it in the new image created:
$ kvm -m 2048 -vga qxl -cpu host --soundhw ac97 -cdrom ~/Downloads/ubuntu-16.04.1-desktop-amd64.iso -hda kvm-images/xenial-base.qcow2 -boot c

Once installed we should install both stable-overlay and unity8-desktop-session:
$ sudo add-apt-repository ppa:ci-train-ppa-service/stable-phone-overlay
$ sudo apt-get update
---
$ sudo apt install unity8-desktop-session

Now reboot to check that unity8 is available to login and verify it works properly.

I run an image like the one described with the -snapshot argument on kvm-qemu to test silos in xenial+overlay. Rebooting is possible within the VM so you can install silos or whatever you need for testing, and stop the VM when you’re done, this way the based image for xenial+overlay remains clean.

Is also a good practice to run the image without the snapshot argument in order to update your base image

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Incomplete (or Invalid) for Mir.

Mir has no say in the contents of your windows. If it's partially being rendered then it's an app or toolkit or graphics driver bug (Qemu's graphics driver, not Mir's).

Changed in mir:
status: New → Incomplete
Revision history for this message
Andreas Pokorny (andreas-pokorny) wrote :

With a zesty vm image that I use for testing this works fine here. It does select QXL and gets unity8 and also miral-shell running.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Mir because there has been no activity for 60 days.]

Changed in mir:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.