Rename iocage jails

Status
Not open for further replies.

adrianwi

Guru
Joined
Oct 15, 2013
Messages
1,231
One of the nice things I was looking forward to was renaming iocage jails.

I created one of mine as emby-iocage (as I wasn't sure how it would play with the warden one called emby) but now I've deleted the warden one was going to rename it to just emby

#iocage rename emby-iocage emby

Threw a stack of python errors, but when I checked iocage list the name had changed to emby, but the zvol was still showing as emby-iocage. iocage start emby worked, but iocage list showed the jail as down. iocage console emby launched root@emby-iocage and everything seemed to work, but it's not quite what I was expecting.

Did anyone try renaming jails and with what success?

Thanks
 

adrianwi

Guru
Joined
Oct 15, 2013
Messages
1,231
Yeah, I found some of the issues in github and tried to use some of the suggestions to fix my jail. Ended up completely breaking it, so destroyed and rebuilt it with the right name. Luckily emby is a pretty easy one to build, although takes some time using ports!
 

marcevan

Patron
Joined
Dec 15, 2013
Messages
432
Umm...what version is acceptable for Sickrage? Since latest release doesn't have freebsd-version and you have to run the file command you get back a really, really long release name that you need to truncate else iocage throws a python fit.

I got it stripped down to "FreeBSD 9.3, stripped" so I can do an iocage list:

Code:
+-----+------------+-------+-----------------------+--------------+			 
| JID |	NAME	| STATE |		RELEASE		|	 IP4	  |			 
+=====+============+=======+=======================+==============+			 
| 7   | emby_1	 | up	| 11.0-RELEASE		  | 192.168.1.45 |			 
+-----+------------+-------+-----------------------+--------------+			 
| -   | sickrage_1 | down  | FreeBSD 9.3, stripped | 192.168.1.43 |			 
+-----+------------+-------+-----------------------+--------------+


But I cannot start Sickrage with that release name...should I just make it 11.0-RELEASE ?
 

8-bit Yoda

Explorer
Joined
Jun 16, 2018
Messages
68
I would make it 9.3-RELEASE since that jail seems to be FreeBSD 9.3.
 
Status
Not open for further replies.
Top