Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

USB PassThrough

Featured Replies

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

 

 

  • 3 weeks later...

Try usb=0 :-)

 

Sent from my Nexus 5 using Tapatalk

 

 

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

 

 

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',]

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.

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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.