2024-06-28 06:00:16 -07:00
|
|
|
.. _winusb_commands:
|
|
|
|
|
|
|
|
winusb for Windows
|
|
|
|
===================
|
|
|
|
|
|
|
|
.. warning::
|
|
|
|
|
|
|
|
This command requires to be launch as an Administrator.
|
|
|
|
|
|
|
|
|
2024-06-28 11:49:05 -07:00
|
|
|
`winusb` is a set of sub command that allow to directly attach USB device to the container with ``usbipd.exe``.
|
2024-06-28 06:00:16 -07:00
|
|
|
|
|
|
|
Here are the supported options:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
Manage WinUSB devices
|
|
|
|
|
|
|
|
Usage:
|
|
|
|
rfswift winusb [command]
|
|
|
|
|
|
|
|
Available Commands:
|
|
|
|
attach Attach a bus ID
|
|
|
|
detach Detach a bus ID
|
|
|
|
list List bus IDs
|
|
|
|
|
|
|
|
|
2024-06-28 11:49:05 -07:00
|
|
|
To list USB device on the hosts you can issue ``list`` as follows:
|
2024-06-28 06:00:16 -07:00
|
|
|
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
rfswift winusb list
|
|
|
|
|
|
|
|
|
|
|
|
Which will give a list of devices and the status.
|
|
|
|
|
2024-06-28 11:49:05 -07:00
|
|
|
To attach the desired device to a container, you need to use ``attach`` with argument ``-i`` command as follows:
|
2024-06-28 06:00:16 -07:00
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2024-06-28 11:49:05 -07:00
|
|
|
rfswift winusb attach -i <usb ID like: 1-4>
|
2024-06-28 06:00:16 -07:00
|
|
|
|
|
|
|
|
2024-06-28 11:49:05 -07:00
|
|
|
You can also detach the device with the ``detach`` command.
|