Would you have any lead on how we could get ubuntu-frame to work from within a multipass VM?
Everything on this article of yours A simple GUI Shell for a Multipass VM works great! Some blog post allowed me to launch a Firefox window from within multipass on my Mac. And I was hoping I could push further by having ubuntu-frame (and wpe-webkit-mir-kiosk as described there) working from within a multipass VM. Despite many attempts, I couldn’t … Did I miss something?
To clarify: we have devices (micro PCs) running ubuntu-frame and wpe-webkit-mir-kiosk with great success. The intent of having webkit/kiosk working within a multipass VM is to simplify development phases: a developer could simulate those devices in a breeze, instead of having to have the real device on hand to work it out. And cloud-init will make it easily reproducible both locally and during deploy/install phases on actual devices (which is awesome!).
A colleague suggested an alternative approach: using a qemu VM. That would allow testing on Ubuntu Core and might also get you hardware graphics support (“There is experimental support for hardware OpenGL acceleration on Linux through Virgl”). This would be similar to:
Just to add to this, Multipass uses the same QEMU under the hood, but without exposing any graphical interface (as of right now), primarily because doing it consistently across platforms is a challenge.
I just confirmed Frame along with WPE works fine in a UTM “Linux” VM with the experimental graphical acceleration turned on, though I used Ubuntu Server as it’s apparently awkward (AKA I’ve not found such a possibility…) in UTM to use a preinstalled image.
@clorichel you may be able to get to where you need to be by “borrowing” the cloud-init ISO from Multipass (see ps aux | grep qemu while a Multipass VM is running) and giving that to the UTM machine along with supplying it with a disk image of choice.
Could you elaborate how you got Frame and WPE working on that Ubuntu Server VM on UTM though?
I could see the ubuntu-frame “graduated grey screen” but I had to:
apt install ubuntu-desktop on the VM server,
reboot,
snap install ubuntu-frame,
run ubuntu-frame on a terminal to see that grey screen window showing up on the VM desktop
And from there I can snap install WPE, but have no idea how to launch it. Plus I’m - obviously - totally missing something here, as I’d expect the VM to (not have ubuntu-desktop install and) automatically launch wpe so developers can just ssh -X in and have the simulated micro-PC device WPE screen.