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.

[GUIDE] Linuxserver.io - Creating an Unraid VM to run on an Unraid Host

Featured Replies

The link doesnt work.

 

Works for me  ;)

 

but I may have just fixed it

The link doesnt work.

 

Works for me  ;)

 

but I may have just fixed it

 

You ba....  ::)

I didn't know I had to click it also  :P

 

Hey, thanks Peter, hadn't seen that first link before, but it would have been really useful.... but it is as I did it in the guide.  The second I've seen as it was my thread....  ;)

  • 3 months later...

Thanks. I finally got around to setting up a couple unRAID VMs for testing plugins and compiling. My motherboard doesn't support vt-d though and I forgot to remove the usb once when I rebooted (everything worked though except kvm, it didn't read my network setting or read it from wrong usb).

 

So I decided to use the USB vm disk option in unRAID 6.2. I used an old 1GB flash drive with a fresh install of 6.1.9. I followed your first 2 steps except I left it labeled UNRAID, bootable and I left the config directory. So now I have 2 1GB images of 6.1 and 6.2 and 2 VMs pointing to each image with Primary vDisk Bus set to USB. Now granted you won't be able to start the array but it serves my purpose.

 

I didn't try setting vdisk to sata but that might work too.

 

Glad you're finding it useful.  I must admit I find it invaluable for dev or testing work...

  • 3 weeks later...

Thanks for this guide!  The appendices were very helpful too.  Here are a few more ideas:

 

1) If the host is < 6.2 and you want to run VMs in the guest, add this to the host's syslinux config:

  kvm_intel.nested=1

as described here:

  https://lime-technology.com/forum/index.php?topic=42612.0

 

2) If your host is named "Tower", be sure to change the name of the guest to something else so there are no conflicts.  You'll probably want to disable Local Master too (under SMB Settings)

 

3) Here's how to configure the UPS in the guest:

  • Start APC UPS daemon: yes
  • UPS cable: Ether
  • UPS type: Net
  • Device: enter ip address of host unRAID
  • Battery level / runtime / etc: ensure the guest shuts down before the host
  • Turn off UPS after shutdown: No

  • 2 months later...

It is now possible to run unRAID 6.2.0-rc1 as a guest on an unRAID host *without* having to stub out a USB controller!

 

If you are following these instructions:

  https://www.linuxserver.io/2015/12/14/creating-an-unraid-virtual-machine-to-run-on-an-unraid-host/ 

there are a few tweaks in the process:

 

- In step 1, on your UNRAID-VM USB drive, edit syslinux/syslinux.cfg and add unraidlabel=UNRAID-CONF, like this:

label unRAID OS
   menu default
   kernel /bzimage
   append unraidlabel=UNRAID-CONF initrd=/bzroot
 

 

- Skip step 3

 

- In step 4, give the USB drive a label to match step 1.  i.e. UNRAID-CONF

 

Also, starting with unRAID 6.4.0-rc1, you'll need to place bzfirmware and bzmodules in the root of the flash drive.

 

- In step 5, put a checkmark by the UNRAID-CONF usb drive.  Also, there no need to reboot your host.

 

- Skip step 6

 

 

Edited by ljm42
updated for unRAID 6.4.0-rc1

Cool, must try this at some point. 

 

Missed your last post about nested virtualisation as well.  Nice work. 

 

Sounds like you got this figured out way better than I did...  Confused me for ages.... ;D

Thank you for taking the time to write it up!  I never would have figured it out without your blog post.

It is now possible to run unRAID 6.2.0-rc1 as a guest on an unRAID host *without* having to stub out a USB controller!

 

Works perfect with the new settings! :-)

 

//Peter

  • 1 month later...

Morning guys. I'm trying to set up an unraid vm for testing 6.2 before moving to it and I'm a little stuck.

I have the USB created, but when trying to convert it to an img i get "Invalid parameter 'raw' "

 

Any ideas?

 

 

EDIT - never mind, n00b error. capital -O for options *facepalm*

  • 6 months later...

I'm following the guide and do I need glasses or are these the same?

vdisk.png

1 hour ago, CHBMB said:

Looks the same to me Johnnie.

 

Good to know it's not me, any idea what needs to be changed for the vdisks to be detected as an assignable device by the virtual unRAID?

1 minute ago, johnnie.black said:

 

Good to know it's not me, any idea what needs to be changed for the vdisks to be detected as an assignable device by the virtual unRAID?

    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/virtualisation/vm/unraid-vm/disk1.img'/>
      <target dev='hdd' bus='sata'/>
      <address type='drive' controller='0' bus='0' target='0' unit='3'/>
    </disk>

That's what I'm using.

6 minutes ago, CHBMB said:

    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/virtualisation/vm/unraid-vm/disk1.img'/>
      <target dev='hdd' bus='sata'/>
      <address type='drive' controller='0' bus='0' target='0' unit='3'/>
    </disk>

That's what I'm using.

 

That works, thanks.

  • 2 months later...
On 3/20/2017 at 2:23 PM, CHBMB said:

    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/virtualisation/vm/unraid-vm/disk1.img'/>
      <target dev='hdd' bus='sata'/>
      <address type='drive' controller='0' bus='0' target='0' unit='3'/>
    </disk>

That's what I'm using.

 

I think Johnny was subtly trying to suggest that you need to fix the blog post, since the "from" and "to" sections are currently the same :)

 

I will now less subtly ask... :) would you consider updating the blog post to talk about the unraidlabel option and other items in this thread? Not having to deal with USB passthrough really streamlines the setup process and would make it easier for more people to test the RC's.

 

Are there any feature requests we should ask for along the way? For instance, not having to edit the disk info manually, and having a built-in unRAID VM template (or at least icon) would be nice.

  • 3 months later...

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.