LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 06-30-2020, 10:29 AM   #1
TheOneKEA
Member
 
Registered: Oct 2003
Distribution: Debian GNU/Linux 11 (amd64) w/kernel 6.0.15
Posts: 299

Rep: Reputation: 30
Question qemu-kvm: iPhone USB passthrough crashes Windows 10 guest on Debian buster


On a Debian buster host running Windows 10 as a guest, running a locally compiled Linux 5.7.5 kernel, with qemu-kvm 1:3.1+dfsg-8+deb10u5:

Plugging an iPhone 6 or a first-gen iPad Pro into a USB 3 port and redirecting the device to the Windows 10 VM while it is running crashes every time.
Plugging an iPhone 6 or a first-gen iPad Pro into a USB 3 port, redirecting the device to the Windows 10 VM while it is not running, and then starting it up causes a crash on boot every time.
In both cases the crash causes an immediate power-off. Restarting the VM with the redirection in place allows the crash to be 100% reproducible. The only way to recover the VM is to remove the redirection and restart it.

No significant crash-related logs were observed in the kernel dmesg or in the plain text system logs in /var/log. A check of journalctl -xe reveals the following entry, repeated several times in line with the instant crash of the VM when the redirection is enabled:

Code:
Jun 30 10:59:26 Betelgeuse libvirtd[823]: internal error: End of file from qemu monitor
The VM has virtio version 0.1.185 installed, including the QEMU guest agent.

I found https://bugs.debian.org/cgi-bin/bugr...cgi?bug=956563 which was filed against qemu-kvm 4.2 in unstable. I'm not in a position to switch to unstable at this time on the host where this Windows 10 VM is running.

Last edited by TheOneKEA; 06-30-2020 at 10:31 AM. Reason: Updated post with package version.
 
Old 07-02-2020, 08:22 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
I don't see how you can fix a Windows bug by looking at the Linux logs. Event Manager on Windows should be the first place to look. Could be this:

https://discussions.apple.com/thread/7486532
 
Old 07-02-2020, 08:27 AM   #3
TheOneKEA
Member
 
Registered: Oct 2003
Distribution: Debian GNU/Linux 11 (amd64) w/kernel 6.0.15
Posts: 299

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by smallpond View Post
I don't see how you can fix a Windows bug by looking at the Linux logs. Event Manager on Windows should be the first place to look. Could be this:

https://discussions.apple.com/thread/7486532
I don’t believe that this problem is in the Windows guest OS - if I had observed BSODs or other lockups I would have gone in that direction. I believe the problem is in QEMU or in the KVM client, based on the logs and behaviors I’ve observed.
 
Old 07-02-2020, 04:01 PM   #4
TheOneKEA
Member
 
Registered: Oct 2003
Distribution: Debian GNU/Linux 11 (amd64) w/kernel 6.0.15
Posts: 299

Original Poster
Rep: Reputation: 30
I was able to solve my problem! One of the following changes eliminated the QEMU/KVM crash and allowed USB passthrough to work properly with Windows 10:

- Switching the GUI connection from VNC to Spice
- Installing the Spice Webdav agent, Spice Guest Agent and Spice QXL video drivers in the Windows 10 guest
- Configuring and activating the QEMU guest agent connection in virt-manager
- Configuring and activating the Spice Webdav connection in virt-manager

Once all of these changes were made the 100% reproducible crash went away.
 
  


Reply

Tags
kvm, qemu, win10, windows



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] "No KVM, No qemu-kvm" Available error while trying to install KVM on CentOS 6.3 sriramdas Linux - Virtualization and Cloud 5 01-01-2013 10:46 AM
LXer: Set up qemu-kvm-1.0+noroms as spice enabled qemu server vs qemu-kvm-spice on Ubuntu Precise LXer Syndicated Linux News 0 05-26-2012 07:41 AM
[Debian/Qemu/KVM] Why qemu --enable-kvm works but not kvm directly? gb2312 Linux - Virtualization and Cloud 2 03-21-2011 02:05 PM
LXer: Attempt of qemu-kvm-0.14 patching via Gerd’s Hoffmann “spice/qxl: locking fix for qemu-kvm” on LXer Syndicated Linux News 0 03-14-2011 01:20 PM
USB Passthrough Problem with KVM/QEMU on FC12 wdsnyc Linux - Virtualization and Cloud 1 02-23-2010 09:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 09:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration