Skip to content

Add usb support to io.bus #1697

Closed
@foxtrotcz

Description

@foxtrotcz

Hi,
this issue basically solves my previous one: #1688

I propose implementing usb-storage for use in disk via io.bus
https://qemu-project.gitlab.io/qemu/system/devices/usb.html#connecting-usb-devices

This device connects to qemu-xhci which is already implemented in Incus for USB passthrough. It also supports hotplugging.
Drivers for USB device are also preloaded in Windows installer so it can be used as media for mounting additional drivers during Windows install. It can be also used for mounting Windows install ISO itself which will then allow to install easily on NVMe disk.

I think adding this would greatly improve ability of users to install Windows without using distrobuilder.

I tested it via qemu monitor and it looks to me it works nicely.

drive_add 0 if=none,id=stick,media=cdrom,format=raw,file=/home/user/drivers.iso,file.locking=off
device_add usb-storage,bus=qemu_usb.0,drive=stick,id=usbstorage

Metadata

Metadata

Assignees

Labels

EasyGood for new contributors

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions