[Qemu] Reconnaissance de clé USB.
Lien : https://wiki.archlinux.org/index.php/QEMU#Pass-through_host_USB_device
I/ Sur l’hôte.
1/ Insérer la clé Usb.
2/ Vérification des caractéristiques de la clé Usb.
$ lsusb
...
Bus 002 Device 044: ID 058f:6387 Alcor Micro Corp. Flash Drive
...
Caractéristique technique :
hostbus = 002
hostaddr = 044
vendorid = 058f
productid= 6387
3/ Changement de permission du ‘device’.
$ sudo chmod 666 /dev/bus/usb/002/044
4/ Paramètrage de Qemu.
-usb -device usb-ehci,id=ehci -device usb-host,bus=ehci.0,vendorid=0x058f,productid=0x6387
II/ Sur l’invité.
1/ Vérification.
$ lsusb
Bus 001 Device 002: ID 058f:6387 Alcor Micro Corp. Flash Drive
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
fd0 2:0 1 4K 0 disk
sda 8:0 0 60G 0 disk
└─sda1 8:1 0 60G 0 part /
sdb 8:16 1 59G 0 disk
├─sdb1 8:17 1 3,9G 0 part /media/util01/nekrolin
├─sdb2 8:18 1 3,9G 0 part /media/util01/NEKROWIN
└─sdb3 8:19 1 51,2G 0 part /media/util01/nekrovd
sr0 11:0 1 1024M 0 rom
$ ls
1-Lubuntu_1804_64-Initialize_Network.sh
2-Lubuntu_1804_64-Initialize_Virtualization.sh
3-Lubuntu_1804_64-Qemu_21101-Lubuntu_1804_64-Virtualize_Crossfire.sh
3-Lubuntu_1804_64-Qemu_21101-Lubuntu_1804_64-Virtualize_Docker.sh
3-Lubuntu_1804_64-Qemu_21101-Lubuntu_1804_64-Virtualize_Doom.sh
...
4-Lubuntu_1804_64-Desactivate_Network.sh
README.md
VERSION
util01@station01:/media/util01/nekrolin/RUN$
Comments are closed, but trackbacks and pingbacks are open.