tianon / docker-qemu

Dockerization of supported QEMU releases
https://qemu.org
136 stars 34 forks source link

Fix missing libusbredirparser1 #13

Closed tlex closed 4 years ago

tlex commented 4 years ago

Currently, the device usb-redir isn't available due to a missing library. This commit fixes that.

$ docker run --rm -it tianon/qemu:latest bash
root@c13622dfc6bf:/# qemu-system-x86_64 -device help|grep redir
Failed to open module: libusbredirparser.so.1: cannot open shared object file: No such file or directory
root@c13622dfc6bf:/#

However, once the package libusbredirparser1 is installed, the device is available:

root@c13622dfc6bf:/# apt-get -qq update && apt-get install libusbredirparser1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  lsb-base
Use 'apt autoremove' to remove it.
The following NEW packages will be installed:
  libusbredirparser1
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 17.1 kB of archives.
After this operation, 59.4 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster/main amd64 libusbredirparser1 amd64 0.8.0-1 [17.1 kB]
Fetched 17.1 kB in 0s (253 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libusbredirparser1:amd64.
(Reading database ... 6774 files and directories currently installed.)
Preparing to unpack .../libusbredirparser1_0.8.0-1_amd64.deb ...
Unpacking libusbredirparser1:amd64 (0.8.0-1) ...
Setting up libusbredirparser1:amd64 (0.8.0-1) ...
Processing triggers for libc-bin (2.28-10) ...
root@c13622dfc6bf:/# qemu-system-x86_64 -device help|grep redir
name "usb-redir", bus usb-bus
root@c13622dfc6bf:/#

Signed-off-by: Alex Thomae git@alex.thom.ae

tlex commented 4 years ago

Please note this only affects QEMU 5.1, the library is properly linked to the older versions.

tianon commented 4 years ago

Sorry for the delay -- LGTM, thanks! :+1: