linuxserver.io Posted December 14, 2015 Share Posted December 14, 2015 Creating an Unraid Virtual Machine to run on an Unraid Host DISCLAIMER: This should be considered experimental and we are not responsible for any data loss in the event of problems. Quote Link to comment
linuxserver.io Posted December 14, 2015 Author Share Posted December 14, 2015 RESERVED Quote Link to comment
saarg Posted December 14, 2015 Share Posted December 14, 2015 The link doesnt work. Quote Link to comment
CHBMB Posted December 14, 2015 Share Posted December 14, 2015 The link doesnt work. Works for me but I may have just fixed it Quote Link to comment
saarg Posted December 14, 2015 Share Posted December 14, 2015 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 Quote Link to comment
peter_sm Posted December 15, 2015 Share Posted December 15, 2015 Some info here about Unraid VM maybe some or all is included in your.guide http://lime-technology.com/forum/index.php?topic=42975.msg410003#msg410003 http://lime-technology.com/forum/index.php?topic=44513.msg424789#msg424789 Quote Link to comment
CHBMB Posted December 15, 2015 Share Posted December 15, 2015 Some info here about Unraid VM maybe some or all is included in your.guide http://lime-technology.com/forum/index.php?topic=42975.msg410003#msg410003 http://lime-technology.com/forum/index.php?topic=44513.msg424789#msg424789 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.... Quote Link to comment
dmacias Posted March 25, 2016 Share Posted March 25, 2016 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. Quote Link to comment
CHBMB Posted March 25, 2016 Share Posted March 25, 2016 Glad you're finding it useful. I must admit I find it invaluable for dev or testing work... Quote Link to comment
ljm42 Posted April 10, 2016 Share Posted April 10, 2016 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 Quote Link to comment
ljm42 Posted July 9, 2016 Share Posted July 9, 2016 (edited) 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 June 5, 2017 by ljm42 updated for unRAID 6.4.0-rc1 Quote Link to comment
CHBMB Posted July 9, 2016 Share Posted July 9, 2016 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.... Quote Link to comment
ljm42 Posted July 10, 2016 Share Posted July 10, 2016 Thank you for taking the time to write it up! I never would have figured it out without your blog post. Quote Link to comment
peter_sm Posted July 10, 2016 Share Posted July 10, 2016 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 Quote Link to comment
mossiemosforth Posted August 29, 2016 Share Posted August 29, 2016 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* Quote Link to comment
JorgeB Posted March 20, 2017 Share Posted March 20, 2017 I'm following the guide and do I need glasses or are these the same? Quote Link to comment
CHBMB Posted March 20, 2017 Share Posted March 20, 2017 Looks the same to me Johnnie. Quote Link to comment
JorgeB Posted March 20, 2017 Share Posted March 20, 2017 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? Quote Link to comment
CHBMB Posted March 20, 2017 Share Posted March 20, 2017 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. 1 Quote Link to comment
JorgeB Posted March 20, 2017 Share Posted March 20, 2017 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. Quote Link to comment
ljm42 Posted June 8, 2017 Share Posted June 8, 2017 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. Quote Link to comment
ljm42 Posted September 13, 2017 Share Posted September 13, 2017 (edited) Here is a simplified guide for running unRAID 6.4.0-rc5 or greater in a VM: https://forums.lime-technology.com/topic/60106-guide-how-to-install-an-unraid-vm-on-an-unraid-host/ Edited September 13, 2017 by ljm42 1 Quote Link to comment
Recommended Posts
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.