April 18, 201412 yr Hello, I am running 6.0-beta4 , does anyone know how to do a USB passthrough so that I can access a usb device in the Ubuntu Guest? I tried updating my config file to the following : name = "ubuntu" bootloader = "pygrub" #kernel = "/mnt/cache/VM/ubuntu/vmlinuz" #ramdisk = "/mnt/cache/VM/ubuntu/initrd.gz" memory = 2048 vcpus = '4' disk = ['phy:/mnt/cache/VM/ubuntu/ubuntu.img,xvda,w',] vif = [ 'mac=00:16:3e:aa:bb:cc,bridge=br0' ] usb=1 usbdevice=[ 'host:0764:0501' ] #extra = "debian-installer/exit/always_halt=true -- console=hvc0" However when I xl console ubuntu , and do lsusb i get the following : lsusb unable to initialize libusb: -99
May 10, 201412 yr Also, please upgrade to beta 5a. Just replace bzroot, bzimage, readme, and xen in the root folder of your flash device and reboot. Sent from my Nexus 5 using Tapatalk
May 11, 201412 yr Upgrading to 5a and usuing USB=0 didnt do a thing for me I have, however, fixed it by passing through the pci adaptor: In my go script (havent checked it works from coldboot but manually tested) # pass through usb ports for node-red serial xl pci-assignable-add 00:1a.0 xl pci-assignable-add 00:1a.1 xl pci-assignable-add 00:1a.2 xl pci-assignable-add 00:1a.7 # xl pci-assignable-list # tests that the adaptor is available for passthru, # test again after vm started to see that they are allocated and my config: name = "Tretflix" bootloader = "pygrub" memory = 3608 vcpus = 2 disk = [ 'file:/mnt/cache/domains/Tretflix/Tretflix-v1.3_x64-NAS-disk1.raw,xvda,w', ] vif = [ 'mac=00:16:3e:01:01:02,bridge=br0' ] bootloader = "pygrub" pci=['00:1a.0','00:1a.1','00:1a.2','00:1a.7',]
May 11, 201412 yr Upgrading to 5a and usuing USB=0 didnt do a thing for me I have, however, fixed it by passing through the pci adaptor: In my go script (havent checked it works from coldboot but manually tested) # pass through usb ports for node-red serial xl pci-assignable-add 00:1a.0 xl pci-assignable-add 00:1a.1 xl pci-assignable-add 00:1a.2 xl pci-assignable-add 00:1a.7 # xl pci-assignable-list # tests that the adaptor is available for passthru, # test again after vm started to see that they are allocated and my config: name = "Tretflix" bootloader = "pygrub" memory = 3608 vcpus = 2 disk = [ 'file:/mnt/cache/domains/Tretflix/Tretflix-v1.3_x64-NAS-disk1.raw,xvda,w', ] vif = [ 'mac=00:16:3e:01:01:02,bridge=br0' ] bootloader = "pygrub" pci=['00:1a.0','00:1a.1','00:1a.2','00:1a.7',] You shouldn't have to pass through the entire bus for USB in order to get a single device, but to be fair, I haven't messed around with this inside a linux VM just yet. Will look at this more in the weeks to come.
May 12, 201412 yr Upgrading to 5a and usuing USB=0 didnt do a thing for me I have, however, fixed it by passing through the pci adaptor: In my go script (havent checked it works from coldboot but manually tested) # pass through usb ports for node-red serial xl pci-assignable-add 00:1a.0 xl pci-assignable-add 00:1a.1 xl pci-assignable-add 00:1a.2 xl pci-assignable-add 00:1a.7 # xl pci-assignable-list # tests that the adaptor is available for passthru, # test again after vm started to see that they are allocated and my config: name = "Tretflix" bootloader = "pygrub" memory = 3608 vcpus = 2 disk = [ 'file:/mnt/cache/domains/Tretflix/Tretflix-v1.3_x64-NAS-disk1.raw,xvda,w', ] vif = [ 'mac=00:16:3e:01:01:02,bridge=br0' ] bootloader = "pygrub" pci=['00:1a.0','00:1a.1','00:1a.2','00:1a.7',] You shouldn't have to pass through the entire bus for USB in order to get a single device, but to be fair, I haven't messed around with this inside a linux VM just yet. Will look at this more in the weeks to come. I had the same issue with USB devices and ended up getting an add-on USB3.0 controller to pass through to my Windows VM. -Marcus
Archived
This topic is now archived and is closed to further replies.