-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows Installer triggers QEMU USB reset, aborting installation #3194
Comments
Found out, after playing around a bit more that this also happens from the command prompt (from the installer). As you can see in the output of wmic, the D: drive, which has the ISO drive, suddenly is gone: Another thing I noticed: When I link two virtual CD/DVD drives to the VM. Once this happens, both of them get disconnected. |
From the debug log these two lines stand out:
I don't know what causes this, but searching online reveals these are QEMU messages related to USB2 emulation. First line; second line Could you try a different interface for the installer ISO? (not sure if this is possible with ARM system & the W11 installer) From the log I can see UTM generates three different USB controllers. ICH9 UHCI and ICH9 EHCI are for USB redirect without USB3 checked; and QEMU XHCI is default for ARM system. To see if the EHCI reset from the error is related to the USB2 controller generated, you can try this: You could set the installer ISO interface to none and add this line to the QEMU tab (scroll down where it says New...):
This connects the CD drive to the USB XHCI bus. Please test it and let us know if the problem persists, and whether the reset message is still in the log. If the problem persists, I would suggest you set the USB sharing number in the Sharing tab to 0 and try again. |
@conath thanks a lot for looking into this. Just tried this once so far and immediately managed to get to the next phase of the install. Will try this a few more times to be sure it's not just a coincidence and will update here. |
Thank you for testing! It would seem we've discovered a QEMU bug. However as you noted there is a speed benefit when we assign the USB controller manually. So I would suggest that the way the Drives configuration is interpreted needs to be changed. Any USB drives should be assigned to the XHCI bus, if available. @osy This will have the side effect that it works around the bug. |
Just gave this another try to be sure and this time, the install failed in the same way, using I'm trying now with edit: edit2: Need some more time to play around with this, will try to find some time tomorrow. |
Thanks again for testing and please export the logs after each test. Will need the debug log for failed attempts to tell if it's hitting the same issue or not. |
@conath Here's what I captured: macOS 12.0.1, UTM 2.3.1, Windows 11 ISO (.1 build from UUP Dump on macOS) ISO is fine, used it with success in Parallels. |
I can see the reset error occurs when using the |
Fixes utmapp#3194 (Windows 11 installer causes QEMU EHCI reset, aborting install)
Just tested this myself and I can reproduce the "Windows install aborted" issue still, just like @AwlsomeAlex. I have the identical debug log like this as well (by which I mean no USB reset error is logged - because I'm using the USB3 controller). After trying a second time after closing and re-opening the VM window, it worked. 🤪 In conclusion, the Windows 11 install is flaky and the PR #3216 increases the speed greatly, so it's still relevant. |
Fixes utmapp#3194 (Windows 11 installer causes QEMU EHCI reset, aborting install)
Still hitting this occasionally @osy (will try to grab a QEMU log if it happens) |
I'm encountering this issue on 2.4.1. Not seeing any error in the debug log but attached if you want to review.. Windows 11 22499.1000 / UTM 2.4.1 / MacOS 12.0.1 / M1 Pro 10-core MBP |
I have also been able to reproduce this today using UTM 2.4.1 and Windows 11 ARM Insider Preview 22509.1011 ISO. I tried installing normally twice (with the GUI) and once using Edit: same error as in the original issue at the top of the page. |
@kad-kroont Here is an idea I have not tested: you could convert the installer ISO to QCOW2 and import into UTM as a disk drive. Set disk interface to NVMe and install from that. |
@conath if you can provide steps/detail, I'll give it a try.
|
I have tried the suggestion of converting the ISO to a QCOW2. This doesn't work, I think because the ISO is multiple partitions, one is EFI, and the other contains install data. Not sure, just a guess. I don't think it maps to a normal NVMe drive with GPT partitions. The Windows installer tells me that files are missing, and asks me to browse to the location of the necessary drivers. This isn't the exact error message but it's something along those lines. I wonder, if there is a way to put the ISO inside of a QCOW2, convert the ISO to QCOW2, mount both of them to the VM, and read the install data from the ISO inside of the QCOW2 after booting the converted ISO. I'm gonna try that tomorrow. |
I had to use |
I downloaded then I had to do the regedit.exe workaround to be able to get past "This PC can't run Windows 11" secure boot check. then I get this error after attaching the CD/DVD (ISO) Image the default "Import drive" way. It says interface is "USB"
|
@jensdepuydt On your website you include a section about adding the QEMU parameter to bypass this issue. Is this still up to date? |
@conath Do you see the same error message in the debug log after the USB bus argument change? |
@osy No, I saw the same Windows Installer error. The debug log error was not present. Interestingly, in a more recent test I noticed parts of or the entire USB bus seemed to stop working when the install fails this way. |
I've been able to trigger this but not consistently. If someone can find a way to more consistently trigger it and/or with QEMU unmodified, we can better debug it. |
I faced the same issue every time I tried to install something from a USB/CD Drive on a working Windows VM, the drive just becomes unavailable at some point. Tried adding the drive file after boot, ejecting it, changing the file. Same problem every time. Converting to qcow2 and switching USB3 / shared device count has no effect on it. Nothing related to USB in the logs. Setting |
I tested ~20 installs without issue using the latest commit. |
@osy thank you so much. Could you cut a binary release please so users do not need to download that commit + build the app? |
Patience |
When trying to install Windows 11 ARM version, during the second step of the installation (Getting files ready for installation), this randomly ends with error 0x800701B1 (Windows cannot install required files. Make sure all files required for installation are available.)
This seems to happen at random moments during this phase, somewhere between 0 and 100%. A single time, without any specific modifications to the settings, I managed to get things going to 100%. After that, the rest of the install worked as expected and so did the installed Windows version.
When trying to restart setup, without a VM restart, I noticed that the CD/DVD-drive is no longer readable. Changing the ISO does not seem to help.
Configuration
Debug log
debug.log
The text was updated successfully, but these errors were encountered: