Problems with my jail

Status
Not open for further replies.

ethereal

Guru
Joined
Sep 10, 2012
Messages
762
i previously got a mysql jail on 9.2 working with my xbmc boxes.

i got a new router linksys WRT1900AC and now the jail doesn't work - xbmc cannot see mysql

i thought it was because the address of the jail was 192.168.0.2 and the new router uses 192.168.1

i thought i would delete the jail and make a new one and hopefully this would fix the issue with the ip address
i created a new jail and it has the ip address 192.168.0.1 - does this mean it is independent of the router - is this a freenas thing or do i need a jail with the corrrect number - 192.168.1.1 ?

anyway i went in to my jail and tried to install mysql and i got an error

root@mysql:/ # pkg install mysql55-server
Updating FreeBSD repository catalogue...
pkg: http://pkg.FreeBSD.org/freebsd:9:x86:64/latest/meta.txz: No address record
pkg: repository FreeBSD has no meta file, using default settings
pkg: http://pkg.FreeBSD.org/freebsd:9:x86:64/latest/digests.txz: No address record
pkg: Unable to update repository FreeBSD
All repositories are up-to-date.
The following 2 packages will be affected (of 0 checked):

New packages to be INSTALLED:
mysql55-server: 5.5.39
mysql55-client: 5.5.39

The process will require 104 MB more space.
7 MB to be downloaded.

Proceed with this action? [y/N]: y
pkg: http://pkg.FreeBSD.org/freebsd:9:x86:64/latest/All/mysql55-server-5.5.39.txz: No address record

hopefully somebody can help me make a new jail with mysql installed - i am now running 9.3

thank you
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
192.168.0.* and 192.168.1.* are different networks. Your options are either to set the router to use 192.168.0.* for your LAN, or change the jails configuration (it's in the "advanced mode" section) to use 192.168.1.* IPs for the jails.
 

ethereal

Guru
Joined
Sep 10, 2012
Messages
762
i did try to change the jail to 192.168.1.2 but it didn't work, so i deleted it, i thought it would be easier to create a new one.

are the install errors because the original installation of freenas 9.3 was using the old router (192.168.0.1) - now i have a new router (192.168.1.1) - are there configuration files with the old address causing my install errors ?
 

ethereal

Guru
Joined
Sep 10, 2012
Messages
762
Okay i think i worked it out - on the jails page - configuration tab there is a whole load of ip address using the 192.168.0 - (i changed the zeros to ones)

i created a new jail and it is 192.168.1.2 and i can install mysql
 

ethereal

Guru
Joined
Sep 10, 2012
Messages
762
i am in my jail and i tried to edit - /etc/rc.conf and got an error

nano /etc/rc.conf
Shared object "libiconv.so.2" not found, required by "libintl.so.8"
 

ethereal

Guru
Joined
Sep 10, 2012
Messages
762
me again
pkg install libiconv

solved the nano problem
 
Status
Not open for further replies.
Top