qubes-issues icon indicating copy to clipboard operation
qubes-issues copied to clipboard

Qube Manager crashes when attempting to view settings for a qube containing PCI devices that no longer exist

Open ArrayBolt3 opened this issue 1 month ago • 3 comments

How to file a helpful issue

Qubes OS release

R4.3

Brief summary

Yesterday, I ended up moving my testing Qubes OS installation from a fairly recent Intel-based system (13th gen CPU) to a somewhat older one (11th gen CPU). The USB controller in this system is different than the one in the previous system, and so sys-usb would not start since it couldn't pass through a non-existent PCI device. To resolve this, I assumed I'd be able to open Qube Manager, select sys-usb, click Settings, then go to the Devices tab and remove the non-existent device. Unfortunately, upon clicking the "Settings" button, Qube Manager crashed.

Steps to reproduce

  1. Install Qubes OS R4.3 on a machine with a particular generation of Intel CPU (I assume AMD CPUs will show the same problems).
  2. Boot the installed system once, verify sys-usb and sys-net start, then shut the system down properly.
  3. Move the drive from the system where you installed it to some other system with a different generation of Intel CPU.
  4. Boot the installed system. sys-usb should not start.
  5. Attempt to start sys-usb. You should see an error about a PCI device not being available.
  6. In dom0, open xfce4-terminal, and run qubes-qube-manager.
  7. Click on sys-usb.
  8. Click the Settings button.

Expected behavior

VM settings window appears.

Actual behavior

Qube Manager crashes, and a Python exception is printed in the terminal.

Additional information

I was able to recover from this state by running sudo qvm-pci unassign sys-usb. After this, the settings window would open normally for sys-usb.

ArrayBolt3 avatar Nov 17 '25 00:11 ArrayBolt3

Do you maybe have the Python exception saved anywhere?

marmarta avatar Dec 04 '25 21:12 marmarta

I unfortunately do not, but I can re-create the issue and share those.

ArrayBolt3 avatar Dec 04 '25 21:12 ArrayBolt3

I think I managed to reproduce this!! Fix incoming, hopefully.

marmarta avatar Dec 06 '25 23:12 marmarta