Skip to content

Commit 53edcca

Browse files
alielnesitor
authored andcommitted
Fix: Add rombar=0 to GPU passthrough to prevent boot hangs with incompatible GPU firmware
1 parent 0931b32 commit 53edcca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aleph/vm/hypervisors/qemu/qemuvm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def _get_gpu_args(self):
155155
"host,host-phys-bits-limit=0x28",
156156
]
157157
for gpu in self.gpus:
158-
device_args = f"vfio-pci,host={gpu.pci_host},multifunction=on"
158+
device_args = f"vfio-pci,host={gpu.pci_host},multifunction=on,rombar=0"
159159

160160
# Only add x-vga=on parameter if the GPU supports it
161161
if gpu.supports_x_vga:

0 commit comments

Comments
 (0)