Closed mikeactual closed 2 years ago
It looks like UTM 4.0 changes could have some effect on this issue. I'll try firefox (and vs code which also doesn't work in the 3.2.4 vm) on the pre-release. If anything interesting happens I'll report back here.
Regards, mike
I installed UTM Version 4.0.1 (60). The release notes state that Ubuntu Server will not install under this version of the beta. I let the pre-release rip on the existing ubuntu vm. There was no appreciable difference to my eye anyway. Firefox crashes (see below) and vs code opens a completely black window.
I'm happy to try or test anything else if it'll help.
michael@jammy-desk-vm:~$ neofetch && firefox --safe-mode michael@jammy-desk-vm
OS: Ubuntu 22.04.1 LTS aarch64 Host: QEMU Virtual Machine virt-7.0 Kernel: 5.15.0-46-generic Uptime: 2 mins Packages: 1698 (dpkg), 9 (snap) Shell: bash 5.1.16 Resolution: 2940x1840 GPU: 00:01.0 Red Hat, Inc. Virtio GPU Memory: 892MiB / 3908MiB [---============] GPU Driver: virtio-pci Local IP: 192.168.1.206
update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/share/gtk-doc /usr/share/gtk-doc none bind,ro 0 0): cannot open directory "/var/lib": permission denied update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/share/libreoffice/help /usr/share/libreoffice/help none bind,ro 0 0): cannot create directory "/usr/share/libreoffice/help": permission denied update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/share/xubuntu-docs /usr/share/xubuntu-docs none bind,ro 0 0): cannot open directory "/var/lib": permission denied Gtk-Message: 13:58:04.316: Failed to load module "canberra-gtk-module" Gtk-Message: 13:58:04.320: Failed to load module "canberra-gtk-module" [GFX1-]: glxtest: VA-API test failed: failed to initialise VAAPI connection. ATTENTION: default value of option mesa_glthread overridden by environment. michael@jammy-desk-vm:~$ code michael@jammy-desk-vm:~$
I experience the same issue with UTM 4.0.1 (60) running Ubuntu 22.04 Desktop.
@mikeactual Please add your VM config, else I can't offer any suggestions. Thanks.
Here is the config from the vm that has been run under UTM 4.0.1. I still have a copy of the clean 3.2.4 vm. Let me know if it'll help to see that config.
Thank you for your attention. It's much appreciated.
Regards, mike
@mikeactual Have you tried using a non-GL GPU? For example “virtio-ramfb”?
@conath That fixed me right up. Thank you for the pointer. Much appreciated.
Well, non-GL GPU option allows Firefox (and Chromium) to start, but FPS is extremely low (2-5 FPS on https://webglsamples.org/aquarium/aquarium.html). Interestingly, Firefox in Ubuntu 22.04 LiveCD environment works just fine without residing to falling back to non-GL GPU
@frol Agreed, it's slow but it does work. It's ok for development. For performance I can flip out to the mac host or move over to Linux on a bare metal desktop.
May I ask you where you found an Ubuntu 22.04 arm64 LiveCD with Ubuntu Desktop? I'd like to try that out.
Regards, mike
@mikeactual https://cdimage.ubuntu.com/jammy/daily-live/current/ (username: ubuntu, password is blank)
Oh, well, ubuntu LiveCD is running Xorg, and after installation it defaults to Wayland, but if you choose Xorg at the login (in the bottom right corner on the password screen), GL acceleration works perfectly fine, and Firefox runs at 23 FPS on that benchmark page (much more usable than 2 FPS as you may imagine)
@frol Thanks for the pointer. I could swear that the desktop edition wasn't there last time I looked. Well it is now. Cool. Also I can confirm that switching to Xorg enables GL acceleration on my rig as well. The graphics controller shows up as virgl (ANGLE (Apple, Apple M2, OpenGL 4.1 Metal - 76.3)). Nice catch. Thanks again. You are on a roll.
Just to add you can disable wayland on a config, to login automatically to xorg.
Contributor
Thanks a lot, would you please explain matter.
I also encountered gfx glitches (infinity mirrro) when starting Firefox on Ubuntu ARM when I logged in with Wayland. No matter which display I selected for the VM.
If I logged in with XOrg, the glitches went away but Terminal and Files were full black.
I ended up fixing the issue by starting Firefox with MOZ_ENABLE_WAYLAND=1
and logging in with Wayland. Everything works now.
@mikeactual Have you tried using a non-GL GPU? For example “virtio-ramfb”?
Thank you. This fixed for me
You can select the GPU when you edit the VM configuration (right click on it).
On Fri, Feb 10, 2023, 12:48 PM Afereti Pama @.***> wrote:
non-GL GPU
Can someone tell me how to do this please? Is it something I install?
— Reply to this email directly, view it on GitHub https://github.com/utmapp/UTM/issues/4300#issuecomment-1426327567, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJJXED4NACNYZSTDDDRDI3WW2SQFANCNFSM56TVT6KA . You are receiving this because you commented.Message ID: @.***>
Thanks! Worked straight away
On Sat, 11 Feb 2023 at 10:18 AM, Fabien @.***> wrote:
You can select the GPU when you edit the VM configuration (right click on it).
On Fri, Feb 10, 2023, 12:48 PM Afereti Pama @.***> wrote:
non-GL GPU
Can someone tell me how to do this please? Is it something I install?
— Reply to this email directly, view it on GitHub https://github.com/utmapp/UTM/issues/4300#issuecomment-1426327567, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAJJXED4NACNYZSTDDDRDI3WW2SQFANCNFSM56TVT6KA
. You are receiving this because you commented.Message ID: @.***>
— Reply to this email directly, view it on GitHub https://github.com/utmapp/UTM/issues/4300#issuecomment-1426358286, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATBCGBLHTCMBHOBK3LZOW5TWW2WBLANCNFSM56TVT6KA . You are receiving this because you commented.Message ID: @.***>
Should we re-open this issue? There is a workaround but not having GPU acceleration is a problem.
I agree. I don't know how, but the first ubuntu jammy VM I made with utm didn't have this error. Trying to recreate now
I know this is closed: has a new issue been opened yet?
Here is some system information and the command line results:
michael@jammy-desk-vm:~$ neofetch && firefox --safe-mode
OS: Ubuntu 22.04.1 LTS aarch64 Host: QEMU Virtual Machine virt-7.0 Kernel: 5.15.0-46-generic Uptime: 47 secs Packages: 1698 (dpkg), 9 (snap) Shell: bash 5.1.16 Resolution: 2940x1840 GPU: 00:01.0 Red Hat, Inc. Virtio GPU Memory: 1004MiB / 3908MiB [---============] GPU Driver: virtio-pci Local IP: 192.168.1.206
update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/share/gtk-doc /usr/share/gtk-doc none bind,ro 0 0): cannot open directory "/var/lib": permission denied update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/share/libreoffice/help /usr/share/libreoffice/help none bind,ro 0 0): cannot create directory "/usr/share/libreoffice/help": permission denied update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/share/xubuntu-docs /usr/share/xubuntu-docs none bind,ro 0 0): cannot open directory "/var/lib": permission denied Gtk-Message: 15:16:35.291: Failed to load module "canberra-gtk-module" Gtk-Message: 15:16:35.295: Failed to load module "canberra-gtk-module" [GFX1-]: glxtest: VA-API test failed: failed to initialise VAAPI connection. ATTENTION: default value of option mesa_glthread overridden by environment. michael@jammy-desk-vm:~$
I'm running UTM Version 3.2.4 (58) under macOS version 12.5 (21G72) on an M2 macbook air.
Let me know if I can provide any more info. If this is a known issue or bug from somewhere else in the stack please point me to that and I'll go sniff around there.
Regards, mike