[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-discuss] USB Howto ?
From: |
liebrecht |
Subject: |
[Qemu-discuss] USB Howto ? |
Date: |
Mon, 21 Jan 2019 13:36:41 -0500 |
User-agent: |
Roundcube Webmail/1.3.3 |
To add to my previous post.
I did use lsusb to find host and bus id.
I added to the string as follows. And i had to run sudo as it complained
that it didnt have access to usb nodes.
sudo qemu-system-x86_64 -usb -device usb-host,hostbus=1,hostaddr=24
-device piix3-usb-uhci -enable-kvm -soundhw all -smp 4 -m 2048M -boot
d -cdrom /dev/cdrom -drive format=raw,file=hd.img
Doing so I can see that it tries to communicate with the device on the
device, but it gives me the following error.
"failed to open host usb device 1:24"
and qemu doesnt start.
Previous message:
----------------------
All I could find was https://www.linux-kvm.org/page/USB .
I added -device piix3-usb-uhci to my start string and usb hub driver did
appear in my device manager on windows 7 pro guest.
Questions:
The document states that I will have to add strings for every device I
want to pass through.
So I have to presumably ruin something like
(qemu) drive_add 0 id=my_usb_disk,if=none,file=usbdisk.img
before running qemu.
So where do I get the details for the device attached to the linux host
?
Thanks