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

Suppress QEMU default devices (CD, floppy) #2538

Closed
conath opened this issue May 16, 2021 · 0 comments · Fixed by #2612
Closed

Suppress QEMU default devices (CD, floppy) #2538

conath opened this issue May 16, 2021 · 0 comments · Fixed by #2612
Labels
enhancement New feature or request qemu QEMU related settings Anything in the setting/create views
Milestone

Comments

@conath
Copy link
Contributor

conath commented May 16, 2021

QEMU provides default devices for each virtual system. Due to the way the QEMU device "suppression" works, sometimes we end up with extra devices in the guest.

For example, when using a q35 guest with a USB CD drive added, the QEMU default IDE CD drive is still generated and visible in the guest, with no way to actually insert an ISO into it from UTM's UI.

Screenshot of Windows Explorer showing two CD drives, one of them is selected

In the above screenshot, you can see two CD drives. The top one is the QEMU default and the bottom one is the USB CD drive I added through the config/settings UI.

I'd suggest that the argument -nodefaults should be passed to all VMs, as UTM generates all the devices itself. I tested this with the VM from the above screenshot and it resolved the issue (the IDE CD drive disappeared from the guest and the USB one was still there).

-nodefaults suppresses all the default devices mentioned above, plus a few other things such as default SD-Card drive and default monitor.

@conath conath added enhancement New feature or request settings Anything in the setting/create views qemu QEMU related labels May 16, 2021
@osy osy added this to the v2.2 milestone May 23, 2021
@osy osy modified the milestones: v2.2, v2.1.2 Jul 5, 2021
@osy osy closed this as completed in #2612 Jul 10, 2021
osy added a commit that referenced this issue Jul 10, 2021
Add nodefaults QEMU argument to suppress default devices #2538
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request qemu QEMU related settings Anything in the setting/create views
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants