I just updated my system this morning (2022-09-07) and rebooted because I saw some Xen updates included. When my system came back up sys-usb failed to start with error:
qrexec-sys-usb.log
2022-09-07 11:43:18.090 qrexec-daemon[29201]: qrexec-daemon.c:340:init: cannot connect to qrexec agent: No such file or directory
Other VM’s using the same template have no problem starting nor does sys-usb when there are no devices assigned to it. qrexec-agent obviously exists in the template but I can’t even get a command shell to look for it when any devices are attached. Running in debug mode is no help because it just quickly exits with no obvious messages on the debug console. Its not even waiting for the qrexec_timeout!
If I remove both controller boards from sys-usb’s configuration sys-usb starts up just fine, but if I add either device (USB or SATA) back to it then it refuses to start and shuts down with this same error. Its obviously not the board/drivers because neither one works and they are completely different hardware and drivers.
The guest-sys-usb-dm.log says very little about what might be wrong:
[2022-09-07 11:43:13] [00:06.0] xen_pt_realize: Assigning real physical device 02:00.0 to devfn 0x30
[2022-09-07 11:43:13] [00:06.0] xen_pt_register_regions: IO region 0 registered (size=0x00002000 base_addr=0xee700000 type: 0x4)
[2022-09-07 11:43:13] [00:06.0] xen_pt_config_reg_init: Offset 0x000e mismatch! Emulated=0x0080, host=0x0000, syncing to 0x0000.
[2022-09-07 11:43:13] [00:06.0] xen_pt_config_reg_init: Offset 0x0010 mismatch! Emulated=0x0000, host=0xee700004, syncing to 0xee700004.
[2022-09-07 11:43:13] [00:06.0] xen_pt_config_reg_init: Offset 0x0052 mismatch! Emulated=0x0000, host=0x01c3, syncing to 0x0003.
[2022-09-07 11:43:13] [00:06.0] xen_pt_config_reg_init: Offset 0x0072 mismatch! Emulated=0x0000, host=0x0086, syncing to 0x0080.
[2022-09-07 11:43:14] [00:06.0] xen_pt_config_reg_init: Offset 0x00a4 mismatch! Emulated=0x0000, host=0x8fc0, syncing to 0x8fc0.
[2022-09-07 11:43:14] [00:06.0] xen_pt_config_reg_init: Offset 0x00aa mismatch! Emulated=0x0000, host=0x0010, syncing to 0x0010.
[2022-09-07 11:43:14] [00:06.0] xen_pt_config_reg_init: Offset 0x00b2 mismatch! Emulated=0x0000, host=0x1012, syncing to 0x1012.
[2022-09-07 11:43:14] [00:06.0] xen_pt_pci_intx: intx=1
[2022-09-07 11:43:14] [00:06.0] xen_pt_realize: Real physical device 02:00.0 registered successfully
[2022-09-07 11:43:14] written 34 bytes to vchan
[2022-09-07 11:43:14] written 2048 bytes to vchan
[2022-09-07 11:43:14] written 969 bytes to vchan
[2022-09-07 11:43:14] written 110 bytes to vchan
[2022-09-07 11:43:14] written 34 bytes to vchan
[2022-09-07 11:43:14] written 34 bytes to vchan
[2022-09-07 11:43:14] processing error - resetting ehci HC
[2022-09-07 11:43:14] random: crng init done
[2022-09-07 11:43:15] {“timestamp”: {“seconds”: 1662565395, “microseconds”: 466325}, “event”: “RESET”, “data”: {“guest”: true, “reason”: “guest-reset”}}
[2022-09-07 11:43:15] {“timestamp”: {“seconds”: 1662565395, “microseconds”: 467327}, “event”: “RESET”, “data”: {“guest”: true, “reason”: “guest-reset”}}
[2022-09-07 11:43:15] {“timestamp”: {“seconds”: 1662565395, “microseconds”: 495970}, “event”: “DEVICE_DELETED”, “data”: {“path”: “/machine/peripheral-anon/device[3]”}}
[2022-09-07 11:43:15] {“timestamp”: {“seconds”: 1662565395, “microseconds”: 496038}, “event”: “DEVICE_DELETED”, “data”: {“path”: “/machine/peripheral-anon/device[0]”}}
[2022-09-07 11:43:17] pcifront pci-0: Rescanning PCI Frontend Bus 0000:00
guest-sys-usb.log says:
[2022-09-07 11:43:10] Logfile Opened
Dom0 dmesg says:
[ 524.073745] audit: type=1130 audit(1662562913.238:301): pid=1 uid=0 auid=4294967295 ses=4294967295 msg=‘unit=qubes-vm@sys-usb comm=“systemd” exe=“/usr/lib/systemd/systemd” hostname=? addr=? terminal=? res=failed’
Anyone have a clue here? Without a controller board there is little point in having a sys-usb if you can not even backup and restore with it. Fortunately my keyboard and mouse are not confined to it so my system is still somewhat functional otherwise.