RoboKaren
Contributor
- Joined
- Apr 8, 2014
- Messages
- 130
Prologue: I had been struggling on an off for almost a year to get the built-in, headless Crashplan plugin jail working in FreeNAS 9.2 and 9.3 but the Crashplan server in my plugin jail never seemed to update itself past the initial 3.6.3 install and the clients on my available machines had all upgraded to 4.5.2 and of course Code42 doesn't make the old 3.6.3 client apps available anywhere. Frustration city. I was at the point where I was going to hook up a small Ubuntu HTPC for the sole purpose of mounting shares and running CrashPlan. But then I thought: <VIRTUALIZATION>
Solution: So I decided to see if I could get a fresh install of CrashPlan 4.x-linux to run under a VirtualBox image with Ubuntu on my main FreeNAS box (a Supermicro X9SCM-F with 32GB ECC RAM). It took the better part of the entire day but worked and now I can configure CrashPlan with its own GUI control panel located in its own little Ubuntu virtual machine through VNC. Here are some notes that might help people:
Seems so easy when listed like this but this took up the better part of a day. Fighting the VirtualBox guest additions was the main part. I had first tried 4.3.12 guest-additions and that wouldn't load, then jumped to the latest 5.x release and that hanged the vm. I tried running guest-additions as a package and an ISO. It took some sleuthing to find out that 4.3.36 guest additions would load and run properly. The other battle was fighting with Ubuntu 14 vs. Ubuntu 15 and a mistaken foray into Debian.
If anyone is running into errors, I think I battled just about every bug and user-error imaginable. Ask away!
FN 1: Of course after I do all this, I discover the thread that says why CP3.6.3 in a jail on FreeNAS won't automatically upgrade. See here for instructions on how to fix it: https://forums.freenas.org/index.php?threads/crashplan-not-updating.40374/
FN 2: Update 2016.11.25 - After upgrading to Freenas 9.10-U4, I decided to give bhyve/iohyve a swirl and create an Ubuntu vm using that. It's a bit harder since bhyve doesn't have a graphical console in 9.10, so you need to install the server version -- and then vncserver and then the GUI -- but it works fairly well too. Looking forward to the new VMM in Freenas 10 that will liberate us from all this.
Solution: So I decided to see if I could get a fresh install of CrashPlan 4.x-linux to run under a VirtualBox image with Ubuntu on my main FreeNAS box (a Supermicro X9SCM-F with 32GB ECC RAM). It took the better part of the entire day but worked and now I can configure CrashPlan with its own GUI control panel located in its own little Ubuntu virtual machine through VNC. Here are some notes that might help people:
- VirtualBox 4.3.12: Perhaps because I'm an upgrader from 9.2, my VB jail didn't create properly because the link to the VirtualBox image broke. I created a new jail template with: http://download.freenas.org/jails/9.2/x64/freenas-virtualbox-4.3.12.tgz
- Create VM: In VirtualBox, I allocated 1 gigabyte of memory, 1 CPU, and 32 gigabyte of HD space to the vm. I have CPU-cycles/RAM/HD to spare on this box but I didn't want to splurge either since that would take away from my ZFS/FreeNAS memory. Ubuntu itself takes up around 300M and the Java machine that CrashPlan spins up takes 512M too. So 1GB it was. Since FreeNAS wants 8GB + 1GB per TB of HD, I wouldn't recommend running a VM like this unless you have more than 16GB of real RAM memory.
- Ubuntu 15: I'm not sure why, but Ubuntu 15 (ubuntu-15.10-desktop-amd64.iso) played nicer than Ubuntu 14 with VirtualBox 4.3.12 in terms of allowing me a screen larger than 640x480 even before installing the VB guest additions. It's very hard to do anything in Ubuntu when your screen is so small!
- VirtualBox Guest Additions 4.3.36: You need to install the VirtualBox guest additions inside of Ubuntu in order to mount FreeNAS datasets as shared folders, as well as give you more control over your screen size. When installing the VirtualBox guest additions, ignore the usual practice of installing the same version as your VB (4.3.12) and instead grab the latest guest additions version in the 4.3.xx series -- in this case: VBoxGuestAdditions_4.3.36.iso <== this took me several hours to figure out (since I hadn't seen the very last comments in this thread). The 4.3.12 guest additions just wouldn't compile without throwing up errors and the 5.xx guest additions will cause havoc.
- Shared Folders: Once you got VirtualBox 4.3.12 running, try mounting some of your datasets as shared folders. Inside the VB Ubuntu, your shared folders should appear under /media/, but by default they are owned by root with group perms in vboxfs. You do have to add your own user to the vboxfs group for access: sudo usermod -aG vboxsf <your username>
- Crashplan: Then finally install the linux version of the CrashPlan 4.5.2 app from their website. You're doing the full install so you get to use the control panel in the jail itself without having to try going headless!
- Success!

Seems so easy when listed like this but this took up the better part of a day. Fighting the VirtualBox guest additions was the main part. I had first tried 4.3.12 guest-additions and that wouldn't load, then jumped to the latest 5.x release and that hanged the vm. I tried running guest-additions as a package and an ISO. It took some sleuthing to find out that 4.3.36 guest additions would load and run properly. The other battle was fighting with Ubuntu 14 vs. Ubuntu 15 and a mistaken foray into Debian.
If anyone is running into errors, I think I battled just about every bug and user-error imaginable. Ask away!
FN 1: Of course after I do all this, I discover the thread that says why CP3.6.3 in a jail on FreeNAS won't automatically upgrade. See here for instructions on how to fix it: https://forums.freenas.org/index.php?threads/crashplan-not-updating.40374/
FN 2: Update 2016.11.25 - After upgrading to Freenas 9.10-U4, I decided to give bhyve/iohyve a swirl and create an Ubuntu vm using that. It's a bit harder since bhyve doesn't have a graphical console in 9.10, so you need to install the server version -- and then vncserver and then the GUI -- but it works fairly well too. Looking forward to the new VMM in Freenas 10 that will liberate us from all this.
Last edited: