Imported pool on new server - jails have no network connectivity

mellman

Dabbler
Joined
Sep 16, 2016
Messages
38
Hi All,

Dell R720xd
2x E5-2670
384gb RAM
LSI SAS-9207-8e
NetApp DS4246 (2x)
FreeNAS 11.1-U7
36 disk pool, 3x vdevs, raidz3

So I have re-imported my pool on to a new server (had some hardware failures lead to a degraded pool and corrupted GPT that have since been resolved), and I do not have a config backup. I have a few jails I wanted to try to recover. I setup my jail directory, it detected the 3 jails I had, they power on but they don't get an IP address (ip is 0.0.0.0 - dhcp fails) I can't manually set an IP either, it seems like the jail network isn't talking to the proper NIC on the freenas host?

I noticed the dropdown to assign the NIC on the jail is greyed out, but saw some instances that this is fixed in 11.2. Any way to fix this in 11.1 or do I need to do an upgrade to 11.2?

Thanks!
 

Apollo

Wizard
Joined
Jun 13, 2013
Messages
1,458
If GUI isn't giving you results, then you can edit the options of the jail using the CLI.
It can be that the jail is pointing to the wrong NIC because of the different name such as igb0, em0...
You can look at the iocage documentation:

 

mellman

Dabbler
Joined
Sep 16, 2016
Messages
38
If GUI isn't giving you results, then you can edit the options of the jail using the CLI.
It can be that the jail is pointing to the wrong NIC because of the different name such as igb0, em0...
You can look at the iocage documentation:

I'm on 11.1, and am running jails, iocage commands don't seem to interact with my jails. (iocage list shows nothing.
 

Apollo

Wizard
Joined
Jun 13, 2013
Messages
1,458
Then it is possible GUI hasn't activated the iocage location to be executable on your pool.
Go to GUI, iocage menu and it should show on top of the page which pool is associated with if any.
 

mellman

Dabbler
Joined
Sep 16, 2016
Messages
38
Then it is possible GUI hasn't activated the iocage location to be executable on your pool.
Go to GUI, iocage menu and it should show on top of the page which pool is associated with if any.

My GUI doesn't have anything relating to IOCAGE, everything is Jails and VMs
 

Apollo

Wizard
Joined
Jun 13, 2013
Messages
1,458
Here is a picture of the GUI where Jail Root can be assigned to the volume. In this case volume "test".
I just did a new install of Freenas 11.1-U7 in a VM as seen on picture.

Freenas_11-1_Jail_root.png
 

mellman

Dabbler
Joined
Sep 16, 2016
Messages
38
Yes, I have jails, but nothing for "iocage" specifically. They are listed under the "Jails" tab, but not when I do anything in CLI with "iocage"
jails.PNG


I created a new jail, just to see if there was something obvious like an interface name that was off, and the new jail also doesn't get an IP address.
 
Last edited:

Fredda

Guru
Joined
Jul 9, 2019
Messages
608
In 11.1 you can't manage iocage jails via the GUI, they have to be managed via CLI. Warden jails are managed via GUI.
In 11.2 the default jail system changes to iocage and they can be managed via the GUI.
In 11.2 warden jails can be managed by logging into the legacy GUI.
 
Last edited:
Top