Script does not detect qemu-virgil
jonnius opened this issue ยท 21 comments
Start fails with:
$ utqemu start
WARNING: Image format was not specified for '/home/jonatan/snap/utqemu/common/ubuntu-touch-mainline-generic-amd64.img' and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.
qemu-system-x86_64: -device virtio-vga,virgl=on: Property '.virgl' not found
Any ideas?
It seems like it isn't using qemu-virgil
for some reason. I got past it by hacking the following fix:
sudo snap install qemu-virgil --devmode
qemu-virgil \
-enable-kvm \
-m 2G \
-device virtio-vga,virgl=on \
-display gtk,gl=on \
-netdev user,id=ethernet.0,hostfwd=tcp::10022-:22 \
-device rtl8139,netdev=ethernet.0 \
ubuntu-touch-mainline-generic-amd64.img
-display sdl
didn't work for me.
I got stuck at Starting virtual private network daemon(s)
, though.
I installed qemu-virgil (snap install qemu-virgil
). The check for qemu-virgil fails. If I run the check on command line, it succeeds. Probably somehow related to snap confinement?
Ah, I did install it unconfined (--devmode
- https://askubuntu.com/a/783946)
Ah, I did install it unconfined (
--devmode
- https://askubuntu.com/a/783946)
I tried snap install qemu-virgil --devmode
, but that does not change that the check for qemu-virgil fails.
It seems like it isn't using
qemu-virgil
for some reason. I got past it by hacking the following fix:sudo snap install qemu-virgil --devmode qemu-virgil \ -enable-kvm \ -m 2G \ -device virtio-vga,virgl=on \ -display gtk,gl=on \ -netdev user,id=ethernet.0,hostfwd=tcp::10022-:22 \ -device rtl8139,netdev=ethernet.0 \ ubuntu-touch-mainline-generic-amd64.img
-display sdl
didn't work for me.I got stuck at
Starting virtual private network daemon(s)
, though.
As I said, it didn't work via utqemu
, so I had to run qemu-virgil
standalone to get it started (up to the VPN daemon error).
Cool! For me it starts fine via
qemu-virgil -enable-kvm -m 2G -device virtio-vga,virgl=on -display sdl,gl=on -netdev user,id=ethernet.0,hostfwd=tcp::10022-:22 -device rtl8139,netdev=ethernet.0 ~/snap/utqemu/common/ubuntu-touch-mainline-generic-amd64.img
But this issue is about fixing the snap package, I'd say.
The question is: if it does not work with qemu-system-x86_64
at all and seems to require qemu-virgil
, why is qemu-system-x86_64
the default for the qemu call then in the script?
I'm not sure. Perhaps it assumes that the system QEMU is built with virgl support?
Isn't the whole point of snaps that you don't need to make assumptions on what is installed in the system?
Yup, it should be. Not sure why it isn't the case for utqemu
.
i was able to launch it using the above command manually after installing qemu-virgil in devmode. the mouse is a bit finicky but works
i was able to launch it using the above command manually after installing qemu-virgil in devmode. the mouse is a bit finicky but works
Interestingly it also works for me now. Just trying to use utqemu start
to see if even that works properly now.
Just trying to use
utqemu start
to see if even that works properly now.
It doesn't work. I guess we'll have to use the qemu-virgil
command for now (the utqemu start
command has to be run initially to download the ubuntu-touch-mainline-generic-amd64.img
file). Full instructions should be something like this:
snap install utqemu --edge
sudo snap install qemu-virgil --devmode
utqemu start
qemu-virgil -enable-kvm -m 2G -device virtio-vga,virgl=on -display sdl,gl=on -netdev user,id=ethernet.0,hostfwd=tcp::10022-:22 -device rtl8139,netdev=ethernet.0 ~/snap/utqemu/common/ubuntu-touch-mainline-generic-amd64.img
Just trying to use
utqemu start
to see if even that works properly now.It doesn't work. I guess we'll have to use the
qemu-virgil
command for now (theutqemu start
command has to be run initially to download theubuntu-touch-mainline-generic-amd64.img
file). Full instructions should be something like this:snap install utqemu --edge sudo snap install qemu-virgil --devmode utqemu start qemu-virgil -enable-kvm -m 2G -device virtio-vga,virgl=on -display sdl,gl=on -netdev user,id=ethernet.0,hostfwd=tcp::10022-:22 -device rtl8139,netdev=ethernet.0 ~/snap/utqemu/common/ubuntu-touch-mainline-generic-amd64.img
This doesn't end up working for me, I end up getting an error like this:
Couldn't open libEGL.so.1: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /var/lib/snapd/lib/gl/libEGL.so.1)
@CharmsyPone These types of errors are usually caused by there being a version mismatch for that library. I'm not sure exactly how to fix it, but upgrading your packages may help. Alternatively, you could ask on forums dedicated to your distro where you'll like get a far better answer.
@abmyii I figured I would've gotten a response like this, I should mention the package is fully updated. I'm running on Arch Linux, not any particular distro just plain old Arch. I guess I could try asking around on some Arch subreddit or something, but I'm not sure if that'd lead anywhere useful since I can't even find this error anywhere else in the first place that doesn't say "upgrade your packages" when they're already upgraded.
@abmyii I figured I would've gotten a response like this, I should mention the package is fully updated. I'm running on Arch Linux, not any particular distro just plain old Arch. I guess I could try asking around on some Arch subreddit or something, but I'm not sure if that'd lead anywhere useful since I can't even find this error anywhere else in the first place that doesn't say "upgrade your packages" when they're already upgraded.
You wouldn't like how I fix such errors personally, so I didn't think it was worth mentioning! If you are up for it, you could try messing around with the libraries - such as replacing the /var/lib/snapd/lib/gl/libEGL.so.1
lib with a symlink to the system version, which should be linked against the correct libc version).
Don't hold me liable if anything goes wrong!
guess qemu-virgil should be shipped in the snap?
so appearently it can work without virgil if those changes are made, if i do it on my device i do get gtk support is disabled tho
I was running into this issue and changing the device option of the script to
-device virtio-vga-gl
fixed the issue. I'm running on Arch Linux and got this tip from https://wiki.archlinux.org/title/QEMU#virtio