How to pass USB device to the guest VM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am trying to access my Galaxy Tab from Samsung KIES running on
Windows 7 inside a KVM VM. This unfortunately does not seem to work as
expected. My Distribution is debian unstable. I therefore have
qemu-system-x86 version 1.4.0+dfsg-1exp, libvirt 1.0.3-1 and
virt-manager 0.9.4-2. 

lsusb shows the Tab as follows:

Bus 001 Device 016: ID 04e8:6877 Samsung Electronics Co., Ltd Galaxy S

in Virt Manager, I can add a USB Host Device 001:016 SAMSUNG
SAMSUNG_Android. This ends up in the VM as "USB 04e8:6877" and shows
up in XML as

    <hostdev mode='subsystem' type='usb' managed='yes'>
      <source>
        <vendor id='0x04e8'/>
        <product id='0x6877'/>
      </source>
    </hostdev>

However, when I start Windows 7, the Galaxy Tab is not detected and
also does not show up in Device Manager.

The KVM process is called as:

qemu-system-x86
 -machine accel=kvm:tcg
 -name mywindows
 -S
 -M pc-1.1
 -m 4096
 -smp 2,sockets=2,cores=1,threads=1
 -uuid 8e6e01e8-2191-9dcc-e2e4-5eb7ae55c450
 -no-user-config
 -nodefaults
 -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/snsvw001.monitor,server,nowait
 -mon chardev=charmonitor,id=monitor,mode=control
 -rtc base=localtime
 -no-shutdown
 -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2
 -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x6
 -drive file=/dev/luksdev/mywindows,if=none,id=drive-virtio-disk0,format=raw
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1
 -netdev tap,fd=23,id=hostnet0
 -device e1000,netdev=hostnet0,id=net0,mac=52:54:00:c4:16:65,bus=pci.0,addr=0x3
 -chardev pty,id=charserial0
 -device isa-serial,chardev=charserial0,id=serial0
 -chardev spicevmc,id=charchannel0,name=vdagent
 -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0
 -device usb-tablet,id=input0
 -spice port=5900,addr=127.0.0.1,disable-ticketing,seamless-migration=on
 -vga qxl
 -global qxl-vga.ram_size=67108864
 -global qxl-vga.vram_size=67108864
 -device usb-host,hostbus=1,hostaddr=16,id=hostdev0
 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4

This looks correct to me as a layman.

Also, when I boot up the same VM with Linux as guest OS, the Galaxy
Tablet does not show up in lsusb.

What is happening on my system so that the USB device is not detected
in Windows and Linux? Any ideas how to fix that?

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 31958061
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 31958062

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users


[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux