SOLVED VirtualBox vs. iohyve/ bhyve for CrashPlan?

Status
Not open for further replies.

nello

Patron
Joined
Dec 30, 2012
Messages
351
Seems like the consensus for CrashPlan going forward is to run it in a Virtual Machine (VM):

https://forums.freenas.org/index.php?threads/what-to-do-about-crashplan-on-9-10.42889/

Apparently, as of FreeNAS 9.10, there are (at least?) two standard ways of creating a VM:
  1. Create a Jail using the VirtualBox template
    http://doc.freenas.org/9.10/freenas_jails.html#using-the-phpvirtualbox-template

  2. Create a Jail and use iohyve to manage bhyve guests
    http://doc.freenas.org/9.10/freenas_jails.html#using-iohyve
Which is the better way to create a VM in which to run CrashPlan under some flavor of Linux, say Ubuntu?

- nello
 

Nick2253

Wizard
Joined
Apr 21, 2014
Messages
1,633
bhyve is how all virtualization will happen going forward, so I'd go that route. bhyve probably has better performance than Virtualbox, but I haven't seen any hard benchmarks on that, so that's nothing more than anecdote at this point.
 

nello

Patron
Joined
Dec 30, 2012
Messages
351
bhyve is how all virtualization will happen going forward, so I'd go that route.
Ok. That makes sense.

I'm having problems understanding the documentation:

http://doc.freenas.org/9.10/freenas_jails.html#using-iohyve

First off, I assume that one creates a regular Jail prior to following these instructions.

Next, I don't understand how I'm supposed to modify/customize this command for my situation:
Code:
iohyve setup pool=volume1 kmod=1 net=em0

In other words, what are pool, kmod, and net?

Has anyone written a noob tutorial on using iohyve?

- nello


2016.08.01 Update
Judging from this thread, iohyve isn't baked well enough for a noob like me:
https://forums.freenas.org/index.php?threads/fn9-10-bhyve-iohyve-hacking.42297/

Having said that, here's a script that appears to do what I want:
https://github.com/J-C-B/freenas_and_iohyve/blob/master/iohyve_ubuntu.sh


2016.08.07 Update
This also looks promising:
http://gavowen.ninja/2016/07/installing-ubuntu-server-16-04-in-freenas-9-10-beehyve/
 
Last edited:
D

dlavigne

Guest
First off, I assume that one creates a regular Jail prior to following these instructions.

Nope, iohyve is it's own thing and byhve is very a different type of virtualization than jails.

Next, I don't understand how I'm supposed to modify/customize this command for my situation:
Code:
iohyve setup pool=volume1 kmod=1 net=em0

In other words, what are pool, kmod, and net?

Exchange volume1 with the name of the volume and em0 with the FreeBSD name of the NIC to use (as listed in the output of ifconfig).
 

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
Hello @nello,

Bhyve is a different animal to Jails. Following my Samba videos, I've had people ask for iohyve how-to video since I've had success running it and been running a couple of Linux VMs. I plan to do this over the weekend.

You will want to set-up a couple of tunables so you can add iohyve_enable="YES" and iohyve_flags="kmod=1 net=[iface]" setting up the kernel modules and iohyve networking at boot. @dlavigne, could we get that added to the documentation so that iohyve loads everything it needs at boot time?

Once you're up and running, you'll want to create a new VM,

Code:
iohyve fetch http://path/to/linux.iso # Fetches a copy of the ISO and places it in the correct dataset
iohyve create <guestname> <size of disk> # E.g.: iohyve create ubuntu 40G
iohyve set <guestname> loader=grub-bhyve # use GRUB as the boot loader (not required for FreeBSD guests)
iohyve set <guestname> os=debian # This tells iohyve it's a Debian guest, change to ubuntu/centos/arch, etc to fit your needs
iohyve install <guestname> linux.iso # Kick off the installation of the guest VM
iohyve console <guestname> # Connect to the guest serial console


When you're connected to the console, to exit type (You've got to do it pretty fast) Shift + ~ then Ctrl+D
 

nello

Patron
Joined
Dec 30, 2012
Messages
351
… I've had people ask for iohyve how-to video since I've had success running it and been running a couple of Linux VMs. I plan to do this over the weekend.

Have you posted an iohyve video?
 

nello

