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.

8.1 ODD Sata passthrough Script (DVD-RW, Bluray-R, CD-R, Etc)

Featured Replies

SATA Card passthrough in Windows.cfg appears to be broken  2014.05.27

 

(Symptoms http://lime-technology.com/forum/index.php?topic=32344.15)

The short story - when passing the PCI or PCIe slot of the SATA controller through to the VM.cfg file, the VM attempts to boot from the controller rather than from the VM.ISO image.  You may confirm this by VNCing into the VM immediately after starting it.

 

Physically Install the Sata Card.  You MAY need to flash the bios to IDE, non-raid

 

In unraid determine what lspci to hide from unraid in /boot/syslinux/syslinux.cfg

  • PCI = ['05:00.2'] #this method does NOT appear to work in 8.1 VM
  • xl pci-attach windows 0000:05:02.0 #this method works in 8.1 VM

 

Tested and Working Cards:

  • PCIe1 StarTech 2 Sata - Chipset ASM1062
  • PCI    Syba SD-SATA-4P Flashed to b5500 bios (IDE) 4 Sata - Chipset Sil3114

Onetime Actions

  • Start Windows 8.1 VM
  • Install the Non-Raid Drivers.  May be called IDE.

 

To allow Normal Optical Disk Drive use:

 

Manual Mount ODD in Windows

  • after starting the VM
  • Using Unraid Putty or via Unraid Terminal I issue:  xl pci-attach windows 0000:05:02.0

 

Script Mount ODD in Windows

  • In C:\Program Files create a folder called Putty Script
  • Create 2 files in here:  cmd.bat and cmd.txt
  • Download in this folder putty.exe and plink.exe from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
  • Using Windows gpedit.msc Windows Settings/Name Resolution Policy/Scripts(Startup/Shutdown)/Startup -> Add New -> navigate to cmd.bat
  • If gpedit.msc does not work for you, simply copy cmd.bat into the windows startup folder

 

The Negative - this WILL store your unRaid Root password in a ASCII file

 

cmd.bat

ssh.cmd
@echo on
cd C:\Program Files\Putty Script
Start putty.exe -ssh tower2 -l root -pw [root password] -m cmd.txt

Note:  you may wish to set [@echo off].  I have it on so that the cmd window displays - IF the script sticks then it will show me the message.  I will likely turn this to off once I know the script will run reliably through many reboots.

 

cmd.txt

xl pci-attach windows 0000:05:02.0

I have my WHS2011 booting from an IMG file on my cache drive and have passed through an M1015 controller for StableBit Drive Pool to use as a pooled drive - 8 2TB drives.  When I first did this my WHS2011 VM wanted to boot from the M1015 controller.  I got into the card BIOS and turned off all boot options.  Once I did that it then booted from my cache drive IMG file just fine.  So if the SATA card bios boot feature can be turned completely OFF it might work for your card as well.  The M1015 was flashed with P18 IT firmware and the BIOS so that I could change bios settings like this.  Why I always flash the bios even though I could get quicker boots without it.

 

 

Here is the config file I use you can see the 3 devices I pass through at the bottom of the configuration below as well as my img boot file in the middle:

name="WHS2011"
builder="hvm"
vcpus=2
memory=3072


disk = ['file:/mnt/cache/domains/WHS2011/whs2011.img,hda,w']


boot="dc"


acpi = '1'
apic = '1'
viridian = '1'
xen_platform_pci='1'
sdl = '0'
vnc = '1'
vnclisten = '0.0.0.0'
vncpasswd = ''
usb = '1'
usbdevice = 'tablet'  
localtime = 1


on_poweroff="destroy"
on_reboot="restart"
on_crash="destroy"


pci=['0f:00.0','04:00.0','05:00.0']

 

 

And here is lspci:

00:00.0 Host bridge: Intel Corporation 3200/3210 Chipset DRAM Controller (rev 01)
00:01.0 PCI bridge: Intel Corporation 3200/3210 Chipset Host-Primary PCI Express Bridge (rev 01)
00:06.0 PCI bridge: Intel Corporation 3210 Chipset Host-Secondary PCI Express Bridge (rev 01)
00:1a.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)
00:1a.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 02)
00:1a.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 02)
00:1c.4 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 5 (rev 02)
00:1c.5 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 6 (rev 02)
00:1d.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation 82801IR (ICH9R) LPC Interface Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA Controller [iDE mode] (rev 02)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA Controller [iDE mode] (rev 02)
00:1f.6 Signal processing controller: Intel Corporation 82801I (ICH9 Family) Thermal Subsystem (rev 02)
01:00.0 PCI bridge: Intel Corporation 6700PXH PCI Express-to-PCI Bridge A (rev 09)
01:00.1 PIC: Intel Corporation 6700/6702PXH I/OxAPIC Interrupt Controller A (rev 09)
01:00.2 PCI bridge: Intel Corporation 6700PXH PCI Express-to-PCI Bridge B (rev 09)
01:00.3 PIC: Intel Corporation 6700PXH I/OxAPIC Interrupt Controller B (rev 09)
02:01.0 SCSI storage controller: Marvell Technology Group Ltd. MV88SX6081 8-port SATA II PCI-X Controller (rev 09)
03:02.0 SCSI storage controller: Marvell Technology Group Ltd. MV88SX6081 8-port SATA II PCI-X Controller (rev 09)
04:00.0 Serial Attached SCSI controller: LSI Logic / Symbios Logic SAS2008 PCI-Express Fusion-MPT SAS-2 [Falcon] (rev 03)
05:00.0 USB controller: Etron Technology, Inc. EJ188/EJ198 USB 3.0 Host Controller
0d:00.0 Ethernet controller: Intel Corporation 82573E Gigabit Ethernet Controller (Copper) (rev 03)
0f:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller
11:04.0 VGA compatible controller: AMD/ATI [Advanced Micro Devices, Inc.] ES1000 (rev 02)

