Return to Level1Techs.com

Looking Glass - Triage

helpdesk
lookingglass

#1482

I will definately give those suggestions a shot. Looks like I need to read a little more into the past to see what problems I face in my future. :slight_smile:

Hopefully we can get you the Quadro you need to further development. Don’t have a whole lot being in education but I hope the little i can contribute helps.

Good luck on your ventures and thank you for being such an approachable developer and role model for those young ones looking at the open source space. Too offten they get hit with the old RTFM mentality.


#1483

Hello all,
I’m trying to use the Looking Glass software to help me display output from my kvm to a window so that I don’t need an external montior (thus keeping the portability of a laptop) and am running into some issues. The looking glass quick setup does not talk about using virt-manager and instead uses the qemu command line. I’m not sure how the qemu command line works and there seem to be no tutorials on how to set this up using virt-manager. In my research I started seeing that optimus cards can not even do VGA passthrough, so am what I am trying to do even possible? And if so, how do I do it? Are there alternatives that would achieve the same results with similar performance to looking glass?


#1484
  1. You should use libvirt from the quick setup instead of qemu command line since you want to use virt-manager also.

  2. It is sometimes possible.

  3. See here for how to do it if your laptop is mux-ed- https://gist.github.com/Misairu-G/616f7b2756c488148b7309addc940b28

  4. If there were other fast alternatives then why would gnif work on looking glass? You could use rdp or similar although those are much slower then looking glass.


#1486

i cant get looking glass host to work on windows.
the GPU is passed through and its driver is installed.
when i run the command prompt as administrator and issue looking-glass-host.exe -f
this error happens.

[I] CaptureFactory.h:83 | CaptureFactory::DetectDevice | Trying DXGI
[I] DXGI.cpp:232 | Capture::DXGI::Initialize | Device Descripion: Microsoft Basic Render Driver
[I] DXGI.cpp:233 | Capture::DXGI::Initialize | Device Vendor ID : 0x1414
[I] DXGI.cpp:234 | Capture::DXGI::Initialize | Device Device ID : 0x8c
[I] DXGI.cpp:235 | Capture::DXGI::Initialize | Device Video Mem : 0 MB
[I] DXGI.cpp:236 | Capture::DXGI::Initialize | Device Sys Mem : 0 MB
[I] DXGI.cpp:237 | Capture::DXGI::Initialize | Shared Sys Mem : 4094 MB
[I] DXGI.cpp:241 | Capture::DXGI::Initialize | Capture Size : 1024 x 768
[E] DXGI.cpp:293 | Capture::DXGI::Initialize | Failed to create D3D11 device: 0x887a0004 (The specified device interface or feature level is not supported on this system.)
[E] CaptureFactory.h:92 | CaptureFactory::DetectDevice | Failed to initialize a capture device
Unable to configure a capture device

Press enter to terminate…

not sure if it matters, but the VM’s graphics card is an AMD radeon RX 590.


#1487

Try disabling in windows the QXL, or other video card you have present in device manager. Sounds crazy but is exactly what I’m doing. When you do this you will loose video in your spice client and only have looking-glass and external displays to use.


#1488

thank you, now it just works.
however, the windows desktop is very low resolution, and windows is unable to change its resolution in display settings. is there any way to fix that?
under the “radeon RX 590 Series properties” tab from the display settings, if i hit “list all Modes” it only shows “640x480, true color (32bit), 59 hertz” and “640x480, true color (32bit), 60 hertz” as options.
UPDATE: ive tried running the half life 2 lost coast benchmark on my VM with looking glass while stuck in this low-re mode. it got 82fps, which is very odd as the host has the same GPU and gets several hundred FPS in that game,


#1489

What kind of external display do you have connected? You will need to have some sort of termination on the GPU still. Can be a monitor or if you are solely wanting to use looking glass, a dummy connector.


#1490

i do not have any physical monitor connected to the VM’s GPU. Looking-Glass’ website frontpage states that it eliminates the need for a physical monitor.

i do not currently own a monitor that is compatible with the VM’s GPU.


#1491

Without something on the GPU, it will not be able to negotiate resolutions. I recommend a HDMI dummy plug like this.

As for the preformance, is it a q35 or a 440 based VM?


#1492

pc-i440fx-3.1

so is it not possible to create a true headless gaming VM? only one with a false monitor on the GPU?


#1493

Not without a dummy plug. Nothing looking glass can do to bypass that. The GPU needs to see a display connected.

As for more performance, a q35 based machine will give better results. Check out this thread, time of info in it.


#1494

so i now have a monitor and am trying to play a game with looking glass. but everytime i launch a game looking glass host crashes with this error

DXGI.cpp:328 | Capture::DXGI::Initialize | DuplicateOutput1 Failed: 0x80070005 (Access is denied.)
[E] Service.cpp:190 | Service::ReInit | ReInitialize Failed

not sure if it matters, but i have looking glass running at login by having it added to the registry setting stated in the quickstart guide. i appened the -f switch to this registry setting so that i could see on the monitor any errors that might happen.


#1495

Please provide the full output from the host when running it in foreground mode.

looking-glass-host.exe -f


#1496

Make sure that you have set the permissions on the shm and that it is added to the virtual machines definition.

https://looking-glass.hostfission.com/quickstart/linux/libvirt


#1497

DuplicateOutput1 Failed: 0x80070005 (Access is denied.) is a capture API failure and has nothing to do with the ivshmem device. I really need to see the entire output to have a hope of diagnosis.


#1498

here you go, hope this helps.

