Help with installing Logitech media server in Jail

Status
Not open for further replies.

biggyk

Contributor
Joined
Nov 25, 2015
Messages
138
Having issues trying to install LMS in a jail. I was trying to install from freshports but its telling me that the version of freebsd is now unsupported. Any current guide out there I can use to get this installed? If not I was thinking of putting it on a ubuntu server vm.

Thanks
 

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925
Search forum for "Allow unsupported". You will find multiple references.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
FreeBSD 11.0 is EOL'd, and that's the latest base for warden jails. If you're running FreeNAS 11.1, use an iocage jail instead, which will use the FreeBSD 11.1 base system.
 

biggyk

Contributor
Joined
Nov 25, 2015
Messages
138
FreeBSD 11.0 is EOL'd, and that's the latest base for warden jails. If you're running FreeNAS 11.1, use an iocage jail instead, which will use the FreeBSD 11.1 base system.
So I guess I use that in the new beta ui? My other jails dont show up there, do I have recreate them all? My plugins dont show up either. Forgive, im still kinda new at it all.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504

biggyk

Contributor
Joined
Nov 25, 2015
Messages
138
Yes, or from the CLI.

Yes, that's expected. The new GUI shows iocage jails, the old GUI shows warden jails.

Supposedly there will be a script with 11.2 that will migrate your warden jails to iocage.
cool thanks for updating me with that info. for now it's just swapping back and forth. Il give it a shot.

Sent from my ONEPLUS A3000 using Tapatalk
 

mrMuppet

Contributor
Joined
Mar 14, 2014
Messages
192
cool thanks for updating me with that info. for now it's just swapping back and forth. Il give it a shot.

Sent from my ONEPLUS A3000 using Tapatalk
If you try to install Lms via ports, don't forget to deactivate the tests in the lms config Dialog (last line in the first config window). Otherwise it won't install.

Gesendet von meinem ONEPLUS A3003 mit Tapatalk
 

biggyk

Contributor
Joined
Nov 25, 2015
Messages
138
Having an issue getting networking working. Enabled vnet and entered in a ipv4 address and gateway but no connection to the Internet.

Sent from my ONEPLUS A3000 using Tapatalk
 

mrMuppet

Contributor
Joined
Mar 14, 2014
Messages
192
Having an issue getting networking working. Enabled vnet and entered in a ipv4 address and gateway but no connection to the Internet.

Sent from my ONEPLUS A3000 using Tapatalk
I only used command "iocage create -n lms_v1 ip4_addr="igb0|192.168.178.162/24" -r 11.1-RELEASE" and it works.

Gesendet von meinem ONEPLUS A3003 mit Tapatalk
 

biggyk

Contributor
Joined
Nov 25, 2015
Messages
138
I only used command "iocage create -n lms_v1 ip4_addr="igb0|192.168.178.162/24" -r 11.1-RELEASE" and it works.

Gesendet von meinem ONEPLUS A3003 mit Tapatalk
was created successfully but still no connection :/ portsnap just says no mirrors and cant ping anything
 

mrMuppet

Contributor
Joined
Mar 14, 2014
Messages
192
was created successfully but still no connection :/ portsnap just says no mirrors and cant ping anything

Did you change igb0 and ip matching to your config?

Gesendet von meinem ONEPLUS A3003 mit Tapatalk
 

biggyk

Contributor
Joined
Nov 25, 2015
Messages
138
Did you change igb0 and ip matching to your config?

Gesendet von meinem ONEPLUS A3003 mit Tapatalk
I'm using igb0 as well. does the ip need to be freenas or what I pick for the jail? I used an unassigned one for the jail. haven't touched any other settings.

Sent from my ONEPLUS A3000 using Tapatalk
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
I'm using igb0 as well. does the ip need to be freenas or what I pick for the jail? I used an unassigned one for the jail. haven't touched any other settings.

Sent from my ONEPLUS A3000 using Tapatalk

igb0 is name of your FreeNAS network adpater, the ip is the address you want to give to your jail (on the same subnet as the ip of your FreeNAs box).

Did you check connectivity in your jail when portsnap failed? You cannot ping from inside the jail unless the jail's "allow_raw_sockets" property has been set to 1, e.g: iocage set allow_raw_sockets=1 LMSjail

In this example, FreeNAS starts with no other jails or virtual machine's running and em0 is the network adapter name with ip address 192.168.0.114:

Code:
root@freenas:/ # ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
		options=209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC>
		ether 52:54:00:cc:71:92
		hwaddr 52:54:00:cc:71:92
		inet 192.168.0.114 netmask 0xffffff00 broadcast 192.168.0.255 
		nd6 options=9<PERFORMNUD,IFDISABLED>
		media: Ethernet autoselect (1000baseT <full-duplex>)
		status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
		options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
		inet6 ::1 prefixlen 128 
		inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 
		inet 127.0.0.1 netmask 0xff000000 
		nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
		groups: lo


A jail is created using iocage create -n LMSjail ip4_addr="em0|192.168.0.103/24" -r 11.1-RELEASE and then started iocage start LMSjail

The jails' ip address will be 192.168.0.103 and it creates an alias or "shared ip" on the Freenas adapter em0:

Code:
root@freenas:/ # ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
		options=209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC>
		ether 52:54:00:cc:71:92
		hwaddr 52:54:00:cc:71:92
		inet 192.168.0.114 netmask 0xffffff00 broadcast 192.168.0.255 
		inet 192.168.0.103 netmask 0xffffff00 broadcast 192.168.0.255 
		nd6 options=9<PERFORMNUD,IFDISABLED>
		media: Ethernet autoselect (1000baseT <full-duplex>)
		status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
		options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
		inet6 ::1 prefixlen 128 
		inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 
		inet 127.0.0.1 netmask 0xff000000 
		nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
		groups: lo


Notice em0 now has two ip addresses. This is the simplest form of networking for an iocage jail with no virtual network and the jail's vnet property should be off, check with iocage get vnet LMSjail .

You can execute commands within the jail from the FreeNAS host, e.g to check the network config in the jail use iocage exec LMSjail ifconfig

Code:
root@freenas:/ # iocage exec LMSjail ifconfig  
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 
		options=209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC> 
		ether 52:54:00:cc:71:92 
		hwaddr 52:54:00:cc:71:92 
		inet 192.168.0.103 netmask 0xffffff00 broadcast 192.168.0.255  
		media: Ethernet autoselect (1000baseT <full-duplex>) 
		status: active 
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 
		options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6> 
		groups: lo 
 
Last edited:

biggyk

Contributor
Joined
Nov 25, 2015
Messages
138
I actually just got it working late last night with a different command example. Took forever to install but finally working.
 

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,477
You should post your solution to aid in future people who search. While you are at it, please mark the thread as solved.
 

mrMuppet

Contributor
Joined
Mar 14, 2014
Messages
192
I made my lms Server work and it did Index my music but the discovery of my Hardware (Radio & Touch) doesn't work. Did anyone make it work in the 11.1 iocage installation?

Gesendet von meinem ONEPLUS A3003 mit Tapatalk
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
I made my lms Server work and it did Index my music but the discovery of my Hardware (Radio & Touch) doesn't work. Did anyone make it work in the 11.1 iocage installation?

Gesendet von meinem ONEPLUS A3003 mit Tapatalk

I set "allow_raw_sockets" to "true" in my LMS jail. For iocage, use iocage set allow_raw_sockets=1 yourjailname
 

mrMuppet

Contributor
Joined
Mar 14, 2014
Messages
192
Thanks for your advice, but i already tried that. Still no Players available for the server (and vice versa).
 

biggyk

Contributor
Joined
Nov 25, 2015
Messages
138
sorry guys iv been busy. I ended up using a warden jail and found a custom pkg repo. Il post it up when I get home.

Sent from my ONEPLUS A3000 using Tapatalk
 

mrMuppet

Contributor
Joined
Mar 14, 2014
Messages
192
I'm already using a warden jail installation (but my installation was quite complicated- interesting to see this custom pkg). But in general i would like to move to iocage completely. On my installation only Plex and lms left in warden.
 
Status
Not open for further replies.
Top