Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script does not detect qemu-virgil #7

Open
jonnius opened this issue Oct 7, 2020 · 21 comments
Open

Script does not detect qemu-virgil #7

jonnius opened this issue Oct 7, 2020 · 21 comments

Comments

@jonnius
Copy link
Contributor

jonnius commented Oct 7, 2020

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?

@abmyii
Copy link

abmyii commented Oct 7, 2020

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.

@jonnius
Copy link
Contributor Author

jonnius commented Oct 8, 2020

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?

@abmyii
Copy link

abmyii commented Oct 8, 2020

Ah, I did install it unconfined (--devmode - https://askubuntu.com/a/783946)

@jonnius
Copy link
Contributor Author

jonnius commented Oct 8, 2020

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.

@abmyii
Copy link

abmyii commented Oct 8, 2020

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).

@jonnius
Copy link
Contributor Author

jonnius commented Oct 8, 2020

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.

@jonnius jonnius changed the title Property '.virgl' not found Script does not detect qemu-virgil Oct 8, 2020
@jonnius
Copy link
Contributor Author

jonnius commented Oct 8, 2020

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?

@abmyii
Copy link

abmyii commented Oct 8, 2020

I'm not sure. Perhaps it assumes that the system QEMU is built with virgl support?

@jonnius
Copy link
Contributor Author

jonnius commented Oct 8, 2020

Isn't the whole point of snaps that you don't need to make assumptions on what is installed in the system?

@abmyii
Copy link

abmyii commented Oct 8, 2020

Yup, it should be. Not sure why it isn't the case for utqemu.

@jwarrior319
Copy link

jwarrior319 commented Mar 26, 2021

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

@abmyii
Copy link

abmyii commented Mar 26, 2021

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.

@abmyii
Copy link

abmyii commented Mar 26, 2021

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

@EeveeEuphoria
Copy link

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

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)

@abmyii
Copy link

abmyii commented May 25, 2021

@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.

@EeveeEuphoria
Copy link

@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
Copy link

abmyii commented May 25, 2021

@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!

@Fuseteam
Copy link

guess qemu-virgil should be shipped in the snap?

@Fuseteam
Copy link

wellllll looks like this is related to #9

@Fuseteam
Copy link

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

@karmanyaahm
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants