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!

jails and multicast | vimage

Post/Debate your Suggestions & Requests of XigmaNAS here. This ONLY pertains to XigmaNAS.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
pykaboo
NewUser
NewUser
Posts: 3
Joined: 22 Jan 2014 23:51
Location: France
Status: Offline

jails and multicast | vimage

Post 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,
nas4free 9.2.0.1 - 943 x64-embedded
asus P8H7-I corei3 3220T, 8Go ram, 4x500Mo 2.5 inch RaidZ1+ 128 ssd for read cache

User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: jails and multicast | vimage

Post by alexey123 »

dlna servers such serviio, minidlna, plex works perfect under nas4free jails. Please observe forum Jails viewforum.php?f=79
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: jails and multicast | vimage

Post 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
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

User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: jails and multicast | vimage

Post 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
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: jails and multicast | vimage

Post by raulfg3 »

no, I don't know.
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

User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: jails and multicast | vimage

Post 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
Image
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

pykaboo
NewUser
NewUser
Posts: 3
Joined: 22 Jan 2014 23:51
Location: France
Status: Offline

Re: jails and multicast | vimage

Post 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
nas4free 9.2.0.1 - 943 x64-embedded
asus P8H7-I corei3 3220T, 8Go ram, 4x500Mo 2.5 inch RaidZ1+ 128 ssd for read cache

User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: jails and multicast | vimage

Post by alexey123 »

Image

It possible, but I want check isboot.ko issue.

Checked.
VIMAGE option, added to kernel not compatible with isboot driver. :cry:
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

User avatar
MikeMac
Forum Moderator
Forum Moderator
Posts: 429
Joined: 07 Oct 2012 23:12
Location: Moscow, Russia
Contact:
Status: Offline

Re: jails and multicast | vimage

Post 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

User avatar
MikeMac
Forum Moderator
Forum Moderator
Posts: 429
Joined: 07 Oct 2012 23:12
Location: Moscow, Russia
Contact:
Status: Offline

Freenas includes vimage

Post 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

Code: Select all

options  VIMAGE
то /sys/amd64/conf/GENERIC, I could see "stack protector" errors during kernel building

Code: Select all

nooptions SCTP
and others does not help. Apparently, not enough qualification

User avatar
MikeMac
Forum Moderator
Forum Moderator
Posts: 429
Joined: 07 Oct 2012 23:12
Location: Moscow, Russia
Contact:
Status: Offline

Re: jails and multicast | vimage

Post 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?

User avatar
MikeMac
Forum Moderator
Forum Moderator
Posts: 429
Joined: 07 Oct 2012 23:12
Location: Moscow, Russia
Contact:
Status: Offline

Re: jails and multicast | vimage

Post by MikeMac »

too bad :(
zfs does not work properly on my above mentioned build with VIMAGE

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: jails and multicast | vimage

Post 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.
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

pykaboo
NewUser
NewUser
Posts: 3
Joined: 22 Jan 2014 23:51
Location: France
Status: Offline

Re: jails and multicast | vimage

Post 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
nas4free 9.2.0.1 - 943 x64-embedded
asus P8H7-I corei3 3220T, 8Go ram, 4x500Mo 2.5 inch RaidZ1+ 128 ssd for read cache

Post Reply

Return to “Suggestions & Requests”