Jump to content
joelones

[GUIDE] Virtualizing unRAID on Proxmox 3.1

41 posts in this topic Last Reply

Recommended Posts

Posted (edited)

In PVE 5.4 (or lartest 6), just need passthrough (IOMMU) the booting USB and HBA, that's all ( I haven't try onboard SATA controller).

You can freely run Unraid under PVE or baremetel by boot selection, all work, just if Unraid under PVE, then no VM function available.

Edited by Benson

Share this post


Link to post

thanks @Benson    Dump question but, but I just want to make sure that I am reading this read     HBA = host bus adapter and PVE = Proxmox.

and is the  setting up of the passthrough (IOMMU) easy to do ?

Share this post


Link to post
Posted (edited)
17 minutes ago, chris_netsmart said:

thanks @Benson    Dump question but, but I just want to make sure that I am reading this read     HBA = host bus adapter and PVE = Proxmox.

and is the  setting up of the passthrough (IOMMU) easy to do ?

Yes and quite easy, just need setting in PVE side. In general, Unraid nothing need to change.

Edited by Benson

Share this post


Link to post
Posted (edited)
4 hours ago, chris_netsmart said:

reading through the posts, I am liking the ideal of hosting my UNRAID within Proxmox.

but I didn't see the following question answer, or if there are then I missed them

 

  • regarding the spin down of HD's I like at @s.Oliver say, by passing through the SATA Controller, but does this work and allow the HD's to spin down. ?
  • if I build the Promox environment and I have a Unraid Server environment, will I be able to transfer over my Unraid HD's as easy as moving over the HD's.  Adding them to a VM UNraid guest and power up the guest and then set up Unraid as normal. ?
  • I see  posted that people mentioning " plopkexec " to fool Unraid, in making it think that it has a USB flash drive plug in,   I see that uldise posted a link to a ISO.  my question is. how to you install it ?

I am still at the research stage so any advice would be appreciative.

 

 

well, i answered all of your questions actually ;-)

 

when you do passthrough your hardware to unRAID (HBA, or SATA controllers, or whatever) then unRAID has full control of it's features – and yes, it spins down all HDDs, which are connected to these passthrough'ed hardware. and this includes things like hot-swap (if supported by your hardware) or other things.

 

if done in the right way, your 2nd question could be answered with yes! unRAID see's the drives as they would be on bare metal booted hardware (because you passthrough the hardware, which your drives are connected to then).

 

your 3rd question references to my hint using plopkexec to boot natively into your unRAID installation on a USB stick (this is needed, because the hypervisor can't boot any VM from a usb stick; so plopkexec is a super small VM on ISO and it's then boots unRAID from the USB stick in stage 2). this method allows for native unRAID setup (with your USB key), without any changes/modifications, whatsoever. and the bonus is, that you never need to think about it in the future. all changes which need to be written to the usb stick (where unRAID is installed on) are written to the stick (and not to the ISO in the other guys setup). so no worries in the future – and you could boot unRAID on bare metal (without modifications).

 

probably soon i'll tweak my setup again to go this virtualization route – because now i need the features of Proxmox, but i can't loose my unRAID-server – so i'll redo all this on my newer rig.

 

hope this helps for your decision making.

Edited by s.Oliver

Share this post


Link to post
Posted (edited)
1 hour ago, s.Oliver said:

because the hypervisor can't boot any VM from a usb stick

You can't specify Proxmox to boot USB stick, but if USB stick is the only bootable device in guest, then it will boot. No plopkexec step also work.

Edited by Benson

Share this post


Link to post

@Benson thanks for the post, I think I get the ideal.  basically we are doing the following steps

 

move over Unraid Hard drivers and USB Flash Drive into new case

Install a blank hard drive for Proxmox

Install Proxmox onto new blank hard drive

download Unraid VM ISO file

 

Create VM for UNraid

add USB Flash Drive and Hard drivers from old Unraid

make USB pen drive the boot drive ? - Need to look at the software

power up VM

 

once Unraid is up and running then add Hard drives to Unraid and start array.

 

if this wrong then please point it out, and again thanks for your help.

 

Share this post


Link to post
Posted (edited)
18 hours ago, Benson said:

You can't specify Proxmox to boot USB stick, but if USB stick is the only bootable device in guest, then it will boot. No plopkexec step also work.

you're using it this way? (no special prepared bootable image, pure unRAID usb-stick and it boots directly from that?)

Edited by s.Oliver

Share this post


Link to post
Posted (edited)
4 hours ago, chris_netsmart said:

@Benson thanks for the post, I think I get the ideal.  basically we are doing the following steps

 

move over Unraid Hard drivers and USB Flash Drive into new case

Install a blank hard drive for Proxmox

Install Proxmox onto new blank hard drive

download Unraid VM ISO file

 

Create VM for UNraid

