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.

what to passthrough, lspci

Featured Replies

Hello folks,

I'm attempting to virtualize my rig. I've got an Asus F2-A85-V Pro, and AMD A8 5800K Quad-core CPU.

 

I understand I need to "passthrough" hardware that unRaid needs to function.

 

1. internal USB header with USB stick with PRO key on it

2. Super Micro AOC-SASLP-MV8

3. motherboard SATA ports

 

I have a different BYTECC PCI Express SATA controller for the small 320GB drive I'm using for Xen.

 

Would you take a peek at the output from "lspci" and help get me the correct hardware codes that need to be passed through? Thanks!

lspci-devices.png.acd597802384cb4859435bd2631ea7eb.png

USB controller so unbraids licence and config can be read, and the sata controller all your drives are on.

 

I'm no expert though,just learning about xen, looking to use it myself so will follow this thread with interest.

 

Sent from my GT-I9100 using Tapatalk

 

 

You'll have to experiment via trial and error as to which hub is connected via which device id (the codes to which you refer). Take a look at my blog for info on how to pass through stuff to unraid with Xen.

 

Specifically this post http://blog.ktz.me/?p=116

 

Sent from my Nexus 5 using Tapatalk

 

  • Author

I don't seem to have have lsusb

 

[root@xen-mother sbin]# lsusb -t
-bash: lsusb: command not found
[root@xen-mother sbin]# which lsusb
/usr/bin/which: no lsusb in (/opt/xensource/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
[root@xen-mother sbin]#

 

[root@xen-mother yum.repos.d]# yum install usbutils
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
No package usbutils available.
Nothing to do
[root@xen-mother yum.repos.d]#

 

 

 

[root@xen-mother yum.repos.d]# yum list | grep usb
libusb.i386                      0.1.12-5.1                            installed
[root@xen-mother yum.repos.d]#

 

 

 

I got Xen server from here:

http://www.xenserver.org/open-source-virtualization-download.html

It's Xen Server version 6.2, and is running on it's own hard drive and own pci/SATA controller.

 

I do have 'lsmod' and 'lspci' in /sbin

 

Can/should I get lspci from somewhere else? Or can I add a bunch of arguments on a different command to get a similar result as the "lsusb -t"

 

Side note: These forum posts are good and all, but this should have a WIKI PAGE that you maintain. Later today, I'll spend sometime and mirror your entire post(s) over there and let you know when it's done.

 

thanks Mr. Deeds,

drew

Port Angeles WA

I don't seem to have have lsusb

 

My bad. I do not have a test XenServer running at the moment and apparently lsusb is not installed by default.

 

Easiest way to find out...

 

1. Install a Linux Distro Live CD (Linux Mint, Ubuntu, Fedora, etc.) onto a USB stick.

 

2. Plug in the unRAID Flash Drive in the usb port you want to use.

 

3. Plug in the Linux Distro Live CD USB Stick into a different usb port and boot into it.

 

4. Goto a command line and run the following commands earlier in the thread.

 

Once you know the PCI address of the usb controller, it will be the same in XenServer.

 

Ddeeds. When I setup unraid VM on xenserver I didn't need to pass through the USB controller that the unraid USB stick was plugged into. From memory all I needed to do was assign it to the unraid VM in xencenter. This was different from your guide but worked (picked up my pro license etc).

  • Author

I started to go this route, but once I'd attached the flash drive to the unRaid VM it lost it's GUID. I wasn't able to set the GUID inside unraidvm > storage > Custom fields

GUID > xxxx-xxxx-0000-xxxxxxxxxxxx

 

or setting other attributes like idDevice or something. Once I booted up unRaid, Main page > flash > no GUID would be set for the flash drive.

Ddeeds. When I setup unraid VM on xenserver I didn't need to pass through the USB controller that the unraid USB stick was plugged into. From memory all I needed to do was assign it to the unraid VM in xencenter. This was different from your guide but worked (picked up my pro license etc).

 

Great News. I need to load XenServer on one of my test machines and see if things have changed since my guide was posted.

 

Thanks again for the update.

 

No worries. For reference my CPU & mb are Xeon E3-1225 v2 and Asrock  z68-m usb3, so there might be subtle differences how pass through is treat for Intel vs AMD, as I also had to pass through the whole pcie slot for one of my cards (a marvel chip set sata card) while for my M1015 card I only needed to pass through the card itself. Not sure why but just went with what worked...

  • Author

I was able to move forward with most of this.

I ran into a couple of possible issues.

 

I booted into my server using usb linux Mint.

 

The lsusb commands worked great, see attached pic.

 

The reported BUS ID and DEV ID didn't not match anything that was reported from the 'lspci' command while server was running Xenserver, see second attached pic.

 

I was able to get through the lsusb steps you'd listed here in this post. I got Bus 001, DevID 03. But then you said I should do a:

lsusb -D /dev/bus/usb/001/008 | more

and get the iSerial. My iSerial didn't look anything like a normal one.

It was:

 

09021000000000000000002748

 

rather than a XX:xx.xx sort of thing.

 

Regardless, I tried passing that long iSerial through the steps on the main page

/boot/extlinux.conf

> added "pciback.hide(01:00.0)(02:00.0)(09021000000000000000002748) "

 

executed:

xe vm-param-set other-config:pci=0/0000:01:00.0,0/0000:02:00.0,0/0000:09021000000000000000002748 uuid=1a14826a-0d34-c556-c24c-e139b612fef2

 

I tried booting up the unRaid, and got an error "Internal error: xenopsd internal error: Xenctrl.Error("38: Function not implemented")

 

 

I've heard of installing ubuntu, then running Xen on top of that. Maybe I should give that a spin. I'll take a hack at that tomorow after chores.

 

thanks!

Screenshot_from_2013-11-22_04-53-29.png.0e1f8a89a8938fd5c16560f428a76926.png

anotherscreen-lspci.png.b22341f779a34eeee897c3377c18c358.png

  • Author

*side note here, I did "sudo -s" which upgraded all these commands to root access.

 

lsusb -t

5YmMK6R.png

I see the two "usb-storage" devices there. They are the UNRAID flash drive, and the Linux-Mint flash drive.

 

M7czN9I.png

located the UNRAID flash drive on Bus 001, Device 002.

 

OOooooohhhhhh, I see what I missed! The USB CONTROLLER vs the USB BUS thingy!

To display my apologeticness, I will make this graphic:

btfm7JX.png

 

4hg3Rm1.png

Boom, 0000:00:12.2, totally reasonable.

 

 

 

unRaid comes up pre-passthrough. an ifconfig shows it's IP as 192.168.11.110, correct for a DHCP computer on my network. I can ping it, but I get no webGUI via a browser.

 

Editing the /boot/extlinux.conf

 

I have four sections in mine, "label xe", "label xe-serial", "label safe", "label fallback", "label fallback-serial". I edited the "append..." line in the "label xe" section.

 

you talked about editing the correct part/section of the code. "Make sure you edit the "/boot/vmlinuz-2.6-xen" section (the one in the middle) not the /boot/xen.gz (the beginning) or the "/boot/initrd-2.6-xen.img" section (the end)."

      From the picture you put, it looks like it should be this:

append /boot/xen.gz mem=1024G dom0_max_vcpus=4 dom0_mem=752M,max:752M watchdog_timeout=300 lowmem_emergency_pool=1M crashkernel=64M@32M cpuid_mask_xsave_eax=0 console=vga vga=mode-0x0311 --- /boot/vmlinuz-2.6-xen root=LABEL=root-jabmmiew ro xencons=hvc console=hvc0 console=tty0 quiet vga=785 splash pciback.hide=(01:00.0)(02:00.0)(00:12.2) --- /boot/initrd-2.6-xen.img

 

But when you talk about the middle one, not the beginning or end, I would think it would look like this:

append /boot/xen.gz mem=1024G dom0_max_vcpus=4 dom0_mem=752M,max:752M watchdog_timeout=300 lowmem_emergency_pool=1M crashkernel=64M@32M cpuid_mask_xsave_eax=0 console=vga vga=mode-0x0311 pciback.hide=(01:00.0)(02:00.0)(00:12.2) --- /boot/vmlinuz-2.6-xen root=LABEL=root-jabmmiew ro xencons=hvc console=hvc0 console=tty0 quiet vga=785 splash --- /boot/initrd-2.6-xen.img

 

The word "splash" only appears once in that line, so I used that to figure where the addition goes.

 

running

xl  pci-list-assignable-devices

does get the three devices I passed through to show up, that's great!

cqwVN91.png

 

     

unRaid does boot at this point. Although it repeats this "waiting for /dev/disk/by-label/UNRAID

/dev/disk/by-label/UNRAID not found!

 

Can't get to unRaid web GUI at this point.

 

executed:

xe vm-param-set other-config:pci=0/0000:01:00.0,0/0000:02:00.0,0/0000:00:12.2 uuid=0b7ea9e7-5ae6-ed8d-14bf-dfc5a0a660f2

 

When I try and run unRaid vm, I get an error in XenCenter "Internal error: xenopsd internal error: Xenctrl.Error("38: Function not implemented")

 

xl  pci-list-assignable-devices

still comes up with the three devices.

 

I executed

xe vm-param-set other-config:pci=0000:01:00.0,0000:02:00.0,0000:00:12.2 uuid=0b7ea9e7-5ae6-ed8d-14bf-dfc5a0a660f2

leaving off the 0/ at the beginning of each device. Now the unRaid VM comes up! But still no access to webGUI.

 

Maybe there's something wrong with the .vhd file I downloaded, and Imported to the XenCenter?

Here's a ps -ef, and ls /mnt on the unRaid VM.

YUjiDpKs.png

 

Now I am close!

  • Author

Well, still no joy.

 

I tried swapping the vanilla unRaid flash drive to a different USB port, I've tried both VHD's.

[root@xen ~]# xl  pci-list-assignable-devices

0000:01:00.0

0000:02:00.0

0000:05:00.0

The three devices come up fine.

0000:01:00.0 <- RAID sata controller

0000:02:00.0 <- small sata controller

0000:05:00.0 <- vanilla USB controller

 

If I unassign the other-config:pci=XXX

[root@xen ~]# xe vm-param-set other-config:pci= uuid=52650b51-2424-9274-981d-c9820d1d450b

unRaid does come up, but isn't reachable via web GUI.

 

I tried assigning only the vanilla USB controller, no boot, error 38.

 

Earlier, I saw a post you did asking for a few things. I'll provide those here.

 

[root@xenserver ~]# xe vm-list

uuid ( RO)          : 52650b51-2424-9274-981d-c9820d1d450b

    name-label ( RW): dumbo-vm

    power-state ( RO): halted

 

 

uuid ( RO)          : e1d274fb-e95b-48ea-9495-bad27d306d14

    name-label ( RW): Control domain on host: xenserver

    power-state ( RO): running

 

The commands, exactly as I ran them.

 

nano -w /boot/extlinux.conf

extlinux -i /boot

reboot

Imported Xen-unRAID-5.0.1.vhd with settings from your main post.

[root@xenserver ~]# xe vm-param-set other-config:pci=0/0000:01:00.0,0/0000:02:00.0,0/0000:05:00.0 uuid=52650b51-2424-9274-981d-c9820d1d450b

Run the unRaid VM - error message:

Nov 24, 2013 1:54:45 AM Error: Starting VM 'dumbo-vm' - Internal error: xenopsd internal error: Xenctrl.Error("38: Function not implemented")

 

Thanks for your time Deeds.

vm-param-list.txt

lspci.txt

extlinux.conf.txt

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.