Patron
Joined
Dec 30, 2012
Messages
351
You will want to set-up a couple of tunables so you can add iohyve_enable="YES" and iohyve_flags="kmod=1 net=[iface]" setting up the kernel modules and iohyve networking at boot.

I have two questions:
  1. Tunable Type
    The FreeNAS GUI for adding a tunable requires that type be specified. Are these tunables loader, rc.conf, or Sysclt?

  2. Value for iface
    How do I determine what value to use for iface?

Thank you.

- nello


2016.08.07 Update
Answers to questions:
  1. Based on the screenshots in the Surviving Reboots section of this guide, both tunables should be type rc.conf:
    http://gavowen.ninja/2016/07/installing-ubuntu-server-16-04-in-freenas-9-10-beehyve/

  2. Find NIC name in GUI:
    OctoberGroupNAS_-_FreeNAS-9_10_1__d989edd_.png
 
Last edited:

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
Tunables need to be rc.conf type. Iface is whatever network interface you have configured on FreeNAS. In my case, it's lagg0 since I have link aggregation set-up. This may be in your case em0, or igb0 (if using Intel NIC).
 

RichTJ99

Patron
Joined
Sep 12, 2013
Messages
384
Is Bhyve going to be a plugin for freenas at a future point?
 

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
Is Bhyve going to be a plugin for freenas at a future point?
Bhyve is not a plug-in, it's baked into the FreeBSD kernel. With FN10, the VM management will be baked into the middle-ware. As of now, you can use iohyve to manage them.
 

RichTJ99

Patron
Joined
Sep 12, 2013
Messages
384
So is the longer term goal to get rid of the virtualbox plugin & have users use a GUI of Bhyve to handle VM's going forward? Can you VNC to one of the Iohyve VM's at this point or is it command prompt only?
 

fracai

Guru
Joined
Aug 22, 2012
Messages
1,212
It's command line unless you install a VNC server on the VM.
 

RichTJ99

Patron
Joined
Sep 12, 2013
Messages
384
Sorry for being dense but if you wanted to install Windows on Iohyve - could you do that?
 

ZeroBit

Dabbler
Joined
Nov 6, 2016
Messages
28
Sorry for being dense but if you wanted to install Windows on Iohyve - could you do that?
Were you ever able to run Windows on iohyve?

If so, what version of Windows, and what version of FreeNAS?

From what I can find on the creator of iohyve's page, "The secret sauce to getting Windows running under bhyve is the new UEFI support." Also according to him, "In order to utilize the bootrom (UEFI) feature in bhyve, you need to be running FreeBSD 11.0-CURRENT at least to revisionr288524." As you probably know, FreeNAS 9.10 is running FreeBSD 10.3. So, that appears to be a no-go. Any evidence to the contrary?

EDIT: Okay, so I got Windows 7 to run on iohyve/bhyve, using the link mentioned by @fracai above, as well as a lot of research. In case anyone comes after me, the "secret sauce" really is uefi support . I stumbled across a deprecated page from @pr1ntf that set 'loader=uefi' in its use of iohyve. I am a grub novice, and each time I got the "grub>" prompt, with a message that it had failed to load the kernel, I had no idea how to make it work. So, possibly there is another way to make it work with grub-bhyve, but someone else will have to speak to that.
 
Last edited:

Chuck Remes

Contributor
Joined
Jul 12, 2016
Messages
173
if you wait another week or so, FN10 will be released and you can run crash plan in a docker container. I've been playing with the FN10 nightlies and have had great success with this setup. My crash plan docker has backed up 8TB for me.

Runs great and FN10 is *way easier* to deal with than bhyve under 9.10. It's still using bhyve under the covers but the new gui and cli hide the gory details.
 
Last edited:

LGSONE

Dabbler
Joined
Mar 8, 2014
Messages
19
Used this little video to get my first iohyve setup. https://www.youtube.com/watch?v=rCDh9K16Q5Q

Got sucked into the docker setup only to have it ... well.. so back to this to get the functionality 10 introduced.

LGSONE
 

Mark WatIng

Explorer
Joined
Mar 6, 2017
Messages
53
VM Support via Bhyve is coming to 9.10 - currently available in the 9.10 nightly train.


Sent from my iPad using Tapatalk Pro
 
Status
Not open for further replies.
Top