Cannot pass sd-card to container
Operating system
Fedoram 40 KDE Atomic
Description
I am using rootless podman (with privileged since I could not get networking to work otherwise). Almost everything is working but I cannot seem to pass my sd-card to the container. It is connected using a USB connector and I can see it in lsusb:
Bus 004 Device 003: ID 05e3:0747 Genesys Logic, Inc. USB Storage
Do I need to pass it as disk instead of USB?
Docker compose
services:
windows:
image: dockurr/windows
container_name: windows
environment:
VERSION: "win11"
ARGUMENTS: "--device usb-host,vendorid=0x05e3,productid=0x0747 --device usb-host,vendorid=0x2047,productid=0x0aa5 -usb"
devices:
- /dev/kvm
- /dev/net/tun
- /dev/bus/usb
cap_add:
- NET_ADMIN
# sysctls:
# - net.ipv4.ip_forward=1
ports:
- 8006:8006
- 3389:3389/tcp
- 3389:3389/udp
stop_grace_period: 2m
volumes:
- /home/ayush/Virtualization/Windows/storage/:/storage
- /home/ayush/Virtualization/Windows/shared/:/shared
privileged:
true
Docker log
Starting Windows for Docker v3.12...
For support visit https://github.com/dockur/windows
CPU: AMD Ryzen 5 4600H with Radeon Graphics | RAM: 11/15 GB | DISK: 463 GB (btrfs) | HOST: 6.9.11-200.fc40.x86_64...
Warning: unexpected clocksource: hpet
Booting Windows using QEMU v8.2.4...
BdsDxe: loading Boot0004 "Windows Boot Manager" from HD(1,GPT,2A8573AF-34A9-407E-92A7-DFE28BB081B2,0x800,0x40000)/\EFI\Microsoft\Boot\bootmgfw.efi
BdsDxe: starting Boot0004 "Windows Boot Manager" from HD(1,GPT,2A8573AF-34A9-407E-92A7-DFE28BB081B2,0x800,0x40000)/\EFI\Microsoft\Boot\bootmgfw.efi
Windows started succesfully, visit http://localhost:8006/ to view the screen...
Screenshots (optional)
No response
see how-do-i-pass-through-a-usb-device there is only one - before device
see how-do-i-pass-through-a-usb-device there is only one - before device
I changed the arguments to the following:
environment:
ARGUMENTS: "-device usb-host,vendorid=0x05e3,productid=0x0747 -usb"
Also tried removing -usb but still nothing.
I ran lsusb in the windows container and I can see that the device was passed to the container successfully:
Bus 004 Device 002: ID 05e3:0747 Generic USB Storage
I can also see that qemu was passed the arguments as expected. Maybe windows needs some drivers to be installed.