I see, then the permissions of the file on the host should be fine. The VM that runs the server should be fine also, if you have setup the server properly. I however do not know what settings you need to access the shm file from another Linux VM.
What happends when you run ./looking-glass on the client VM?
Sorry then I can’t help you further. I have no prior experience with a setup like this. But from what I read the first time you tried to run this command including the -f flag, it had problems with you shared memory file. I think the compilation went successful.
I am sure it still works, but something is setup wrong on your end. I am not a developer and don’t know what might have changed. I use only the simple setup, with client on host and server on guest. I have no experience with VM to VM sharing.
turns out it was DKMS’ fault all along!
somehow updating my kernel DKMS’ diddnt automatically re-inject the kvmfr module.
/dev/uio0 turn into /dev/kvmfr0 on my Linux VM.
now the problem is that Looking-glass crashes ta launch with:
This is caused by the drivers from AMD. If you install the firmware for the open source drivers on a recent kernel, 5.10+, then remove the amd provided drivers, update initramfs and you’re good to go.
Note that you should rename your shared memory device to /dev/shm/looking-glass for ease of upgrades in the future. You do not want shared memory in dev. That directory is secured for a reason.
Also, if cmake fails, you are missing things you need…
thank you for the link. but yeah…no.
changing my firmware files to those completely destroys the entire system’s graphical performance.
surely there must be a way to use looking glass client without also making the system unusable for 3D acceleration.
debian 11
linux 5.10
mesa 21.1
That’s funny. I use the same files on my setup and it works fine. It also works for many other people as that is a guide from Level1.
You need to remove the AMD provided drivers FIRST before you install that firmware and update initramfs with the new driver firmware. Then reboot and see. If you don’t have graphical performance, check to see if it gives the firmware error on initramfs -u. If it does, you popped them into the wrong spot.
The open source drivers are faster than the AMD provided ones on this system.
after upgrading to linux 5.13, same results. the binaries in that link just kill performance. no errors when making my initramfs, no errors in dmesg when using those files. it boots without error, but the performance is unbearable.
update: using some mesa debugging enviroment variables and the firmware that still allows for a usable desktop i got
libEGL debug: EGL user error 0x3008 (EGL_BAD_DISPLAY) in eglQueryString
Incorrect, he is using the kvmfr kernel module which provides the virtual memory via /dev/kvmfr0 (formally /dev/uio0) for his VM to VM configuration. This is a device node and can not be renamed/moved.
Just a note, I’m setting up Looking Glass on a new machine. Building the bleeding-edge client on a fresh Ubuntu 21.10 install, a few build dependencies were missing. Took a few notes, here they are:
sudo apt install git before git command (duh)
cmake:
No CMAKE_CXX_COMPILER could be found.
need sudo apt-get install build-essential
No package ‘xkbcommon’ found sudo apt-get install -y libxkbcommon-dev
No package ‘xcursor’ found sudo apt install libxcursor-dev
No package ‘xpresent’ found sudo apt install libxpresent-dev
make
LookingGlass/client/include/egl_dynprocs.h:28:10: fatal error: GLES3/gl3.h: No such file or directory sudo apt install libgles-dev
no replies necessary (flames or thanks). just thought the developers might want to update the build instructions page and thought it might help.
I compile Looking Glass host and guest automatically in here to try to simplify things for the user.
Eventually I think it should be possible to modify the Windows installer ISO file to include Looking Glass and the IVMSHMEM automatically using something like this:
I will try to take a stab at that sometime before long. Of course the user will still need to bring their own Windows ISO and license key.