FreeNAS 9.10 jail templates missing on clean install

Status
Not open for further replies.

Antioch18

Explorer
Joined
Jun 29, 2012
Messages
55
I recently did a clean install of FreeNAS 9.10.2-U1 onto which I added the settings from the previous FreeNAS 9.3 install. I've read the release notes and saw the notice that 9.3 -> 9.10 users wouldn't see the 9.10 jail templates unless they delete their old jail dataset and create it a new. I've deleted my jails and recreated the dataset, but the jail template tab is still showing the old 9.3 templates.

I've further found this bug thread which at the end said that the problem lies with a missing statement in the warden.conf file. Specifically, the following line needed to be manually edited:

Code:
FREEBSD_RELEASE: 9.10-RELEASE

However, this was already set in my conf file when I opened it.

How can I get the 9.10 templates onto my system?
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
In the 9.10.1-u1 release notes it says that the virtual box template was removed. It didn't work very well anyways.

Sent from my Nexus 5X using Tapatalk
 

ZeroBit

Dabbler
Joined
Nov 6, 2016
Messages
28
No templates should show in 9.10 as php-virtualbox has been removed and the default one does not show. The only templates that should show on 9.10 are the ones you create yourself using the instructions in http://doc.freenas.org/9.10/jails.html#managing-jail-templates.
"No templates should show in 9.10" - This would have been nice if it was added in the Release Notes, along with the note on the change in jails; it would have saved about 6+ hours of weekend time searching and reading through forums, while trying to figure out why no templates appeared.

I started my build with 9.10.1-U4, and have since upgraded to 9.10.2-U1 (86c7ef5). Recently I wanted to start learning about Jails and Plugins, so I installed the Plex plugin (very easy to install and administer, kudos to the team that created it). Today I came across a need to run a VM with either Windows 7 (x64) or Windows 10 (x64); after a quick search on Google, it seemed like FreeNAS could handle this and VirtualBox was the way to go. Also, VirtualBox was at least something I had some experience with vs. VM Ware, or bhyove (or whatever that silly name was). I came across CyberJock's thread on how to install VirtualBox on FreeNAS. So I read through the thread, and came to the part where he said this method was old and to use the template instead. Knowing that I was on a newer version of FreeNAS, I thought "GREAT! The template has probably been improved since CyberJock's post. I can start with a template, and build from there." I went looking for the template in the Jails->Templates, but ran into a, previously unknown to me, issue; my FreeNAS box wasn't seeing any templates, "Uh-oh".

After a reading a few threads (e.g. #1, #2, ...) on jails missing templates, one of them led me to the FreeNAS 9.10-RELEASE now available! thread, and I started reading about people upgrading from 9.3 to 9.10.2 having the same issue of templates not appearing. People were saying that jails and plugins needed to be deleted, and the jails dataset needed to be deleted. Since I had started with 9.10, I hoped I might not be in the same situation, since this was a bit extreme. While trying to relate what I had vs. what others were reporting, I found the Jails Collection URL was pointing to "http://download.freenas.org/latest/RELEASE/x64/jails", which resulted in the 404 error some people mentioned. So the answer seemed to be to change the Collection URL to "http://download.freenas.org/jails/10/x64/", so I did that, but no luck; it was still blank.

I also read that the /usr/local/etc/pkg/repos/FreeBSD.conf should point to the proper location. However, when I read /usr/local/etc/pkg/repos/FreeBSD.conf, mine was almost completely empty:
Code:
FreeBSD: {
    enabled: no
}

So, I figured, what the heck, why not try deleting the jails, this is still a pretty fresh system, and I intended it to be something I could blow out and re-install as I learned. Though that phase is nearing an end, as the need for the server and its storage is growing. I then did the following:
  1. Opened the FreeNAS WebGUI and went to the Plugins tab
  2. Stopped the Plex plugin (it was the only plugin or jail I had installed and running)
  3. I hit the Delete button next to the plugin.
  4. Opened View Volumes and Destroyed the jails dataset
  5. Shutdown the server
  6. Waited for complete shutdown
  7. Powered the server back on
  8. Re-opened the FreeNAS WebGUI
  9. Looked at the Jails Configuration to make sure it was pointing to the correct place
  10. Checked the Volumes/Datasets
At this point the jails dataset had reappeared. WT..?!o_O
  1. So I, Destroyed the jails dataset (again!)
  2. Chose Reboot this time, instead of Shutdown
  3. Waited for the server to come back up
  4. Re-opened the FreeNAS WebGUI
  5. Checked the Volumes/Datasets (and viola! the dataset is gone)
  6. So, just to be sure it wasn't going to come back on its own, I Shutdown the server
  7. Waited for complete shutdown
  8. Powered the server back on
  9. Re-opened the FreeNAS WebGUI
  10. Checked the Volumes/Datasets (and the dataset was still gone)
  11. Made another check of the Jails Configuration (still pointing to the correct place)
  12. Tried hitting Save on the Jails Configuration, but FreeNAS reported the jails location did not exist (good, makes sense)
When I had originally installed the Plex plugin, it had created (and presumably configured) the jails dataset for me. Re-reading the Plugins and Jails documentation confirmed the plugin had created the jails dataset. So, making things easy on myself, I installed the Plex plugin again, and had it create the jails dataset (but this time with the updated configuration). Still, no jails templates...:(

A bit more poking around, and it dawned on me that people weren't really talking about /usr/local/etc/pkg/repos/FreeBSD.conf, but actually meant /mnt/<Volume>/jails/<location of a jail>/usr/local/etc/pgk/repos/FreeBSD.conf; that file has a bit more to it, and seems okay from what I can tell.
Code:
FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/freebsd:10:x86:64/latest",
  mirror_type: "srv",
  enabled: yes
}


Started poking around some more, came across this thread, and read, "No templates should show in 9.10 as php-virtualbox has been removed and the default one does not show. The only templates that should show on 9.10 are the ones you create yourself..." SRSLY?! :confused:

Well, that was a rather huge waste of time and effort. :mad: At least I got to know the system a little bit better. Along the way I learned that VirtualBox template support is going away, and the preferred method will be some bhyve, but until it's ready (sometime when FreeNAS 10.x is declared stable) we'll have to use iohyve (buuuuut... iohyve doesn't support a gui... so no Windows, MacOS, X11, etc., unless you can install a VNC Server on the host VM. Once bhyve and FreeNAS 10.x are stable we should get the GUI support back). Hopefully FreeNAS 10.x will be declared stable sooner, rather than later, and we can not only get VMs that support Gui's, but also some templates to help get them configured and setup.
 
Status
Not open for further replies.
Top