December 14, 201510 yr 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.
December 14, 201510 yr 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
December 15, 201510 yr 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
December 15, 201510 yr 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....
March 25, 201610 yr 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.
March 25, 201610 yr Glad you're finding it useful. I must admit I find it invaluable for dev or testing work...
April 10, 201610 yr 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
July 9, 20169 yr 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, 20179 yr by ljm42 updated for unRAID 6.4.0-rc1
July 9, 20169 yr 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....
July 10, 20169 yr Thank you for taking the time to write it up! I never would have figured it out without your blog post.
July 10, 20169 yr 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
August 29, 20169 yr 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*
March 20, 20179 yr 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?
March 20, 20179 yr 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.
March 20, 20179 yr 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.
June 8, 20179 yr 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.
September 13, 20178 yr 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, 20178 yr by ljm42
Archived
This topic is now archived and is closed to further replies.