[6.9.2] Running unraid as host and VM - USB passthrough


Go to solution Solved by Struck,

Recommended Posts

Hello everyone.

I am trying to combine two unraid machienes I have been running.

But since Unraid still does not support multiple arrays in a single install, I am trying to run the second unraid in a VM.

 

But when i plug a new unraid USB into the already running system, the USB is not available to be assigned to a VM.

As unassigned disks plugin, says the USB is "array"

image.png.b28e15ef5d92cc82c99f4662fc2a1754.png

The Log tells me what happens:
image.thumb.png.201ec5ef167924431b0ede83b03cb41a.png

 

It seems like the existing unraid picks up the USB unraid, and locks the device, as it now is the active license.

The USB i am using is using a new blank unraid 6.10.3 install, until i know if this would work or not.

 

I already own the two unraid pro licenses.

The host unraid system is currently running Unraid 6.9.2

I can post diagnostics, but i don't know if that would help anyway.

Link to comment
1 hour ago, SimonF said:

@Struck

 

You need to change the 2nd USB to be a different volume name and change the syslinux config with the label name.

 

append unraidlabel=UNRAID-VM initrd=/bzroot

 

 

image.thumb.png.5abc85fe58dc5a3b951bb90bf04f8071.png

Thanks for the informatiopn.

This solved my initial problem.

I followed the video, but the USB does not appear as a boot device in the VM.

I edited the files on thje USB drive, and ran the make_bootable file without any problems.

Link to comment
1 minute ago, Struck said:

Thanks for the informatiopn.

This solved my initial problem.

I followed the video, but the USB does not appear as a boot device in the VM.

I edited the files on thje USB drive, and ran the make_bootable file without any problems.

How are you mapping the USB device to the VM?

Link to comment
4 minutes ago, Struck said:

Thanks for the informatiopn.

This solved my initial problem.

I followed the video, but the USB does not appear as a boot device in the VM.

I edited the files on thje USB drive, and ran the make_bootable file without any problems.

Is the USB drive the same model as that used by the host?    It is much more convenient if it is not.

Link to comment
16 minutes ago, SimonF said:

Are you using ovmf for the bios and have renamed the efi- directory on flash to efi?

image.png.be8dbfb6c4d77c0a15c8d35e49442dee.png

I actually used the USB media creation tool to create the media, but altered the drive label and edited the files afterwards,

Maybe this is not the way to do it.

EFI folder is named as is default, when using the media creation tool.

image.png.7c33504a464d40107f67761a1af564e9.png

 

Link to comment
  • Solution

I finally got a breakthrough.
I tried many different settings.
But when I switched the USB Controller from 2.0 EHCI to 3.0 (qemu XHCI) It suddently appeared as a bootable device

image.png.fdb447c35ea171af679c330c07ee3cbc.png

image.png.dea29eefaa0efa9f9b935b41ea0d4138.png

 

I didn't try this earlier, since i expected 2.0 to work better for boot than 3.0.

Thanks for all your guys help so far

Link to comment

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.