System: Ubuntu 16.04
So, I made an Ubuntu 16.04 container with some tweaks to make it show up on my local network.
The basics involving creating a custom bridge like:
anders@lenox:~$ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
#Added for lxc bridge
auto br0
iface br0 inet dhcp
bridge-ifaces enp4s0
bridge-ports enp4s0
up ifconfig enp4s0 up
iface enp4s0 inet manual
enp4s0 being my eth0 as systemd takes over ;)
Then setting LXC network settings to the correct bridge:
anders@lenox:~$ sudo cat /var/lib/lxc/media/config
[sudo] password for anders:
# Template used to create this container: /usr/share/lxc/templates/lxc-ubuntu
# Parameters passed to the template:
# For additional config options, please look at lxc.container.conf(5)
# Uncomment the following line to support nesting containers:
#lxc.include = /usr/share/lxc/config/nesting.conf
# (Be aware this has security implications)
# Common configuration
lxc.include = /usr/share/lxc/config/ubuntu.common.conf
# Container specific configuration
lxc.rootfs = /var/lib/lxc/media/rootfs
lxc.rootfs.backend = dir
lxc.utsname = media
lxc.arch = amd64
# Network configuration
lxc.network.type = veth
lxc.network.link = br0
lxc.network.flags = up
lxc.network.hwaddr = 00:16:3e:6e:5f:75
#anders: added to make it work
lxc.aa_allow_incomplete = 1
Using br0 I´m creating a bridge making my LXC draw an ip from my router instead of another subnet.
When i try to connect to the page x.x.x.x:32400 the page shows:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<MediaContainer size="19" allowCameraUpload="0" allowChannelAccess="1" allowSharing="1" allowSync="0" backgroundProcessing="1" companionProxy="1" diagnostics="logs,databases" eventStream="1" friendlyName="media" hubSearch="1" machineIdentifier="8613c35200ce67206708d59c8f7f18c79cbd9cbf" multiuser="1" myPlex="1" myPlexMappingState="mapped" myPlexSigninState="none" myPlexSubscription="0" platform="Linux" platformVersion="4.8.1-040801-generic (#201610071031 SMP Fri Oct 7 14:34:10 UTC 2016)" pluginHost="1" readOnlyLibraries="0" requestParametersInCookie="1" sync="1" transcoderActiveVideoSessions="0" transcoderAudio="1" transcoderLyrics="1" transcoderPhoto="1" transcoderSubtitles="1" transcoderVideo="1" transcoderVideoBitrates="64,96,208,320,720,1500,2000,3000,4000,8000,10000,12000,20000" transcoderVideoQualities="0,1,2,3,4,5,6,7,8,9,10,11,12" transcoderVideoResolutions="128,128,160,240,320,480,768,720,720,1080,1080,1080,1080" updatedAt="1476467148" updater="1" version="1.1.4.2757-24ffd60">
<script/>
<Directory count="1" key="activity" title="activity"/>
<Directory count="1" key="butler" title="butler"/>
<Directory count="1" key="channels" title="channels"/>
<Directory count="1" key="clients" title="clients"/>
<Directory count="1" key="diagnostics" title="diagnostics"/>
<Directory count="1" key="hubs" title="hubs"/>
<Directory count="1" key="library" title="library"/>
<Directory count="1" key="neighborhood" title="neighborhood"/>
<Directory count="1" key="playQueues" title="playQueues"/>
<Directory count="1" key="player" title="player"/>
<Directory count="1" key="playlists" title="playlists"/>
<Directory count="1" key="resources" title="resources"/>
<Directory count="1" key="search" title="search"/>
<Directory count="1" key="server" title="server"/>
<Directory count="1" key="servers" title="servers"/>
<Directory count="1" key="statistics" title="statistics"/>
<Directory count="1" key="system" title="system"/>
<Directory count="1" key="transcode" title="transcode"/>
<Directory count="1" key="updater" title="updater"/>
</MediaContainer>
Inside the container I get:
ubuntu@media:~$ sudo systemctl status plexmediaserver
[sudo] password for ubuntu:
● plexmediaserver.service - Plex Media Server for Linux
Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
Active: active (running) since fr. 2016-10-14 17:44:38 UTC; 2h 38min ago
Main PID: 4197 (sh)
CGroup: /system.slice/plexmediaserver.service
├─4197 /bin/sh -c LD_LIBRARY_PATH=/usr/lib/plexmediaserver /usr/lib/plexmediaserver/Plex\ Media\ Server
├─4198 /usr/lib/plexmediaserver/Plex Media Server
├─4229 Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-24ffd60/Framework.bundle/Contents/Resources/Versions/2
└─4278 /usr/lib/plexmediaserver/Plex DLNA Server
okt. 14 17:46:51 media systemd[1]: [/lib/systemd/system/plexmediaserver.service:11] Invalid escape sequences in line, correcting: "/bin/sh -c 'LD_LIBR
okt. 14 17:46:55 media systemd[1]: [/lib/systemd/system/plexmediaserver.service:11] Invalid escape sequences in line, correcting: "/bin/sh -c 'LD_LIBR
okt. 14 17:46:55 media systemd[1]: [/lib/systemd/system/plexmediaserver.service:11] Invalid escape sequences in line, correcting: "/bin/sh -c 'LD_LIBR
okt. 14 17:46:55 media systemd[1]: [/lib/systemd/system/plexmediaserver.service:11] Invalid escape sequences in line, correcting: "/bin/sh -c 'LD_LIBR
okt. 14 17:46:57 media systemd[1]: [/lib/systemd/system/plexmediaserver.service:11] Invalid escape sequences in line, correcting: "/bin/sh -c 'LD_LIBR
okt. 14 19:09:21 media systemd[1]: [/lib/systemd/system/plexmediaserver.service:11] Invalid escape sequences in line, correcting: "/bin/sh -c 'LD_LIBR
okt. 14 19:09:25 media systemd[1]: [/lib/systemd/system/plexmediaserver.service:11] Invalid escape sequences in line, correcting: "/bin/sh -c 'LD_LIBR
okt. 14 19:09:25 media systemd[1]: [/lib/systemd/system/plexmediaserver.service:11] Invalid escape sequences in line, correcting: "/bin/sh -c 'LD_LIBR
okt. 14 19:09:25 media systemd[1]: [/lib/systemd/system/plexmediaserver.service:11] Invalid escape sequences in line, correcting: "/bin/sh -c 'LD_LIBR
okt. 14 19:09:27 media systemd[1]: [/lib/systemd/system/plexmediaserver.service:11] Invalid escape sequences in line, correcting: "/bin/sh -c 'LD_LIBR
I´ve installed python scripts like CouchPotato and its working fine, any idea whats happening here?