[I]     CaptureFactory.h:83   | CaptureFactory::DetectDevice   | Trying DXGI
[I]             DXGI.cpp:232  | Capture::DXGI::Initialize      | Device Descripion: Radeon RX 590 Series
[I]             DXGI.cpp:233  | Capture::DXGI::Initialize      | Device Vendor ID : 0x1002
[I]             DXGI.cpp:234  | Capture::DXGI::Initialize      | Device Device ID : 0x67df
[I]             DXGI.cpp:235  | Capture::DXGI::Initialize      | Device Video Mem : 8172 MB
[I]             DXGI.cpp:236  | Capture::DXGI::Initialize      | Device Sys Mem   : 0 MB
[I]             DXGI.cpp:237  | Capture::DXGI::Initialize      | Shared Sys Mem   : 4094 MB
[I]             DXGI.cpp:241  | Capture::DXGI::Initialize      | Capture Size     : 1920 x 1080
[I]             DXGI.cpp:298  | Capture::DXGI::Initialize      | Feature Level    : 0xc000
[I]             DXGI.cpp:335  | Capture::DXGI::Initialize      | Source Format    : DXGI_FORMAT_B8G8R8A8_UNORM
[I]     CaptureFactory.h:86   | CaptureFactory::DetectDevice   | Using DXGI
[I]          Service.cpp:125  | Service::InitPointers          | Total Available :  32 MB
[I]          Service.cpp:126  | Service::InitPointers          | Max Cursor Size :   1 MB
[I]          Service.cpp:127  | Service::InitPointers          | Max Frame Size  :  15 MB
[I]          Service.cpp:128  | Service::InitPointers          | Cursor          : 00000209A3FD0080 (0x00000080)
[I]          Service.cpp:134  | Service::InitPointers          | Frame 0         : 00000209A40D0080 (0x00100080)
[I]          Service.cpp:134  | Service::InitPointers          | Frame 1         : 00000209A5050000 (0x01080000)
[I]             DXGI.cpp:654  | Capture::DXGI::Capture         | Pixel Format     : DXGI_FORMAT_B8G8R8A8_UNORM
[I]          Service.cpp:214  | Service::Process               | Restart Requested
[I]             DXGI.cpp:232  | Capture::DXGI::Initialize      | Device Descripion: Radeon RX 590 Series
[I]             DXGI.cpp:233  | Capture::DXGI::Initialize      | Device Vendor ID : 0x1002
[I]             DXGI.cpp:234  | Capture::DXGI::Initialize      | Device Device ID : 0x67df
[I]             DXGI.cpp:235  | Capture::DXGI::Initialize      | Device Video Mem : 8172 MB
[I]             DXGI.cpp:236  | Capture::DXGI::Initialize      | Device Sys Mem   : 0 MB
[I]             DXGI.cpp:237  | Capture::DXGI::Initialize      | Shared Sys Mem   : 4094 MB
[I]             DXGI.cpp:241  | Capture::DXGI::Initialize      | Capture Size     : 1920 x 1080
[I]             DXGI.cpp:298  | Capture::DXGI::Initialize      | Feature Level    : 0xc000
[I]             DXGI.cpp:335  | Capture::DXGI::Initialize      | Source Format    : DXGI_FORMAT_B8G8R8A8_UNORM
[I]             DXGI.cpp:654  | Capture::DXGI::Capture         | Pixel Format     : DXGI_FORMAT_B8G8R8A8_UNORM
[I]          Service.cpp:175  | Service::ReInit                | ReInitialize Requested
[I]             DXGI.cpp:232  | Capture::DXGI::Initialize      | Device Descripion: Radeon RX 590 Series
[I]             DXGI.cpp:233  | Capture::DXGI::Initialize      | Device Vendor ID : 0x1002
[I]             DXGI.cpp:234  | Capture::DXGI::Initialize      | Device Device ID : 0x67df
[I]             DXGI.cpp:235  | Capture::DXGI::Initialize      | Device Video Mem : 8172 MB
[I]             DXGI.cpp:236  | Capture::DXGI::Initialize      | Device Sys Mem   : 0 MB
[I]             DXGI.cpp:237  | Capture::DXGI::Initialize      | Shared Sys Mem   : 4094 MB
[I]             DXGI.cpp:241  | Capture::DXGI::Initialize      | Capture Size     : 1680 x 1050
[I]             DXGI.cpp:298  | Capture::DXGI::Initialize      | Feature Level    : 0xc000
[E]             DXGI.cpp:328  | Capture::DXGI::Initialize      | DuplicateOutput1 Failed: 0x80070005 (Access is denied.)
[E]          Service.cpp:190  | Service::ReInit                | ReInitialize Failed
Capture process returned error
Press enter to terminate...

#1499

In future please use the Preformatted Text option for log posts, I have edited your post to do so.

Clearly it isn’t just crashing, it is switching modes several times and then fails with a permission denied error.

  • What game/application are you launching when this occurs?
  • Is it every single time, or random?
  • Are you running any other capture software that might be competing for access to the capture API when you launch a game?

#1500

i am using no other capture software when this happens.
this happens everytime i launch any steam game (from the 4 that I’ve tried) in fullscreen mode.
i have tried these games: half-life 2: lost cost, Left 4 Dead 2, Resident Evil 5, and Half Life 2.
I’ve noticed that everything works just fine when i launch the games in windowed mode, only fullscreen causes this.


#1501

Have you enabled steam in house streaming? This is competing capture software.


#1502

No, Steam’s In-home streaming is disabled.
i’ve done some testing, this problem does not happen with Resident evil 6 on Steam.
i plan to test more games as my VM downloads them.
this problem also does not happen with subnautica
ive noticed that the only games that give me issues are the one’s that run at resolutions other than 1920x1080