Return to Level1Techs.com

Looking Glass - Triage

helpdesk
lookingglass
#1705

If you’re not using spice then add -s ALL.

EDIT: Also, make sure you read ALL the switches available, get familiar with them.

2 Likes

#1706

worked!!!
thank you so much

0 Likes

#1707

thank you @lessaj @sgtawesomesauce and @gnif

3 Likes

#1708

Ok so I did cpu pinning and I also upgraded my qemu to 3.1 and I saw a large improvement in my vm on another monitor but LG is still stuttering a lot.

@gnif

0 Likes

#1709

Im trying to use spice in looking glass and i added a spice channel in virt manager, but i cant seem to connet to it

0 Likes

#1710

What’s your error exactly?

0 Likes

#1711

im not exactly sure,

when i added it in virt manager its port is 5900 but i dont know how to add the host to the spice connection. is there something im doing wrong
when i type
./looking-glass-client -c 192.168.122.149 -p 5900
the screen comes up but no image from the vm

0 Likes

#1712

Does it come up with the purple waiting screen?

0 Likes

#1713

yes
it does

0 Likes

#1714

What does the terminal say at that time?

0 Likes

#1715

[[email protected] client]$ ./looking-glass-client -c 192.168.122.149 -p 5900
[I] main.c:1047 | run | Looking Glass (a12-131-g10217fc8d9+1)
[I] main.c:1048 | run | Locking Method: Atomic
[I] main.c:1018 | try_renderer | Using Renderer: EGL
[I] main.c:1203 | run | Using Clipboard: X11
[I] spice.c:197 | spice_connect | Remote: 192.168.122.149:5900
[I] egl.c:377 | egl_render_startup | Vendor : X.Org
[I] egl.c:378 | egl_render_startup | Renderer: AMD PITCAIRN (DRM 2.50.0, 5.0.4-200.fc29.x86_64, LLVM 7.0.1)
[I] egl.c:379 | egl_render_startup | Version : OpenGL ES 3.2 Mesa 18.3.5
[E] spice.c:742 | spice_connect_channel | socket connect failure
[E] spice.c:203 | spice_connect | connect main channel failed
[E] main.c:1253 | run | Failed to connect to spice server

0 Likes

#1716

Do you have display spice and spice channel like in mine?

0 Likes

#1717

do i need both?

0 Likes

#1718

I would try it and see.

0 Likes

#1719

can you show me what is inside of display spice and inside channel spice

0 Likes

#1720

All I did was go ‘Add Hardware’ -> ‘Channel’ and then set things to spice. Also ‘Add Hardware’ -> ‘Graphics’ -> ‘Type’ and set it to spice as well.

0 Likes

#1721

spice port or spice agent inside of channel

0 Likes

#1722

Agent

1 Like

#1723

thank you very much

1 Like

#1724

I currently am running Windows 10 with GVT-g. Because libvirt is having issue with properly resizing the display, I thought it would be a good opportunity to try out Looking Glass.

However, I am running into an issue when trying to compile the client for Linux:

$ make
Scanning dependencies of target looking-glass-client
[  4%] Building C object CMakeFiles/looking-glass-client.dir/main.c.o
[  9%] Building C object CMakeFiles/looking-glass-client.dir/lg-renderer.c.o
[ 13%] Building C object CMakeFiles/looking-glass-client.dir/lg-fonts.c.o
[ 18%] Building C object CMakeFiles/looking-glass-client.dir/ll.c.o
[ 22%] Building C object CMakeFiles/looking-glass-client.dir/utils.c.o
[ 27%] Building C object CMakeFiles/looking-glass-client.dir/spice/rsa.c.o
[ 31%] Building C object CMakeFiles/looking-glass-client.dir/spice/spice.c.o
/home/user/Downloads/LookingGlass-a12/client/spice/spice.c:39:10: fatal error: spice/error_codes.h: No such file or directory
 #include <spice/error_codes.h>
          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/looking-glass-client.dir/build.make:141: CMakeFiles/looking-glass-client.dir/spice/spice.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/looking-glass-client.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

I did a dnf provides *spice/error_codes.h to see what package I was missing; however, I already have the spice-protocol package installed (unless I was also suppose to install the mingw packages):

$ sudo dnf install spice-protocol
Last metadata expiration check: 0:21:30 ago on Sun 31 Mar 2019 06:46:12 PM PDT.
Package spice-protocol-0.12.15-1.fc29.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!

I use this command to get all of the dependencies:

Does anyone know what I am doing wrong here?

0 Likes