You can see that 05:00.0 is a USB 3.0 card, 04:00.0 is the M1015 and 0f:00.0 is the second MB NIC.

 

 

Here is my syslinux.cfg:

default /syslinux/menu.c32
menu title Lime Technology
prompt 0
timeout 50
label unRAID OS
  kernel /bzimage
  append initrd=/bzroot
label unRAID OS Safe Mode (no plugins)
  kernel /bzimage
  append initrd=/bzroot unraidsafemode
label Memtest86+
  kernel /memtest
label Xen/unRAID OS
  menu default
  kernel /syslinux/mboot.c32
  append /xen --- /bzimage xen-pciback.hide=(0f:00.0)(04:00.0)(05:00.0) --- /bzroot
label Xen/unRAID OS Safe Mode (no plugins)
  kernel /syslinux/mboot.c32
  append /xen --- /bzimage --- /bzroot unraidsafemode

 

 

Boots just fine for me.

 

 

 

 

If you are curious I can fire up with my spare M1015 and give the exact settings.  I could also see if I could get my AOC-SASLP-MV8 card to work next weekend if you want.  I've also got a HighPoint 2320? (PCIe x4 with 8 SATA ports if I have the model number wrong) that I could try as well.

 

 

  • Author

Thanks Bob,

 

Have you attempted controller passthrough with an ODD drive attached and ensure normal ODD functionality within Windows?

 

On my PCI Sil3114 (Syba SD-SATA-4P), Using the BIOS 5.4.03 I am able to get into the Sil Bios and disable all boot/raid options via Ctrl+S.  This passes through to 8.1 without a workaround, BUT it does NOT work with an ODD  :(.  Flashing back to BIOS b5500 IDE allows ODD in windows but requires the above workaround.

 

I have not jumped through the hoops of trying a raid bios which allows me into a bios screen during boot on my PCIe1 ASM1062 as I very much want to stick with using a PCI card for my ODD.

 

...

 

IF you have the time to test native SATA controllers with ODD functionality passthrough on your Spare M1015, AOC-SASLP-MV8, and HighPoint 2320 you could save someone else a good deal of headache.

 

Thanks Bob,

 

Have you attempted controller passthrough with an ODD drive attached and ensure normal ODD functionality within Windows?

 

On my PCI Sil3114 (Syba SD-SATA-4P), Using the BIOS 5.4.03 I am able to get into the Sil Bios and disable all boot/raid options via Ctrl+S.  This passes through to 8.1 without a workaround, BUT it does NOT work with an ODD  :( .  Flashing back to BIOS b5500 IDE allows ODD in windows but requires the above workaround.

 

I have not jumped through the hoops of trying a raid bios which allows me into a bios screen during boot on my PCIe1 ASM1062 as I very much want to stick with using a PCI card for my ODD.

 

...

 

IF you have the time to test native SATA controllers with ODD functionality passthrough on your Spare M1015, AOC-SASLP-MV8, and HighPoint 2320 you could save someone else a good deal of headache.

No I have not tried a ODD drive.  I will try to setup tests this weekend for all of the controllers with and without ODD.  I would not expect the ODD drive to even be recognized with a RAID bios at least not on a true RAID card like the IR bios on a M1015 don't know about IT mode but will find out.

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.