Page 1 of 1
jails and multicast | vimage
Posted: 23 Jan 2014 00:01
by pykaboo
Hello,
I'm a happy user of nas4free for a long time, but the only missing thing for me is the ability to have a jail with a working dlna server in it. I understand that freebsb jails can't receive multicast, but with vimage kernel option this problem should be resolved (jails can have a real ip stack with it). So will nas4free kernel have vimage option by default ?
Regards,
Re: jails and multicast | vimage
Posted: 23 Jan 2014 00:21
by alexey123
dlna servers such serviio, minidlna, plex works perfect under nas4free jails. Please observe forum Jails
viewforum.php?f=79
Re: jails and multicast | vimage
Posted: 23 Jan 2014 02:24
by raulfg3
alexey123 wrote:dlna servers such serviio, minidlna, plex works perfect under nas4free jails. Please observe forum Jails
viewforum.php?f=79
sorry , but I think that user have reason, actual jail do not work well with multicast ,only output multicast,but not recive.
his question is valid, and vimage can be a good addition to N4F
Re: jails and multicast | vimage
Posted: 23 Jan 2014 07:07
by alexey123
Do you know why "VImage kernel options during the transition and for the final product " on FreeBSD wiki isa striked ?
https://wiki.freebsd.org/Image
Re: jails and multicast | vimage
Posted: 23 Jan 2014 07:41
by raulfg3
no, I don't know.
Re: jails and multicast | vimage
Posted: 23 Jan 2014 08:05
by alexey123
I work on adopt the brig to openvpn now - I have not time for detail investigation. But fast googling say about kernel panics from many users when they add VIMAGE to kernel in FreeBSD 9+.
Need add to kernel not only VIMAGE, need add NAT options, such as
options IPDIVERT
options IPFIREWALL_NAT
options LIBALIAS
options DUMMYNET
But in this case we will have not simple and good working fileserver.
UPD: find into sources - /usr/src/tools/tools/vimage
Need check, must be work - only 1 small binary

Re: jails and multicast | vimage
Posted: 24 Jan 2014 08:11
by pykaboo
raulfg3 wrote:alexey123 wrote:dlna servers such serviio, minidlna, plex works perfect under nas4free jails. Please observe forum Jails
viewforum.php?f=79
sorry , but I think that user have reason, actual jail do not work well with multicast ,only output multicast,but not recive.
his question is valid, and vimage can be a good addition to N4F
I know that there are some "workaround" for multicast to jail problem. For exemple converting multicast to unicast with a NAT rule (nas4free have not nat) :
https://forums.freebsd.org/viewtopic.php?&t=1389
For the DLNA servers, the workaround is to change the delay between to advertisement on the server side, but it don't work very well.
In my opinion, the only "proper" solution should be using vimage. I think that I'll have a try to create a custum nas4free embedded image by following this tread :
http://wiki.nas4free.org/doku.php?id=do ... om_scratch
To know if visage is working, we can test to launch the commande jail with the -vnet option, if this don't work we'll have a "jail: unknown parameter: vnet" error :
~ # jail -c vnet host.hostname=one.domain.tld path=/ persist
jail: unknown parameter: vnet
This thread seems to be intersting for jail with vimage :
http://lifanov.com/doc/vimage.html
Re: jails and multicast | vimage
Posted: 26 Jan 2014 16:23
by alexey123
It possible, but I want check isboot.ko issue.
Checked.
VIMAGE option, added to kernel not compatible with isboot driver.

Re: jails and multicast | vimage
Posted: 05 Feb 2014 18:05
by MikeMac
pykaboo wrote:I think that I'll have a try to create a custum nas4free embedded image
Any progress or problems? I'd like to do the same, even if iscsi will not work on this machine. I had prevously made embedded image, but with no modification. So any advice, especially from gurus like
alexey123 is more then welcome
Freenas includes vimage
Posted: 09 Feb 2014 20:02
by MikeMac
I have found, that FreeNAS included VIMAGE from the box
http://doc.freenas.org/index.php/Adding_Jails
"VIMAGE checkbox gives a jail its own virtualized network stack; requires promiscuous mode to be enabled on the interface"
(And at the same time FreeNAS support iscsi too
http://doc.freenas.org/index.php/ISCSI)
As result, there is no multicast problems with Jails at FreeNAS and plex and other DLNA servers should be visible.
I really love nas4free, but I am afraid, this difference is more then enough for average home user to switch
I hope, nas4free team could recheck possibility to add VIMAGE. I hope, FreeNAS code could be helpful
By the way, I had made attempt to build nas4free kernel with VIMAGE, but failed.
If I add
то /sys/amd64/conf/GENERIC, I could see "stack protector" errors during kernel building
and others does not help. Apparently, not enough qualification
Re: jails and multicast | vimage
Posted: 13 Feb 2014 19:48
by MikeMac
I have managed to create VIMAGE build of trunk (947) version of nas4free img file
Lines were added to GENERIC, as per
http://zewaren.net/site/?q=node/78
options VIMAGE
options NULLFS
device epair
device if_bridge
(nooptions SCTP were NOT set, as far as SCTP and VIMGE conflict resolved at FreeBSD 9.2)
(Note There were messages during kernel building, so I suppose, iSCSI problems are due to it. But after all it is no problem at all to install AoE instead...)
IMG file is here, at my cloud disk,
http://yadi.sk/d/XaufLoAbHqxiY
I had shortly tested one - it works on virtual machine
jls -h output show "vnet" option, as per alexey123 msg dated Jan 26
alexey123 - please, let me know how could I start jail with TheBrig with vnet option? Is "Options." field suitable?
Re: jails and multicast | vimage
Posted: 18 Feb 2014 20:20
by MikeMac
too bad
zfs does not work properly on my above mentioned build with VIMAGE
Re: jails and multicast | vimage
Posted: 18 Feb 2014 20:31
by raulfg3
sorry, but actually vimage only works fine in FreeNAS, you need to wait until developers use BSD 10 , that have support of vimage by default.
Re: jails and multicast | vimage
Posted: 21 Feb 2014 10:02
by pykaboo
Hello all,
I try yesterday freebsd10, but I didn't see that vimage is set by default. jls -h didn't show the vnet option. I don't find any informations about vimage and freebsd10 (I have a look in the changelog). I'm afraid that freebsd 10 don't have this option by default yet.
For my personnal problem (dlna with plex), I think that I have only two solutions :
- trying to create my own nas4free with vimage (I have to found the time...)
--> the problem is that I saw many thread with bugs, and I'll not be able to update easyly nas4free in the futur if I use a custum nas4free. But It seems to be a good way to learn more about FreeBSD and jails.
- trying to create a plex extention
--> seem to be the better solution