GPU Passthrough VM Shows a Black Screen in Looking Glass? Shared Memory, Version Matching and Display-Path Diagnosis Guide

Summary
Passthrough works but Looking Glass shows a black screen, or the picture is cut off at the bottom. The fault is usually not the graphics card — it is the shared-memory device, a version mismatch between host and client, or the display path itself. Four tests, run in order, separate each layer.
What This Guide Covers — and What It Does Not
This guide covers exactly one shape of fault. Graphics card passthrough to the virtual machine already works — the BIOS has VT-d or AMD-Vi enabled, the IOMMU groups separate cleanly, vfio-pci binding succeeded, the guest driver is installed correctly, and the guest shows no Code 43 — but Looking Glass shows a black screen, fails to open, or cuts off the bottom of the picture when viewing the guest. It also covers the second shape of the same fault: the guest desktop is reachable through the Spice console or Remote Desktop and looks normal, while Looking Glass stays black.
Everything outside that shape belongs elsewhere, and the tests from those articles must not be imported here as if they were this guide's tests. Passthrough itself failing to detect the card, or producing Code 43, is covered in the site's passthrough article (#204). Hyper-V GPU-P failing to use the card is covered in #585. Moonlight or Sunshine failing to connect to the host is covered in #589. Headless operation with no monitor attached is covered in #198. A card not being found inside Docker is covered in #554. CUDA not running inside WSL is covered in #573. Each of those has its own diagnostic logic, and mixing them together only makes the diagnosis less accurate.
Before running any test, establish the precondition. The official Looking Glass installation documentation states plainly that the tool assumes passthrough is already fully working. If passthrough itself is not finished, do not follow this guide — go back to #204 first. That is not politeness; it is the premise of all four tests below, which separate the display path after passthrough succeeds, not passthrough itself.
What Looking Glass Is: Two Programs, Do Not Confuse Them
Looking Glass consists of two programs, and their names are easy to misunderstand. The host application actually runs inside the Windows guest as a display server — it captures the picture the guest GPU has already drawn. The client runs on the Linux host and shows that picture in a window. The official FAQ states this division explicitly. The client should only be started after the host application is already running in the guest; the order cannot be reversed.
The host application captures the picture using the DXGI Desktop Duplication interface, the same method screen-recording software uses. Supported professional NVIDIA cards can use the NvFBC capture interface instead, but consumer GeForce cards can only use DXGI — they cannot use NvFBC. That point needs to be clear; readers must not be told to enable NvFBC on a GeForce card.
The captured picture is not streamed over a network. It is written into a block of memory shared between the two sides, and the client reads it from that memory to display it. That is the biggest difference between Looking Glass and Moonlight or RDP: Moonlight encodes the picture into video and sends it over the network (see #589); RDP builds a session picture using a virtual display driver (see #198); Looking Glass moves the uncompressed raw picture through shared memory. Different pipes fail in different places, so the diagnosis is different too.
The Shared-Memory Device: A Separate Thing from Passthrough Itself
Besides the passed-through graphics card, the virtual machine needs one more device: a shared-memory device named looking-glass, of type ivshmem-plain. In libvirt terms, a shmem device is added to the virtual machine's configuration; on the QEMU command line, an ivshmem-plain device is added together with a memory-backend-file pointing at the shared-memory file. This device and graphics card passthrough are two independent things: the card passing through successfully does not mean the shared-memory device has been added. Black-screen cases can fail exactly here — everything on the passthrough side passes, but the shared-memory device was never added at all.
On the Linux host side there are two ways to access the shared memory. The recommended way is the KVMFR kernel module, which lets the GPU's DMA engine move picture data directly. The official documentation says the performance gain is large, and the client's direct GPU import path requires KVMFR. The fallback is an ordinary shared-memory file, where the CPU copies the picture frame by frame — slower, but it works. KVMFR not being installed does not mean Looking Glass cannot start; that distinction is one of the misconceptions covered later.
On the guest side, Windows Device Manager must show an IVSHMEM device, which proves the device has been added and its guest driver is installed correctly. That check is the core of the first test.
The Size Formula: Too Small, and the Bottom of the Picture Is Cut Off
The official formula is: width times height, times bytes per pixel, times two, plus 10 MiB, then rounded up to the nearest power of two. SDR uses 4 bytes per pixel; HDR uses 8 bytes per pixel, so HDR needs twice the capacity.
The reference table below is consistent between the official documentation and third-party guides:
| Guest resolution | SDR capacity needed | HDR capacity needed |
|---|---|---|
| 1080p | 32 MiB | 64 MiB |
| 1440p | 64 MiB | 128 MiB |
| 4K | 128 MiB | 256 MiB |
Running out of capacity has a very distinctive symptom: the bottom of the picture is truncated, not the whole screen going black. That symptom is itself a diagnostic signal — when the bottom is cut off, check the size formula first instead of reinstalling the driver. Setting the capacity too large only wastes locked memory; it does not make the picture any better. Enlarging the shared memory must not be presented as a universal fix; it only cures the one shape of "picture cut off at the bottom".
Versions Must Match
The client and the host must be the same release — one side must not run a development build while the other runs a stable release. A third-party setup guide states this explicitly. As verified on 27 November 2026, the current stable release is B7; but release numbers change over time, so this guide does not hard-code B7 as a permanent answer. Readers should check the current official documentation and confirm both sides are on the same release. New features in development builds are covered in the boundaries table below; this guide covers only the traditional host-application path.
The Host Needs Its Own Display
The passed-through card belongs to the guest, so the Linux host desktop must be driven by integrated graphics or a second card. That is the same principle #204 states as "no picture on the host after passthrough is normal", and it must not be repeated here as a new test — it is mentioned once as a precondition. The client runs on the host and needs a desktop environment that can show a window, with EGL support, before the guest picture can be seen at all.
The Four Tests at a Glance
The four tests must be run in order. The third test is the gate: if neither Spice nor RDP can reach the guest desktop, the problem is not in Looking Glass — go back to #204. Only when Spice or RDP reaches the desktop but Looking Glass stays black is the fault inside this guide's scope. The first test separates "the device was never added" from "the device is there but the pipe is broken". The second test separates "the program is not running, or the versions do not match". The fourth test handles only the specific shape of "the bottom of the picture is cut off" and must not be treated as a universal explanation for a black screen.
| Test | What changes | What is observed | What it separates |
|---|---|---|---|
| T1: Shared-memory device check | Whether the IVSHMEM device is present on both the guest and the host | Whether the device is visible | The host configuration layer vs the guest or pipe layer |
| T2: Guest host program and version check | Whether the host program is running in the guest; whether host and client are the same release | Running or not; versions matching or not | The guest program layer vs the version-mismatch layer |
| T3: Spice / RDP control | Entering the guest through the Spice console or RDP instead | Whether the desktop is visible | The Looking Glass pipe itself vs the guest GPU or driver layer |
| T4: Shared-memory size check | The size the formula requires vs the size actually configured | Enough or not; whether the bottom of the picture is cut off | The size layer vs other layers |
The shapes of these tests resemble tests in other articles, and that resemblance should be acknowledged rather than hidden. T1's "is the device visible" shape resembles the vfio-pci binding check in #204, but the device here is the IVSHMEM shared-memory device, not the graphics card itself. T2's "do the versions match" shape resembles the guest driver version check in #204, but here the versions are the Looking Glass host and client releases, not the GPU driver version. T3's "try another way in" shape resembles the RDP-versus-streaming comparison in #198, but here the comparison is the Spice or RDP desktop against the Looking Glass shared-memory pipe, not RDP against streaming. Similar shapes, different variables — and that is what makes these four tests new.
Test 1: The Shared-Memory Device Check — Has the IVSHMEM Device Been Added?
How to run it
On the host side, check whether the virtual machine's configuration contains a looking-glass shmem device. In libvirt terms, that means looking for the corresponding shmem section in the configuration; on the QEMU command line, it means looking for an ivshmem-plain device together with a memory-backend-file. Also confirm that the shared-memory path exists on the host — the shared-memory file path, or the device file used when KVMFR is in play.
On the guest side, open Windows Device Manager and look for an IVSHMEM device. It only appears once the guest IVSHMEM driver has been installed.
How to read it
- The device is visible on neither side: the host configuration is missing the IVSHMEM device. The repair direction is to add the device setting following the official documentation — not to reinstall the GPU driver. The virtual machine must be restarted before the change takes effect.
- Visible on the host, not visible in the guest: a guest driver layer problem — the guest IVSHMEM driver is not installed or was installed incorrectly. The repair direction is the guest driver, not the host configuration.
- Visible on both sides, but Looking Glass is still black: the device layer passes. Proceed to T2.
- The KVMFR module is not loaded: that is not a cause of a black screen. Without KVMFR, Looking Glass falls back to the CPU copying the picture — slower, but it works. Installing KVMFR must not be presented as a black-screen fix; KVMFR is a performance option, not a requirement for starting. This is a sub-check, not a separate test.
What does not count as a result here
Whether the passed-through graphics card itself appears in the guest's Device Manager is a #204 check, not a T1 check. T1 recognises only the IVSHMEM device.
Test 2: The Guest Host Program and Version Check — Is the Program Running, and Do the Versions Match?
How to run it
On the guest side, enter the guest through Spice or RDP and confirm that the looking-glass-host program is running inside the Windows guest. The official documentation says the client should be started after the host program has started — the host program must already be running in the guest before the client is opened, and the order cannot be reversed.
For the versions, write down the release of the guest host program and the release of the host client, and check whether they are the same release. Do not mix a development build with a stable release.
How to read it
- The host program is not running at all: a guest program layer problem. The repair direction is to start the host program in the guest, and to set it to start automatically at boot following the official documentation, rather than starting it by hand each time — and only then open the client. This is not a GPU fault.
- The host is running, but the versions do not match — for example, the client is on the current stable release while the host is on an older one: a version-mismatch layer problem. The repair direction is to bring both sides onto the same release; upgrading only one side is not enough.
- The host is running, the versions match, but the screen is still black: the program and version layer passes. Proceed to T3.
- The version number itself is not a test result: B7 is the current stable release at the time of writing. Use the relative form — "check the current official documentation" — and never write B7 down as a permanent version.
What does not count as a result here
The GPU driver version is a #204 check, not a T2 check. T2 recognises only the Looking Glass host and client releases.
Test 3: The Spice / RDP Control — Is It the Looking Glass Pipe or the Guest GPU Layer?
How to run it
Do not use Looking Glass. Enter the guest through the Spice console or RDP instead, and see whether the guest desktop appears. Keep the Spice console available as a fallback display while testing — do not remove every display path at once.
How to read it
- Spice or RDP reaches the guest and the desktop is normal, but Looking Glass is black: the guest GPU and driver are working — the picture is already being drawn — so the fault is in the Looking Glass pipe itself. Go back to T1, T2, and T4 and check them one by one. This is the core fork of this guide.
- Neither Spice nor RDP can reach the guest, and the guest desktop cannot be seen at all: the problem is not in Looking Glass. It sits in the guest GPU or driver layer, or in the passthrough layer. Go back to #204 and follow its diagnosis; do not keep circling the Looking Glass settings.
- Spice reaches the guest but only at a very low resolution: that may mean the guest has no display target (see #198), or it may be a limitation of the Spice display itself — not a Looking Glass fault. A low Spice resolution must not be treated as evidence of a Looking Glass black screen.
What does not count as a result here
RDP itself being black while Spice works is the two-route distinction covered in #198, not evidence for T3. T3 recognises only one outcome: whether any route can see the guest desktop.
Test 4: The Shared-Memory Size Check — A Cut-Off Bottom Means the Capacity Is Too Small
How to run it
Work out the number with the official formula: width times height, times bytes per pixel, times two, plus 10 MiB, then rounded up to the nearest power of two. SDR uses 4 bytes per pixel; HDR uses 8. The reference table above gives the results: 1080p SDR 32 MiB and HDR 64 MiB; 1440p SDR 64 MiB and HDR 128 MiB; 4K SDR 128 MiB and HDR 256 MiB.
Compare that against the guest's actual maximum resolution — the maximum set in the guest configuration, not the current size of the window — and the shared-memory size in the configuration.
How to read it
- The bottom of the picture is cut off, and the configured size is smaller than the formula requires: a size-layer problem. The repair direction is to enlarge the shared memory following the formula, rounding up to a power of two, and then restart the virtual machine. This is the only shape T4 handles.
- The whole picture is black, not just the bottom cut off: that is not a size problem. Go back to T1, T2, and T3. Enlarging the shared memory must not be treated as a black-screen fix.
- The size is already enough, but the picture still has problems: the size layer passes; the problem is in another layer.
- Lowering the resolution temporarily as a probe — for example from 4K to 1080p: if the picture comes back, the evidence points at the size layer; if it is still black, size is not the main cause. This is a probe inside T4, not a separate test, and certainly not advice to use a low resolution permanently.
What does not count as a result here
Shared memory configured far larger than needed — for example 256 MiB for 1080p — only wastes locked memory; it is not a fault. T4 recognises only the comparison between the configured size and what the formula requires.
The Seven-Step Diagnostic Flow
- Define the fault and check the gate. Is passthrough itself finished? Confirm each item on the #204 checklist: IOMMU, binding, guest driver, no Code 43. If it is not finished, go back to #204 and do not follow this guide.
- T3 — the Spice / RDP control. Can the guest desktop be reached? If not, go back to #204. Only when the desktop is reachable but Looking Glass is black is the fault inside this guide's scope.
- T2 — the guest host program and version check. Is the host program running in the guest? Are both sides on the same release?
- T1 — the shared-memory device check. Is the IVSHMEM device visible on both sides? Is anything missing from the host configuration?
- T4 — the shared-memory size check. Is the bottom of the picture cut off? Work out with the formula whether the capacity is enough.
- Repair by branch. Change only one thing at a time, then restart the virtual machine and test again. Changing an IVSHMEM setting only takes effect after the virtual machine is restarted.
- Verify. Test again at the same resolution that produced the fault, and confirm the picture is complete with nothing cut off. Write down the host and client versions, the shared-memory size, and the guest resolution, so the next comparison starts from a known state.
Boundaries: What Belongs Somewhere Else
| Situation | In this guide? | Where it belongs |
|---|---|---|
| Passthrough itself cannot detect the card, or Code 43 | No | #204 |
| Hyper-V GPU-P cannot use the card | No — a different hypervisor; Looking Glass is a Linux KVM / QEMU host practice | #585 |
| Moonlight or Sunshine cannot connect, or pairing fails | No — a network streaming pipe, not a shared-memory pipe | #589 |
| RDP works but streaming is black or low-resolution | No — the no-display-target layer | #198 |
| No card found inside Docker | No | #554 |
| CUDA not running inside WSL | No | #573 |
| IDD virtual display (B7 development build) | Mentioned once in the boundary only; not a stable practice | Check the current official documentation |
| NvFBC capture | Only for supported professional NVIDIA cards; consumer GeForce cards can only use DXGI | Official FAQ |
| No picture on the host after single-GPU passthrough | Normal behaviour, not a fault; the host needs its own integrated graphics or a second card | #204 |
Common Misconceptions
"A black screen in Looking Glass means the graphics card is faulty." Wrong. Run T3 first: if Spice or RDP reaches the guest desktop, that proves the GPU and driver are drawing the picture, and the fault is in the Looking Glass pipe.
"The host program runs on the host." Wrong. The name is misleading, but the host program runs inside the Windows guest, and the client is the program that runs on the Linux host. The official FAQ states this explicitly.
"Without KVMFR, Looking Glass cannot be used." Wrong. Without KVMFR it falls back to the CPU copying the picture — slower, but it works. KVMFR is a performance option, not a requirement for starting.
"The bigger the shared memory, the better." Wrong. The size must follow the formula. Too large only wastes locked memory; too small is what cuts off the bottom of the picture.
"Looking Glass can replace the passthrough setup." Wrong. The official documentation assumes passthrough is already working. If passthrough is not finished, Looking Glass can do nothing.
"Host and client versions can be mixed." Wrong. Both sides must be the same release. One side must not run a development build while the other runs a stable release.
"Consumer GeForce cards can capture with NvFBC." Wrong. NvFBC is only for supported professional NVIDIA cards. Consumer cards can only use DXGI.
Everyday Prevention
First, when the passthrough setup is finished, write down the Looking Glass host and client versions, the shared-memory size, and the guest's maximum resolution together. Before upgrading either side, compare the versions first.
Second, before changing the virtual machine configuration, write down the current settings. Adding an IVSHMEM device or changing its size only takes effect after the virtual machine is restarted, so restart and test again after every change.
Third, keep the Spice or virt-manager console available as a fallback display while testing. Do not remove every display path at once.
Fourth, treat version numbers, configuration keywords, and the size formula as things to check against the current official documentation. Never write a particular version or size down as a permanent answer, because the official documentation is updated and a hard-coded article goes out of date.
When to Stop and Bring the Machine In
If all four tests have been run and the fault still cannot be separated, further guessing costs more than it saves. Bring the machine in with the host and client versions, the shared-memory size, the guest resolution, and the T1 to T4 results written down. A technician can then test the setup directly, rather than by swapping parts one at a time.
HK GPU Fix is located at Room 1209, Dali Plaza, Shek Mun. For enquiries, call 2186 8010 or reach the shop on WhatsApp at 6558 6806. Inspection is charged on the website's published three-tier scale, HK$400–2,800. There is no Mong Kok shop and no on-site service.
FAQ
1. Passthrough works, but Looking Glass is black — is the graphics card faulty?
Not necessarily. Run T3 first: enter the guest through the Spice console or RDP. If the desktop is normal there, the graphics card and driver are drawing the picture, and the fault is in the Looking Glass pipe itself. A faulty card would not let Spice in while leaving Looking Glass black.
2. Which machine should the host program run on?
Inside the Windows guest. The name is misleading, but the official FAQ states explicitly that the host program is the display server running in the guest VM; the client is the program that runs on the Linux host. The client should only be opened after the host program is already running in the guest.
3. Without KVMFR, can Looking Glass start at all?
Yes. KVMFR is a performance option, not a requirement for starting. Without it, Looking Glass falls back to the CPU copying the picture frame by frame — slower, but it works. KVMFR lets the GPU's DMA engine move picture data directly, which makes the transfer much faster.
4. Why is the bottom of the picture cut off while the top looks normal?
That is the characteristic symptom of shared memory that is too small. Work it out with the official formula: the higher the resolution, and HDR on top of that, the more capacity is needed. The reference values are 1080p SDR 32 MiB, 1440p SDR 64 MiB, and 4K SDR 128 MiB, with HDR needing twice as much. If the configured size is smaller than the formula requires, the bottom of the picture is truncated. Enlarge the size following the formula, rounding up to a power of two, and restart the virtual machine.
5. Can enlarging the shared memory fix a completely black screen?
No. Running out of capacity only cuts off the bottom of the picture; it does not black out the whole screen. A completely black screen needs T1, T2, and T3: whether the device was added, whether the host program is running, whether the versions match, and whether Spice or RDP can reach the guest.
6. What happens if the host and client versions are different?
Both sides must be the same release — they must not be mixed. Mismatched versions can leave the client unable to open, or connected but showing nothing normal. Bring both sides onto the same release; upgrading only one side is not enough. Check the version numbers against the current official documentation.
7. Can a consumer GeForce card capture with NvFBC?
No. NvFBC is only for supported professional NVIDIA cards. A consumer GeForce card can only capture through the DXGI Desktop Duplication interface. The official FAQ states this.
8. Spice reaches the guest, but only at a very low resolution — is Looking Glass broken?
No. A low Spice resolution may mean the guest has no display target, or it may be a limitation of the Spice display itself — not a Looking Glass fault. T3 recognises only whether any route can see the guest desktop; a low resolution is not evidence of a Looking Glass black screen.
9. Do I need to restart the VM after changing the shared-memory settings?
Yes. Adding an IVSHMEM device or changing its size only takes effect after the virtual machine is restarted. Change one thing at a time, restart, and test again before deciding whether the change worked.
10. When should I stop testing and bring the machine in?
When all four tests have been run and the fault still cannot be separated, or when the tests point at a configuration problem that cannot be verified safely. Bring the host and client versions, the shared-memory size, the guest resolution, and the T1 to T4 results. Inspection is charged on the website's published three-tier scale, HK$400–2,800. HK GPU Fix is at Room 1209, Dali Plaza, Shek Mun; call 2186 8010 or WhatsApp 6558 6806. There is no Mong Kok shop and no on-site service.
Sources
- Looking Glass official installation documentation (B5): https://looking-glass.io/docs/B5/install/ — IVSHMEM device configuration, QEMU command line, the size formula, Spice configuration, the client starting after the host program, and the precondition that passthrough is already working.
- Looking Glass official FAQ (B4-rc3): https://looking-glass.io/docs/B4-rc3/faq/ — the host program actually runs in the guest, the client runs on the host; NvFBC only works on supported cards.
- Looking Glass on Linux guide: https://gamingpcguru.com/looking-glass-vm-gaming-on-linux/ — IVSHMEM and KVMFR, matching versions, the size reference table, capacity running out cutting off the bottom of the picture, the host needing its own display, and the guest needing Windows 10 1803 or later, or Windows 11.
- Looking Glass B7 setup guide: https://gist.github.com/safwyls/96b6cf4b49e04af2668b7a77502e5ff2 — the B7 stable release, not mixing development and stable builds, the KVMFR module, and the size formula.
- Looking Glass IDD report: http://umatechnology.org/how-to-give-a-windows-vm-a-virtual-monitor-with-looking-glass-idd/ — the IDD virtual display in the B7 development build, no dummy plug needed, and keeping the Spice console as a fallback while testing.