Skip to content
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

Can't start Raspberry Pi Zero VM due to usb-ehci added #2505

Open
conath opened this issue May 9, 2021 · 6 comments
Open

Can't start Raspberry Pi Zero VM due to usb-ehci added #2505

conath opened this issue May 9, 2021 · 6 comments
Labels
bug Something isn't working settings Anything in the setting/create views
Milestone

Comments

@conath
Copy link
Contributor

conath commented May 9, 2021

UTM adds the -device usb-ehci to VMs even when the system is a Raspberry Pi Zero. This is not supported and means the VM won't start.

@conath conath added bug Something isn't working settings Anything in the setting/create views labels May 9, 2021
@osy
Copy link
Contributor

osy commented May 10, 2021

Can you check if -usb works? The dev branch with the USB work uses -usb now.

@conath
Copy link
Contributor Author

conath commented May 10, 2021

I can confirm that -usb works with the raspi0 system, but verified using qemu from Terminal instead of UTM.

@osy osy added this to the v2.1 milestone May 11, 2021
@osy osy closed this as completed in 8fe2765 May 11, 2021
@fgenoese
Copy link

Has this fix been removed? It appears that usb-ehci1 is being added in the current version, see:

[self pushArgv:[NSString stringWithFormat:@"ich9-usb-ehci1,id=usb-controller-%d", j]];

This prevents Raspberry Pi systems being emulated. Running UTM on macOS I get the following error:
qemu-aarch64-softmmu: -device ich9-usb-ehci1,id=usb-controller-0: No 'PCI' bus found for device 'ich9-usb-ehci1'

@conath
Copy link
Contributor Author

conath commented Dec 25, 2021

@fgenoese The ICH9 USB controller is added if USB sharing is selected. (This specific USB controller is required to make QEMU USB sharing work AFAIK)
So to start your VM, you will need to set the number of USB sharing ports to 0.

@fgenoese
Copy link

Thanks @conath, that worked. Just wanted to add that the field is greyed out when in console display mode saying that "USB sharing is not supported in console display mode".

A reasonable approach might be to add if !(self.configuration.displayConsoleOnly) around the whole block (starting at L450). What do you think?

@conath
Copy link
Contributor Author

conath commented Dec 25, 2021

That sounds good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working settings Anything in the setting/create views
Projects
None yet
Development

No branches or pull requests

3 participants