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

Removable USB Drives are always CDROM #5171

Closed
pmsjt opened this issue Apr 4, 2023 · 5 comments
Closed

Removable USB Drives are always CDROM #5171

pmsjt opened this issue Apr 4, 2023 · 5 comments
Milestone

Comments

@pmsjt
Copy link

pmsjt commented Apr 4, 2023

Describe the issue

When adding a removable, USB Disk image, UTM still passes a CDROM parameter to QEMU.

In other words:

		<dict>
			<key>Identifier</key>
			<string>2E751467-FB9D-4548-9242-0C2DEE3DC342</string>
			<key>ImageType</key>
			<string>Disk</string>
			<key>Interface</key>
			<string>USB</string>
		</dict>

Results in

-device usb-storage,drive=drive2E751467-FB9D-4548-9242-0C2DEE3DC342,removable=true,bootindex=1,bus=usb-bus.0 -drive if=none,media=cdrom,id=drive2E751467-FB9D-4548-9242-0C2DEE3DC342

Note the media=cdrom parameter.

Configuration

  • UTM Version: Version 4.1.6 (75)
  • macOS Version: 13.3
  • Mac Chip (Intel, M1, ...): M1
@osy
Copy link
Contributor

osy commented Apr 15, 2023

That is intended (USB = USB removable CD drive). What purpose is there for a removable USB drive that cannot be achieved as a USB removable CD drive?

@pmsjt
Copy link
Author

pmsjt commented Apr 15, 2023

Erm... an USB thumbdrive for example? Something I can inject, write to and eject without having to reboot the VM. I am achieving this by adding custom QEMU parameters and using the QEMU console, but that defeats the purpose of using UTM.

@osy
Copy link
Contributor

osy commented Apr 15, 2023

Duplicate of #5079

@osy osy marked this as a duplicate of #5079 Apr 15, 2023
@osy osy closed this as not planned Won't fix, can't repro, duplicate, stale Apr 15, 2023
@pmsjt
Copy link
Author

pmsjt commented Apr 15, 2023

I don't understand why you are closing this. This is clearly a UI bug. The UI has the option to create am external USB CD or disk but the setting has bo effect. Despite of what the user selects, the result is always CD. Some wires are crossed or cut here.

@osy osy reopened this Apr 15, 2023
@osy osy marked this as not a duplicate of #5079 Apr 15, 2023
@osy osy added this to the v4.2 milestone Apr 15, 2023
@osy osy closed this as completed in 98be4e5 Apr 17, 2023
@pmsjt
Copy link
Author

pmsjt commented Apr 17, 2023

This is great @osy ! Can't wait to give it a try :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants