INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Installing jriver on unraid 6  (Read 4809 times)

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4226
Installing jriver on unraid 6
« on: January 07, 2016, 04:57:32 pm »

Having just set this up, I thought it might be useful to just outline the steps required to get this working. Note that a VM is used here rather than docker for the reasons specified at the end of http://yabb.jriver.com/interact/index.php?topic=99402.0 i.e. docker is limited by the host kernel and the host kernel has no audio drivers.

It's pretty straightforward but there are a few prerequisites to be aware of;

1) your system (motherboard) must support IOMMU (aka VT-d in Intel-ese)
2) you must have an audio device to pass through
3) you need to be ready to run a VM on your unraid system (i.e. you need a cache drive)

If you meet these prereqs then the steps are

- get unraid6 installed and working -> http://lime-technology.com/wiki/index.php/UnRAID_Manual_6#Getting_Started
- create a VM to host jriver -> http://lime-technology.com/wiki/index.php/UnRAID_Manual_6#System_Preparation
   - some points to note;
       - you will need a public bridge so create that via the network settings page
       - put your jriver licence on a share and pass that through to the vm
       - obviously you need to pass your media shares through (I assume unraid is the host for the media here)
- install debian (or whatever) as usual (e.g. assign the netinst iso to the VM, start the VM, it will boot into the installer, install as normal)
- install jriver as normal (e.g. https://yabb.jriver.com/interact/index.php?topic=99333.0)

At this point, you have a working jriver installation but no audio because the unraid kernel provides no audio drivers whatsoever. Therefore we need to tweak our VM config in order to passthrough an audio device and then configure jriver to use that device.

1) find your audio device using lspci
my unraid system has an asrock z87 extreme6 motherboard and I want to pass through the onboard audio
Code: [Select]
# lspci
00:00.0 Host bridge: Intel Corporation 4th Gen Core Processor DRAM Controller (rev 06)
00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 05)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I217-V (rev 05)
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d5)
00:1c.2 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #3 (rev d5)
00:1c.3 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #4 (rev d5)
00:1c.4 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #5 (rev d5)
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation Z87 Express LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05)
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 05)
02:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 01)
03:00.0 Ethernet controller: Intel Corporation I211 Gigabit Network Connection (rev 03)
04:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 01)

from here we can see two candidates

Code: [Select]
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)

in my case I want 00:1b:0

2) make sure your system/bios is configured to enable IOMMU (VT-d), refer to your manual for details

3) pass this device to your VM
stop the VM
go to "edit XML"
apply the instructions found in https://lime-technology.com/forum/index.php?topic=38259.msg368555#msg368555
in my case this meant adding

Code: [Select]
   <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x00' slot='0x1b' function='0x0'/>
      </source>
    </hostdev>

4) start the VM
5) verify the audio device is available & works & then configure jriver as usual to use it

I think that sums it up.
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72438
  • Where did I put my teeth?
Re: Installing jriver on unraid 6
« Reply #1 on: January 08, 2016, 12:42:35 am »

Thanks for taking time to write it up.
Logged
Pages: [1]   Go Up