add USB Flash Drive and Hard drivers from old Unraid

make USB pen drive the boot drive ? - Need to look at the software

power up VM

 

once Unraid is up and running then add Hard drives to Unraid and start array.

 

if this wrong then please point it out, and again thanks for your help. 

 

 

Step almost the same, but I think best should be prepare unraid USB stick first then unplug it before prepare Proxmox.

 

Below are some detail

 

1. Unplug well prepare Unraid USB, best ( not must ) confirm it can boot in UEFI mode.

2. Install Proxmox to harddisk, make IOMMU enable.

3. Replug Unraid USB

4. Create VM

 

1.PNG.ca60dd40d096a226c1e8491703191141.PNG

 

4a. Tweak ( Some step may not necessary )

- Click CD/DVD drive, remove it

- Click Hard Disk, detach and remove it

 

2a.PNG.c68eafa41578a10c58a77ccb2e7f5f0f.PNG

 

- Add phyical disk controller and physical Unraid USB stick

3b1.PNG.acecab05038118b61a3e3a173d8b37b2.PNG

 

3b2.PNG.605a2322eae1a4e9d37ade6e1ebea853.PNG

 

3b3.PNG.b9a879ae3c307970d154d9993dc0d09e.PNG

 

4b. Tweak

- Edit boot order, only retain CD-ROM  in boot device_1

2.PNG.cda82af0be3091bff6c7d3fe891a1c6a.PNG

 

 

That's all.

Edited by Benson

Share this post


Link to post
13 minutes ago, s.Oliver said:

you're using it this way? (no special prepared bootable image, pure unRAID usb-stick and it boots directly from that?)

Yes, even passthrough a NVMe as a Windows VM, freely boot under PVE or baremetel.

Share this post


Link to post
29 minutes ago, Benson said:

Yes, even passthrough a NVMe as a Windows VM, freely boot under PVE or baremetel.

hmm… maybe i read the screenshots wrong...

 

but i guess, because of no other specified bootable device (boot device 1 = cd-rom with empty 'tray', device 2 & 3 are set to nothing, or have non-bootable devices) PROXMOX is looking at it's usb devices (for this VM) and boots from it, if bootable?

Share this post


Link to post
Posted (edited)
7 minutes ago, s.Oliver said:

hmm… maybe i read the screenshots wrong...

 

but i guess, because of no other specified bootable device (boot device 1 = cd-rom with empty 'tray', device 2 & 3 are set to nothing, or have non-bootable devices) PROXMOX is looking at it's usb devices (for this VM) and boots from it, if bootable?

Yes, boot device 2,3 set to none. That's why I said

 

19 hours ago, Benson said:

You can't specify Proxmox to boot USB stick, but if USB stick is the only bootable device in guest, then it will boot. No plopkexec step also work. 

 

Edited by Benson

Share this post


Link to post
1 minute ago, Benson said:

Yes, that's why I said

 

alright man ;-) thx.

i'll try this once i'm ready for my new PROXMOX installation.

Share this post


Link to post

so today was the day for PROXMOX installation and virtualizing unRAID again.

most of the stuff works as expected, but some things aren't up to expectations:

 

a) booting unRAID (directly from USB stick) brings me every time into the EFI shell, even though i set all the right boot options in the PROXMOX BIOS. so with every reboot i need to enter the BIOS, set the USB stick as boot option and then it boots unRAID. looks like PROXMOX doesn't save the changes into the EFI partitions or so.

 

b) even though i enabled nested virtualization (PROXMOX) my macOS VM (under unRAID) is drastically slower than before. well, i had expected a little loss, but not that much. played around a bit with different options in the XML, but can't see any improvements.

 

has someone any ideas, how to improve?

 

well, i'll try to setup the macOS VM under PROXMOX, so no need for the nested virtualization then, but it can be a hassle ;-)

 

Share this post


Link to post
On 7/30/2019 at 8:31 PM, Benson said:

You can't specify Proxmox to boot USB stick, but if USB stick is the only bootable device in guest, then it will boot. No plopkexec step also work. 

Pls set boot device 1 be CDROM, others none.

 

I haven't run PVE now, mainly because I turn two Unraid in one, it also easy for management.

Edited by Benson

Share this post


Link to post
19 hours ago, Benson said:

Pls set boot device 1 be CDROM, others none.

 

I haven't run PVE now, mainly because I turn two Unraid in one, it also easy for management.

thx., but i did that from beginning on. it never booted automatically from the USB stick – it entered the EFI shell. when intercepted while initializing BIOS and selecting the proper shown boot device (unRAID USB stick) it boots and everything is fine.

 

not sure, why it doesn't automatically choose it. i'm running on Proxmox v6 and use UEFI/EFI boot because of passthrough'ing serveral PCI devices.

Edited by s.Oliver

Share this post


Link to post

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.