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.

Raid Controller VM Passthrough help needed?

Featured Replies

Hi all , hopefully someone can kindly help.

 

I have a AMD 3700x CPU on a Asus x570 gaming WIFI motherboard and 2 x Sabrenth 1tb NVME drives using the onboard raid to make 1 x 2tb drive.

 

I have moved from my old server to this machine , which i was running as a workstation.

I would like to make a VM for Windows 11 and use the already set up machine in this VM , windows 11 on the nvme drives.

 

 

I have tried to isolate the controller but all that seems to show is the 2x NVME drives and nt the controller itself?

If i point the vm to boot from either drive it wont boot.

 

i have my PCIe ACS override: set to both.

 

Any advise ? what info do you need from me to help get this working?

Running Unraid 6.12.6

Iommu attached.

 

 

iommu.txt

  • Author

Anyone? any ideas?

  • Author

anyone ??????

1 hour ago, StuartF said:

anyone ??????

 

And how did you passthrough these controllers? Show hostdev Blocks.

 

  • Author

hi , i have tried adding it as the below :-

   </disk>
    <disk type='block' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source dev='/dev/disk/by-id/wwn-0x50014ee25fdd1988'/>
      <target dev='hdc' bus='sata'/>
      <boot order='1'/>
      <address type='drive' controller='0' bus='0' target='0' unit='2'/>
    </disk>

 

also selecting the 2 drives in the via IOMMU groups.

 

Phison Electronics E16 PCIe4 NVMe Controller | Non-Volatile memory controller (01:00.0)

 

I cant see the controller to pass though.

 

Not sure if i can pass this raided array into unraid vm.

 

On 12/29/2023 at 10:42 AM, StuartF said:

but all that seems to show is the 2x NVME drives and not the controller itself?

 

You passthrough drives and no controllers. Why should you see controllers from the host then?

 

Be careful. I don't know what you try to do. That way shows how to work with a controller in a VM:
 

#
# Just an example from my system - be sure you know what you do
#

# Find domain, bus, slot
lspci -D
0000:01:00.0 Serial Attached SCSI controller: Broadcom / LSI SAS3008 PCI-Express Fusion-MPT SAS-3 (rev 02)
0000:04:00.0 Serial Attached SCSI controller: Broadcom / LSI SAS3008 PCI-Express Fusion-MPT SAS-3 (rev 02)
^^^^ ^^ ^^

# Find vendor, id, bus, slot in Tools/System Devices
[1000:0097] 01:00.0
[1000:0097] 04:00.0
 ^^^^ ^^^^  ^^ ^^

# Isolate result in /boot/config/vfio.cfg
BIND=0000:01:00.0|1000:0097 0000:04:00.0|1000:0097
     ^^^^ ^^ ^^   ^^^^ ^^^^ ^^^^ ^^ ^^   ^^^^ ^^^^

# Passthrough one controller into VM (hostdev Block, needs possible adjustment of target address)
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
#                          ^^^^         ^^          ^^      
      </source>
      <alias name='hostdev1'/>
      <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
    </hostdev>

 

You do have two controllers with one device each. I never tried to passthrough two controllers that form a RAID to a VM. I doubt that this will work.

 

Edited by hawihoney

  • Community Expert
1 hour ago, StuartF said:

hi , i have tried adding it as the below :-

   </disk>
    <disk type='block' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source dev='/dev/disk/by-id/wwn-0x50014ee25fdd1988'/>
      <target dev='hdc' bus='sata'/>
      <boot order='1'/>
      <address type='drive' controller='0' bus='0' target='0' unit='2'/>
    </disk>

 

also selecting the 2 drives in the via IOMMU groups.

 

Phison Electronics E16 PCIe4 NVMe Controller | Non-Volatile memory controller (01:00.0)

 

I cant see the controller to pass though.

 

Not sure if i can pass this raided array into unraid vm.

 

Have you created this as mirror on the host controller? If so you will need to passthru the host controller not the controllers for the NVME as the host controller would still need to see the drives.

 

But I suspect you may not be able to isolate the controller if it is part of the motherboard chipset.

 

To do what you need maybe would need a PCIe card with the NVME drives on that just presents as a single device to the system but mirrored on the card.

 

There is not enough info on how you have setup the mirror.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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.