Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • U usbredir
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 7
    • Issues 7
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • spice
  • usbredir
  • Issues
  • #27
Closed
Open
Issue created Nov 15, 2022 by Kamil Páral@kparal

qemu-system-x86_64: warning: usb-redir connection broken during migration

In virt-manager, restoring a Live image snapshot is no longer possible. It prints this error:

Error running snapshot 'snapshot2': internal error: process exited while connecting to monitor: 2022-11-15T12:28:35.755929Z qemu-system-x86_64: warning: usb-redir connection broken during migration

2022-11-15T12:28:35.755996Z qemu-system-x86_64: usbredirparser: unserialization must use a pristine parser
2022-11-15T12:28:35.755999Z qemu-system-x86_64: Failed to load usb-redir:parser
2022-11-15T12:28:35.756003Z qemu-system-x86_64: error while loading state for instance 0x0 of device '0000:00:02.1:00.0/2/usb-redir'
2022-11-15T12:28:35.757155Z qemu-system-x86_64: Error -1 while loading VM state

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 108, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
    ret = fn(self, *args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/virt-manager/virtManager/object/domain.py", line 1185, in revert_to_snapshot
    self._backend.revertToSnapshot(snap.get_backend())
  File "/usr/lib64/python3.11/site-packages/libvirt.py", line 2423, in revertToSnapshot
    raise libvirtError('virDomainRevertToSnapshot() failed')
libvirt.libvirtError: internal error: process exited while connecting to monitor: 2022-11-15T12:28:35.755929Z qemu-system-x86_64: warning: usb-redir connection broken during migration

2022-11-15T12:28:35.755996Z qemu-system-x86_64: usbredirparser: unserialization must use a pristine parser
2022-11-15T12:28:35.755999Z qemu-system-x86_64: Failed to load usb-redir:parser
2022-11-15T12:28:35.756003Z qemu-system-x86_64: error while loading state for instance 0x0 of device '0000:00:02.1:00.0/2/usb-redir'
2022-11-15T12:28:35.757155Z qemu-system-x86_64: Error -1 while loading VM state

Downgrading from usbredir-0.12.0-3.fc37.x86_64 to usbredir-0.10.0-2.fc35.x86_64 fixes the problem.

The same issue is reported against QEMU here: https://gitlab.com/qemu-project/qemu/-/issues/867

and again, people report that downgrading usbredir fixes the issue.

I wasn't able to test with usbredir 0.13.0, because it's not available on Fedora yet.

Can you please look into this? Thanks!

Host system:

Fedora 37
virt-manager-4.1.0-1.fc37.noarch
qemu-kvm-7.0.0-10.fc37.x86_64
usbredir-0.12.0-3.fc37.x86_64
spice-server-0.15.1-1.fc37.x86_64
Assignee
Assign to
Time tracking