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


Recommended Posts

 

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

Link to comment
  • 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.

 

Link to comment
  • 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

Link to comment
  • 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
Link to comment
  • 1 month later...
  • 6 months later...
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.

  • Upvote 1
Link to comment
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.

Link to comment
  • 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.

Link to comment
  • 3 months later...

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.