Skip to content

Conversation

@stgraber
Copy link
Member

USB mass storage with QEMU is pretty weird. There is no way to pass through the media argument to have it give us a CD-ROM drive on its own, instead the usb-storage driver only does disk devices and generates an internal SCSI device.

To fix this, we need to switch to either usb-bot or usb-uas. The former still uses the usb-storage driver and doesn't need anything special at the guest level, so that's how I went here.

With this in place, we can now have anything marked as an ISO show up as a cdrom device rather than mass storage. That's particularly important for the Windows installer which with this will now function without any need for repacking of the install ISO.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
@stgraber
Copy link
Member Author

@bensmrs I don't know if that helps with any of your stuff, but it might. Took be a solid day to figure this stuff out...

@bensmrs
Copy link
Contributor

bensmrs commented Aug 18, 2025

Wow, great catch!

USB mass storage with QEMU is pretty weird

At this point, what surprises me is when QEMU isn’t weird.

I don't know if that helps with any of your stuff, but it might

Nah, my stuff is mostly sorted out, I’m just lacking some time to work on it. But hey, we never know :)

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
@hallyn hallyn merged commit f89169e into lxc:main Aug 19, 2025
90 of 106 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants