This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
set up jail for serviio
-
cuculainn
- Status: Offline
set up jail for serviio
Hi guys
I am completely new to NAS4free and jails. I have NAS4free installed (embedded) and working.
I want to install Serviio.
I was trying to follow the instructions on this forum, but I am failing miserably!!
where do i enter the code to setup a jail is it in the command window on the web inteface of NAS4free or do I need to access the NAS directly
Sorry for such a basic question, but any help is appreciated.
If anyone has a link to a dummies guide to jails i would apprciate that also
I am completely new to NAS4free and jails. I have NAS4free installed (embedded) and working.
I want to install Serviio.
I was trying to follow the instructions on this forum, but I am failing miserably!!
where do i enter the code to setup a jail is it in the command window on the web inteface of NAS4free or do I need to access the NAS directly
Sorry for such a basic question, but any help is appreciated.
If anyone has a link to a dummies guide to jails i would apprciate that also
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: set up jail for serviio
you need to enter code in the shell, use SSH sevice in NAS and use Putty in your Desktop PC.
PD: Fsbruva are working in a easy way to installl jails called "thebrig" , search forum if you want to know more.
PD: Fsbruva are working in a easy way to installl jails called "thebrig" , search forum if you want to know more.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
-
cuculainn
- Status: Offline
Re: set up jail for serviio
I really appreciate your reply, so what your saying is basically if I am entering the code remotely I use PUTTY (I run Ubuntu so I will need the linux equivalent) which will link with the SSH service on NAS....
Anyway I will give it a go but will probably have more questions
Anyway I will give it a go but will probably have more questions
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: set up jail for serviio
YEScuculainn wrote:I really appreciate your reply, so what your saying is basically if I am entering the code remotely I use PUTTY (I run Ubuntu so I will need the linux equivalent) which will link with the SSH service on NAS...
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
-
cuculainn
- Status: Offline
Re: set up jail for serviio
ok,
so I made some progress, got as far as where i have to download the BSD base system, and It got to about 6% and then write failed file system is full no space left on device.
I think I made a mistake creating the mount point is there anyway to delete what I have done and start over?
thanks for your help
so I made some progress, got as far as where i have to download the BSD base system, and It got to about 6% and then write failed file system is full no space left on device.
I think I made a mistake creating the mount point is there anyway to delete what I have done and start over?
thanks for your help
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: set up jail for serviio
strange if you create the jail in your data disk.cuculainn wrote:so I made some progress, got as far as where i have to download the BSD base system, and It got to about 6% and then write failed file system is full no space left on device.
"rm" see wiki jails : HOWTO delete a jail.cuculainn wrote:I think I made a mistake creating the mount point is there anyway to delete what I have done and start over?
PD: consider to try to install thebrig is easy for beginers: viewtopic.php?f=79&t=1654&p=16870
You do not have the required permissions to view the files attached to this post.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
-
cuculainn
- Status: Offline
Re: set up jail for serviio
Thanks again for reply,
I have a 12 gb disk that I have installed NAS4free on, this is the mount pt that I am trying to install the jail. It shows up on the NAS as being empty so I dont know why it says there is no space on device.
When i was installing NAS4free, it gave me option(i think) to partition the drive an leave remaining space available as storage. Would this be the reason? as in it is trying to download to the patition with NAS4free on it which may be too small?
Maybe i will just delete and try your other sugestion, even though it looks just as complicated
I have a 12 gb disk that I have installed NAS4free on, this is the mount pt that I am trying to install the jail. It shows up on the NAS as being empty so I dont know why it says there is no space on device.
When i was installing NAS4free, it gave me option(i think) to partition the drive an leave remaining space available as storage. Would this be the reason? as in it is trying to download to the patition with NAS4free on it which may be too small?
Maybe i will just delete and try your other sugestion, even though it looks just as complicated
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: set up jail for serviio
if you use the wiki, you need to create /jail in your boot nas4Free (in "/"), and the real jail folder in your data disk, normally in /mnt/YourDatadisk/jail (replace yourdatadisk by your real pool), and mount using nullfs to /jail .cuculainn wrote:I have a 12 gb disk that I have installed NAS4free on, this is the mount pt that I am trying to install the jail. It shows up on the NAS as being empty so I dont know why it says there is no space on device.
in the wiki Jail is:
Code: Select all
# cd /
# mkdir /jail
# mkdir /mnt/data/jail
# mkdir /mnt/data/jail/{work,proto,conf}
# mount_nullfs /mnt/data/jail /jailPlease can you post this same lines using your pool name??
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: set up jail for serviio
can be.cuculainn wrote:When i was installing NAS4free, it gave me option(i think) to partition the drive an leave remaining space available as storage. Would this be the reason? as in it is trying to download to the patition with NAS4free on it which may be too small?
Nas4Free for default suggest 384MB to install on it, that is the minimun that need to boot, and is usefull for old hardware and small CF.
But if you have a 12GB disk to boot Nas4Free, do a new full reinstall, and this time select 2048MB ( you don't need more) to install Nas4Free, next restore previosly saved config and you have a new N4F install on a 2GB parttion, so you don't have space problems this time ( you can use 10240MB if you want, but 2GB is enought).
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
-
cuculainn
- Status: Offline
Re: set up jail for serviio
Thanks,
I will do a fresh install and create a 2gb partition and then I will get back to you and post the lines from your previous post with my mount pt
I will do a fresh install and create a 2gb partition and then I will get back to you and post the lines from your previous post with my mount pt
-
cuculainn
- Status: Offline
Re: set up jail for serviio
Ok so I re installed NAS4free, and set up a 2 gb partition. (realised I had done the embedded install last time!)raulfg3 wrote:if you use the wiki, you need to create /jail in your boot nas4Free (in "/"), and the real jail folder in your data disk, normally in /mnt/YourDatadisk/jail (replace yourdatadisk by your real pool), and mount using nullfs to /jail .cuculainn wrote:I have a 12 gb disk that I have installed NAS4free on, this is the mount pt that I am trying to install the jail. It shows up on the NAS as being empty so I dont know why it says there is no space on device.
in the wiki Jail is:remember replace "data" by your pool/mount.Code: Select all
# cd / # mkdir /jail # mkdir /mnt/data/jail # mkdir /mnt/data/jail/{work,proto,conf} # mount_nullfs /mnt/data/jail /jail
Please can you post this same lines using your pool name??
So my lines should be. ( I notice you have included the first line which is not in the wiki. # cd /
Code: Select all
# cd /
# mkdir /jail
# mkdir /mnt/NAS/jail
# mkdir /mnt/NAS/jail/{work,proto,conf}
# mount_nullfs /mnt/NAS/jail /jailI'm gonna wait for you before I go anywhere!!
-
cuculainn
- Status: Offline
Re: set up jail for serviio
Ok,
So decided to go ahead and give this a go
I have got to this point without any problems (i think)
but looking ahead it is getting more complicated, so maybe if you are back online you can give me some more advice
thanks again for your help
So decided to go ahead and give this a go
I have got to this point without any problems (i think)
Code: Select all
mkdir /jail/proto/mnt/Video
thanks again for your help
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: set up jail for serviio
now you need to edit fstab.proto to mount your video path inside the jail
and add the apropiate line:
I do not know what is, I supposse
next step is create rc.conf.local
Code: Select all
nano /jail/conf/fstab.protoin red are the path to your Video folder/mnt/data/Video /jail/proto/mnt/Video nullfs ro 0 0
I do not know what is, I supposse
Code: Select all
/mnt/NAS/Video /jail/proto/mnt/Video nullfs ro 0 012.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
-
cuculainn
- Status: Offline
Re: set up jail for serviio
Thanks for getting back,raulfg3 wrote:now you need to edit fstab.proto to mount your video path inside the jail
and add the apropiate line:Code: Select all
nano /jail/conf/fstab.protoin red are the path to your Video folder/mnt/data/Video /jail/proto/mnt/Video nullfs ro 0 0
I do not know what is, I suppossenext step is create rc.conf.localCode: Select all
/mnt/NAS/Video /jail/proto/mnt/Video nullfs ro 0 0
One thing before I do that, I plan to add another harddrive where I will store most of my stuff, will it be possible to add another video or downloads path to the jail in the future?
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: set up jail for serviio
Yes, you can add as many lines as you want, only limitation is that each line is a separate folder in jail ( you can't merge several Video folders in only one folder in destination)cuculainn wrote:One thing before I do that, I plan to add another harddrive where I will store most of my stuff, will it be possible to add another video or downloads path to the jail in the future?
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
-
cuculainn
- Status: Offline
Re: set up jail for serviio
Ok, so thanks for your help to date I am still making progress and really appreciate your help.
I am now ready to "Create rc.conf.local:"
When the wiki says modify to fit needs this is what I am planning to put in. Does it get entered exactly as formatted below?
Three questions.
1. I assume I assign a static ip address on router to match the one above?
2. I am not sure what the network interface to use....is it what I use to log in to NAS4free?
3. is there anything there that you think I should change?
thanks
I am now ready to "Create rc.conf.local:"
When the wiki says modify to fit needs this is what I am planning to put in. Does it get entered exactly as formatted below?
Code: Select all
jail_enable="YES" # enable jails YES|NO
jail_list="proto" # name of the jails to start "proto www..."
jail_proto_rootdir="/jail/proto" # path to our jail
jail_proto_hostname="proto.domain.local" # hostname
jail_proto_ip="192.168.1.110" # ip of the jail
jail_proto_interface="xI0" # Network Interface to use, replace on your NAS interface name
jail_proto_devfs_enable="YES" # use devfs
jail_proto_mount_enable="YES" # mount YES|NO
jail_proto_fstab="/jail/conf/fstab.proto" # File with Filesystems to mount
Three questions.
1. I assume I assign a static ip address on router to match the one above?
2. I am not sure what the network interface to use....is it what I use to log in to NAS4free?
3. is there anything there that you think I should change?
thanks
Last edited by cuculainn on 17 Apr 2013 08:56, edited 2 times in total.
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: set up jail for serviio
use the interface that you assing to LAN in : Network|Interface Managementcuculainn wrote:. I am not sure what the network interface to use....is it what I use to log in to NAS4free?
NO, you need to assing one compatible with your actual IP, and free, eg: if you use 192.168.1.250 for your NAS, 192.168.1.201 is good, but if you use 192.168.0.10 for your NAS, then IP can be 192.168.0.101 by examplecuculainn wrote:1. I assume I assign a static ip address on router to match the one above?
I use jail_proto_hostname="proto" # hostname for jail protocuculainn wrote:3. is there anything there that you think I should change?
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
-
cuculainn
- Status: Offline
Re: set up jail for serviio
Quick question I have just entered the line with IP address and network interface.
How do I save this as per the wiki?
"Change the settings to fit your needs and save. Especially jail_proto_interface and jail_proto_ip."
How do I save this as per the wiki?
"Change the settings to fit your needs and save. Especially jail_proto_interface and jail_proto_ip."
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: set up jail for serviio
use save in your editor ( if use embeded file editor, push save, if use "ee" (file editor in shell) use save, etc....
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
-
cuculainn
- Status: Offline
Re: set up jail for serviio
Thanks again for your continued support.
So i have got to the end of the wiki, and rebooted.
Now I am wondering where do I enter "# jls" to check the jail?
Thanks again
So i have got to the end of the wiki, and rebooted.
Now I am wondering where do I enter "# jls" to check the jail?
Thanks again
-
cuculainn
- Status: Offline
Re: set up jail for serviio
raulfg3 wrote:use save in your editor ( if use embeded file editor, push save, if use "ee" (file editor in shell) use save, etc....
Just reviewing what I have completed and think I may have done this step wrong.
I completed all this in Putty. when I enter nano does this open up the file editor?
To save do I actually enter "save, etc...."
please dont give up on me at this stage...I feel I am so close to sucess!
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: set up jail for serviio
nano is a file editor like notepad ( well not like notepad, is more like emacs if you know), you can use it to edit file, and use escape to save file ( escape is to open a menu to do things).
Trick: use Nas4Free embeded file editor in Advanced|File Editor and locate desired file to edit in /jail/conf/fstab.proto or in /mnt/yourpool/jail/conf/fstab.proto . is better because have a interface not a command line.
Trick: use Nas4Free embeded file editor in Advanced|File Editor and locate desired file to edit in /jail/conf/fstab.proto or in /mnt/yourpool/jail/conf/fstab.proto . is better because have a interface not a command line.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: set up jail for serviio
if you type jls and you do all step in wiki corect, you must have an output like this:cuculainn wrote:Thanks again for your continued support.
So i have got to the end of the wiki, and rebooted.
Now I am wondering where do I enter "# jls" to check the jail?
Thanks again
Code: Select all
# jls
JID IP Address Hostname Path
1 192.168.1.110 proto.domain.local /jail/protoPD. revise that 192.168.1.100 are not in use in your LAN, because jail need it to use for jail proto.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
-
cuculainn
- Status: Offline
Re: set up jail for serviio
Hi Raul,raulfg3 wrote:if you type jls and you do all step in wiki corect, you must have an output like this:cuculainn wrote:Thanks again for your continued support.
So i have got to the end of the wiki, and rebooted.
Now I am wondering where do I enter "# jls" to check the jail?
Thanks again
Code: Select all
# jls JID IP Address Hostname Path 1 192.168.1.110 proto.domain.local /jail/proto
PD. revise that 192.168.1.100 are not in use in your LAN, because jail need it to use for jail proto.
well I decided to do another fresh install and start over. Having read some of the other wikis and forums I had a better understanding of what I was doing wrong.
So this time I have had sucess and when i enter
Code: Select all
# jlsCode: Select all
JID IP Address Hostname Path
1 192.168.1.110 proto.domain.local /jail/protoIt currently is not used by router.
Also my Nas is a pretty old pc so would I be better to install MiniDLna instead of Serviio?
I have been reading your thread on MiniDLNA and thinking of that instead
Thanks for all your help
-
cuculainn
- Status: Offline
Re: set up jail for serviio
Ok,
So as I said in previous post I have my jail set up and working at last!
I decided to install Serviio so created a new jail called serviio which worked
I then started the install process as per the HowTO on the forum. It was installing fine, but after 9 hours still had not completed installing of ffmpeg1................Is this normal?
I left running over night but at some stage I lost connection to server.
So I have decided to delete jail and start over again.
Should I jsut install miniDLNA instead of Serviio?
Does MIniDLNA be recognised by Samsung tvs as good as Serviio?
Thanks for continued support
So as I said in previous post I have my jail set up and working at last!
I decided to install Serviio so created a new jail called serviio which worked
I then started the install process as per the HowTO on the forum. It was installing fine, but after 9 hours still had not completed installing of ffmpeg1................Is this normal?
I left running over night but at some stage I lost connection to server.
So I have decided to delete jail and start over again.
Should I jsut install miniDLNA instead of Serviio?
Does MIniDLNA be recognised by Samsung tvs as good as Serviio?
Thanks for continued support
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: set up jail for serviio
YES, And if you have a low end NAS is better because serviio need a lot of resources & CPU to work.cuculainn wrote:Should I jsut install miniDLNA instead of Serviio?
YES, No problem, at this point.cuculainn wrote:Does MIniDLNA be recognised by Samsung tvs as good as Serviio?
PD: a trick that I discover last days, you can use embedded fuppes UPNP if you use loewe as profile for your SAMSUNG the only bad for this is that you need to updata database by hand because cron or command line do not work.
viewtopic.php?f=38&t=1074
So still recomend to use minidlna if you want cron update of your media files.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
-
cuculainn
- Status: Offline
Re: set up jail for serviio
Great thanks for reply. I am going to study your Howto on installing MiniDlna and try that first
-
cuculainn
- Status: Offline
Re: set up jail for serviio
PD: a trick that I discover last days, you can use embedded fuppes UPNP if you use loewe as profile for your SAMSUNG the only bad for this is that you need to updata database by hand because cron or command line do not work.
viewtopic.php?f=38&t=1074
So still recomend to use minidlna if you want cron update of your media files.
Tried tehe fuppes UPNP and used Loewe connect profile but it didnt work.
I think I am going to install the MiniDLNA.
One further question in your How to you use ee to edit files.....I have been using the editor in NAS4free. is it ok to do this?
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: set up jail for serviio
YES, is OK, you can use the editor that you know and works with unix ( do not use notepad or windows edit, because insert CR/LF at the end on lines)cuculainn wrote:One further question in your How to you use ee to edit files.....I have been using the editor in NAS4free. is it ok to do this?
, Strange, I have a SAMSUNG B651 and works fine for me, do you see fuppes webPage?, if yes you need to push "update" or Rebuild database to say to fuppes that you want that fuppes indexes all your multimedia folders ( at least folders that you add in config webGUI).cuculainn wrote:Tried tehe fuppes UPNP and used Loewe connect profile but it didnt work.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
-
cuculainn
- Status: Offline
Re: set up jail for serviio
when you say do I see fuppes webpage do you mean the webgui?cuculainn wrote: Strange, I have a SAMSUNG B651 and works fine for me, do you see fuppes webPage?, if yes you need to push "update" or Rebuild database to say to fuppes that you want that fuppes indexes all your multimedia folders ( at least folders that you add in config webGUI).
if you mean the webgui then yes I can see it.
I am not sure that I saw a update option though. I will check later
thanks again