[GH-ISSUE #303] RTX 3090 passthrough VM hard-freezes the Proxmox host during model loading (Direct mode, PR #252) #266

Open
opened 2026-11-07 17:54:31 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @mero20j1 on GitHub (Nov 4, 2026).
Original GitHub issue: https://github.com/Zagitta/gpu-unlock/issues/303

What happened

RTX 3090 passthrough VM hard-freezes the Proxmox host during model loading (Direct mode, PR #252)

I tested GPU Unlock in an Ubuntu 24.04 VM with four RTX 3090 GPUs passed through from a Proxmox VE host. The GPUs are arranged as two pairs connected by NVLink. The guest has a 220 W power limit per GPU.

Software and setup

  • Host: Proxmox VE [version and kernel, if available]
  • Guest: Ubuntu 24.04, kernel 6.8.0-147-generic
  • NVIDIA driver in the guest: 580.196.07
  • GPU Unlock: experimental Direct mode from PR #252, commit 62105cf46bd905d67c055c77bab0c2e3b7b3bc80
  • Installation location: inside the Ubuntu guest, using the Debian packages built by make install
  • GPUs: 4 × RTX 3090, two NVLink pairs
  • Power limit: 220 W per GPU
  • Workload: Qwen 3.8 Flash Next served by vLLM, tensor parallel size 4

What happened
GPU Unlock reported success for all four GPUs during guest boot. The logs showed stage=plm mode=direct, untouched=1, stage=handoff ret=0, and unlocked for each card. All four GPUs were visible in nvidia-smi.

The guest remained idle for about 1 hour and 27 minutes without any Xid or fatal PCIe errors in the guest or host logs that we checked.

I then started loading the model. The checkpoint load progressed to at least 90% of 30 safetensors shards. At that point, SSH access to both the guest and the Proxmox host stopped responding. The Proxmox host appeared completely frozen and had to be powered off using the physical power switch.

After the forced reboot, the ZFS pool was online and reported no known data errors. The guest EFI FAT filesystem had its dirty bit set after the unclean shutdown; fsck.fat cleared it, and a follow-up read-only check reported no remaining filesystem errors. This may be a consequence of the forced power-off rather than the cause of the freeze.

Questions

  1. Could the Direct mode or guest-side GPU Unlock plausibly cause a host-level freeze during model loading with VFIO passthrough?
  2. Are there specific host or guest logs, PCIe/AER counters, or GPU diagnostics we should collect before considering any further test?
  3. Is there a known issue with four RTX 3090 GPUs, NVLink pairs, Proxmox passthrough, or this Direct-mode commit?

I have not yet established the cause of the freeze. The model load did not complete, and the guest and host became unreachable before I could collect final logs.

[Optional details to add: motherboard/CPU, PCIe topology or switch/riser details, Proxmox VM PCI configuration, PSU/cabling, and the host journal from the previous boot.]

Additional confirmed guest details:

  • Ubuntu 24.04.5 LTS
  • Kernel: 6.8.0-147-generic
  • Initramfs generator: initramfs-tools 0.142ubuntu25.8
  • NVIDIA driver: 580.196.07
  • Four RTX 3090 visible in the guest, each with a 220 W power limit
  • QEMU machine type: Q35; firmware: OVMF; CPU type: host; NUMA enabled; 196608 MiB RAM

After the forced host reboot, Proxmox logs showed VFIO resets for the four GPU PCI functions during VM startup. The host ZFS pool completed a scrub with 0 bytes repaired and 0 errors. Unfortunately, the persistent host journal does not appear to contain the final minutes before the hard freeze, so I cannot provide a PCIe/AER/Xid error immediately preceding it.

The VM was reverted to a pre-test snapshot after the incident. Therefore, its current configuration may not be identical to the configuration used during the failed test.

Repeated failure across two GPU Unlock versions

This was not an isolated failure. We have now had two separate test attempts, using different GPU Unlock versions, and both resulted in the same complete system freeze while loading the model.

The first attempt used an older GPU Unlock version. The second attempt used the Direct-mode code from PR #252, commit 62105cf46bd905d67c055c77bab0c2e3b7b3bc80, installed inside the Ubuntu guest. In both attempts, the Proxmox host and the VM became completely unresponsive during model loading. Recovery required powering the host off with the physical power switch.

This repeated result suggests the problem is not limited to the older implementation or to the PLM-opening behavior addressed by Direct mode. We have not established the root cause.

Both test attempts booted successfully with GPU Unlock enabled, and all four RTX 3090 GPUs were detected and reported as unlocked. The system remained responsive while idle for approximately 1 hour and 27 minutes after boot. The complete freeze occurred only after we started loading the Qwen 3.8 Flash Next model. During checkpoint loading, the VM and Proxmox host became unreachable, and the host had to be powered off using the physical power switch.

The earlier attempt with an older GPU Unlock version showed the same sequence: successful boot, followed by a complete freeze during model loading.

Distribution

Proxmox 9.2.25 VM Ubuntu 24.04.5 LTS (GNU/Linux 6.8.0-147-generic x86_64)

Kernel

6.8.0-147-generic

Initramfs generator

dracut

gpu-unlock version and install method

GPU Unlock PR #252 Direct mode, commit 62105cf46b, version 2.0.0. Built and installed inside the Ubuntu 24.04.5 guest using make install; this created and installed the gpu-unlock-dkms and gpu-unlock-firmware Debian packages. The module was included in the initramfs by initramfs-tools.

Output


Originally created by @mero20j1 on GitHub (Nov 4, 2026). Original GitHub issue: https://github.com/Zagitta/gpu-unlock/issues/303 ### What happened ### RTX 3090 passthrough VM hard-freezes the Proxmox host during model loading (Direct mode, PR #252) I tested GPU Unlock in an Ubuntu 24.04 VM with four RTX 3090 GPUs passed through from a Proxmox VE host. The GPUs are arranged as two pairs connected by NVLink. The guest has a 220 W power limit per GPU. **Software and setup** - Host: Proxmox VE [version and kernel, if available] - Guest: Ubuntu 24.04, kernel `6.8.0-147-generic` - NVIDIA driver in the guest: `580.196.07` - GPU Unlock: experimental Direct mode from PR #252, commit `62105cf46bd905d67c055c77bab0c2e3b7b3bc80` - Installation location: inside the Ubuntu guest, using the Debian packages built by `make install` - GPUs: 4 × RTX 3090, two NVLink pairs - Power limit: 220 W per GPU - Workload: Qwen 3.8 Flash Next served by vLLM, tensor parallel size 4 **What happened** GPU Unlock reported success for all four GPUs during guest boot. The logs showed `stage=plm mode=direct`, `untouched=1`, `stage=handoff ret=0`, and `unlocked` for each card. All four GPUs were visible in `nvidia-smi`. The guest remained idle for about 1 hour and 27 minutes without any Xid or fatal PCIe errors in the guest or host logs that we checked. I then started loading the model. The checkpoint load progressed to at least 90% of 30 safetensors shards. At that point, SSH access to both the guest and the Proxmox host stopped responding. The Proxmox host appeared completely frozen and had to be powered off using the physical power switch. After the forced reboot, the ZFS pool was online and reported no known data errors. The guest EFI FAT filesystem had its dirty bit set after the unclean shutdown; `fsck.fat` cleared it, and a follow-up read-only check reported no remaining filesystem errors. This may be a consequence of the forced power-off rather than the cause of the freeze. **Questions** 1. Could the Direct mode or guest-side GPU Unlock plausibly cause a host-level freeze during model loading with VFIO passthrough? 2. Are there specific host or guest logs, PCIe/AER counters, or GPU diagnostics we should collect before considering any further test? 3. Is there a known issue with four RTX 3090 GPUs, NVLink pairs, Proxmox passthrough, or this Direct-mode commit? I have not yet established the cause of the freeze. The model load did not complete, and the guest and host became unreachable before I could collect final logs. [Optional details to add: motherboard/CPU, PCIe topology or switch/riser details, Proxmox VM PCI configuration, PSU/cabling, and the host journal from the previous boot.] Additional confirmed guest details: - Ubuntu 24.04.5 LTS - Kernel: `6.8.0-147-generic` - Initramfs generator: `initramfs-tools` `0.142ubuntu25.8` - NVIDIA driver: `580.196.07` - Four RTX 3090 visible in the guest, each with a 220 W power limit - QEMU machine type: Q35; firmware: OVMF; CPU type: host; NUMA enabled; 196608 MiB RAM After the forced host reboot, Proxmox logs showed VFIO resets for the four GPU PCI functions during VM startup. The host ZFS pool completed a scrub with 0 bytes repaired and 0 errors. Unfortunately, the persistent host journal does not appear to contain the final minutes before the hard freeze, so I cannot provide a PCIe/AER/Xid error immediately preceding it. The VM was reverted to a pre-test snapshot after the incident. Therefore, its current configuration may not be identical to the configuration used during the failed test. ### Repeated failure across two GPU Unlock versions This was not an isolated failure. We have now had two separate test attempts, using different GPU Unlock versions, and both resulted in the same complete system freeze while loading the model. The first attempt used an older GPU Unlock version. The second attempt used the Direct-mode code from PR #252, commit `62105cf46bd905d67c055c77bab0c2e3b7b3bc80`, installed inside the Ubuntu guest. In both attempts, the Proxmox host and the VM became completely unresponsive during model loading. Recovery required powering the host off with the physical power switch. This repeated result suggests the problem is not limited to the older implementation or to the PLM-opening behavior addressed by Direct mode. We have not established the root cause. Both test attempts booted successfully with GPU Unlock enabled, and all four RTX 3090 GPUs were detected and reported as unlocked. The system remained responsive while idle for approximately 1 hour and 27 minutes after boot. The complete freeze occurred only after we started loading the Qwen 3.8 Flash Next model. During checkpoint loading, the VM and Proxmox host became unreachable, and the host had to be powered off using the physical power switch. The earlier attempt with an older GPU Unlock version showed the same sequence: successful boot, followed by a complete freeze during model loading. ### Distribution Proxmox 9.2.25 VM Ubuntu 24.04.5 LTS (GNU/Linux 6.8.0-147-generic x86_64) ### Kernel 6.8.0-147-generic ### Initramfs generator dracut ### gpu-unlock version and install method GPU Unlock PR #252 Direct mode, commit 62105cf46bd905d67c055c77bab0c2e3b7b3bc80, version 2.0.0. Built and installed inside the Ubuntu 24.04.5 guest using `make install`; this created and installed the `gpu-unlock-dkms` and `gpu-unlock-firmware` Debian packages. The module was included in the initramfs by `initramfs-tools`. ### Output ```text ```
Author
Owner

@dpusta commented on GitHub (Nov 5, 2026):

Same signature here on a single RTX 3090, bare metal (no VM). I can now trigger it within seconds, and found what sets it off on my machine. Posting in case it helps narrow down #303.

Setup

  • RTX 3090 (10de:2204), VBIOS 94.02.42.40.A2, 370 W limit, stock clocks
  • Ryzen 9 5950X, Gigabyte X570 I AORUS PRO WIFI (BIOS F40c), 64 GB RAM, PCIe Gen4 x16
  • Arch Linux, kernel 6.18.60-1-lts, nvidia open 615.78.08
  • gpu-unlock 2.0.0 at 7eb51bc (PLM route, not direct mode), gpu_unlock.targets=0000:0a:00.0; unlock verified: cuBLAS FP16 GEMM (FP32 acc) 120 TFLOPS unlocked vs 79 stock
  • Workload: Qwen 3.8 Flash Next (IQ3_S) served by the Strata engine 0.1.56, which streams MoE experts from pinned host RAM

The freeze
Whole machine hard-locks: black screen, all fans to max, power button needed. Nothing reaches the log: no Xid, NVRM, AER, MCE, lockup or RCU line, even with /dev/kmsg copied to disk with an fsync per line. With hardlockup_panic=1 softlockup_panic=1 panic_on_rcu_stall=1 and efi_pstore.pstore_disable=0, pstore stays empty, so the kernel never gets to detect anything. About 10 freezes in one day.

What triggers it
It happens when the inference engine has GPU threads read a lot of data straight from mapped (zero-copy) pinned host memory over PCIe while tensor-core work runs. On a MoE expert-cache miss, Strata's default path launches a copy kernel (384 blocks × 256 threads, 16-byte loads) that pulls thousands of 2.6 MB blobs from cudaHostAllocMapped memory, saturating the link (about 25 GB/s).

Looping the request that causes the biggest miss burst, on the unlocked card:

Test How the missed experts reach the GPU Result
A GPU threads read mapped host memory (default) froze on the 1st burst, 5 s after load
B not at all; the CPU computes them (--pcie-frac 0) 30/30 bursts clean
C copy-engine DMA (cudaMemcpyAsync, --pcie-mode dma); 1.1 M blobs moved 30/30 bursts clean

So it isn't PCIe volume (C moved more than A) and it isn't tensor load on its own. These ran 15 minutes clean on the unlocked card:

  • cuBLAS FP16 GEMM, continuous
  • FP16 GEMM in 20/20 ms bursts plus 25 GB/s of cudaMemcpyAsync H2D/D2H
  • the same with TF32

What fails is SM-issued reads of host memory over PCIe, at high volume, on an unlocked card.

Caveats

  • I did not run the fast trigger (A) on a stock boot. Stock boots did pass 2 longer runs (7.4 min of load, 4 of these bursts) with no freeze.
  • Ruled out on my side: the engine's GPU-polling, memlock limits, launch method, one specific tensor-core kernel, and the engine's control-vector option.

#303 also froze during model loading (vLLM). If that path reads host memory from kernels (UVM, mapped or pinned zero-copy), it may be the same mechanism.

Happy to run a test build or collect anything specific.

<!-- gh-comment-id:6660487449 --> @dpusta commented on GitHub (Nov 5, 2026): Same signature here on a single RTX 3090, bare metal (no VM). I can now trigger it within seconds, and found what sets it off on my machine. Posting in case it helps narrow down #303. **Setup** - RTX 3090 (10de:2204), VBIOS 94.02.42.40.A2, 370 W limit, stock clocks - Ryzen 9 5950X, Gigabyte X570 I AORUS PRO WIFI (BIOS F40c), 64 GB RAM, PCIe Gen4 x16 - Arch Linux, kernel 6.18.60-1-lts, nvidia open 615.78.08 - gpu-unlock 2.0.0 at 7eb51bc (PLM route, not direct mode), `gpu_unlock.targets=0000:0a:00.0`; unlock verified: cuBLAS FP16 GEMM (FP32 acc) 120 TFLOPS unlocked vs 79 stock - Workload: Qwen 3.8 Flash Next (IQ3_S) served by the Strata engine 0.1.56, which streams MoE experts from pinned host RAM **The freeze** Whole machine hard-locks: black screen, all fans to max, power button needed. Nothing reaches the log: no Xid, NVRM, AER, MCE, lockup or RCU line, even with `/dev/kmsg` copied to disk with an fsync per line. With `hardlockup_panic=1 softlockup_panic=1 panic_on_rcu_stall=1` and `efi_pstore.pstore_disable=0`, pstore stays empty, so the kernel never gets to detect anything. About 10 freezes in one day. **What triggers it** It happens when the inference engine has GPU threads read a lot of data straight from mapped (zero-copy) pinned host memory over PCIe while tensor-core work runs. On a MoE expert-cache miss, Strata's default path launches a copy kernel (384 blocks × 256 threads, 16-byte loads) that pulls thousands of 2.6 MB blobs from `cudaHostAllocMapped` memory, saturating the link (about 25 GB/s). Looping the request that causes the biggest miss burst, on the unlocked card: | Test | How the missed experts reach the GPU | Result | |---|---|---| | A | GPU threads read mapped host memory (default) | froze on the 1st burst, 5 s after load | | B | not at all; the CPU computes them (`--pcie-frac 0`) | 30/30 bursts clean | | C | copy-engine DMA (`cudaMemcpyAsync`, `--pcie-mode dma`); 1.1 M blobs moved | 30/30 bursts clean | So it isn't PCIe volume (C moved more than A) and it isn't tensor load on its own. These ran 15 minutes clean on the unlocked card: - cuBLAS FP16 GEMM, continuous - FP16 GEMM in 20/20 ms bursts plus 25 GB/s of `cudaMemcpyAsync` H2D/D2H - the same with TF32 What fails is SM-issued reads of host memory over PCIe, at high volume, on an unlocked card. **Caveats** - I did not run the fast trigger (A) on a stock boot. Stock boots did pass 2 longer runs (7.4 min of load, 4 of these bursts) with no freeze. - Ruled out on my side: the engine's GPU-polling, memlock limits, launch method, one specific tensor-core kernel, and the engine's control-vector option. #303 also froze during model loading (vLLM). If that path reads host memory from kernels (UVM, mapped or pinned zero-copy), it may be the same mechanism. Happy to run a test build or collect anything specific.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Zagitta/gpu-unlock#266
No description provided.