Thanks Volker. Can confirm that it works with 2.x
Beiträge von tom_tav
-
-
While playing around with LXC i discovered the following bug in the Network Gui (Tab Interfaces):
Bridge works fine:
Code
Alles anzeigenbr0 Link encap:Ethernet HWaddr deleted inet addr:deleted Bcast:deleted Mask:255.255.255.128 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:802775 errors:0 dropped:0 overruns:0 frame:0 TX packets:623299 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:383569563 (365.8 MiB) TX bytes:213400595 (203.5 MiB) eth0 Link encap:Ethernet HWaddr deleted UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1597725 errors:0 dropped:4487 overruns:0 frame:0 TX packets:1111809 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1438828388 (1.3 GiB) TX bytes:292313367 (278.7 MiB) Interrupt:18 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:811924 errors:0 dropped:0 overruns:0 frame:0 TX packets:811924 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:240997809 (229.8 MiB) TX bytes:240997809 (229.8 MiB)
when i start the first lxc container it still works:
CodevethOdrHYA Link encap:Ethernet HWaddr deleted UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1494 errors:0 dropped:0 overruns:0 frame:0 TX packets:191366 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:652809 (637.5 KiB) TX bytes:20474688 (19.5 MiB)
but when i start another one:
CodevethY1e0UR Link encap:Ethernet HWaddr deleted UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:11 errors:0 dropped:0 overruns:0 frame:0 TX packets:5 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1100 (1.0 KiB) TX bytes:683 (683.0 B)
i get the following error:
Code
Alles anzeigenDevice 'vethY1e0UR' not supported Error #6003: exception 'OMVException' with message 'Device 'vethY1e0UR' not supported' in /usr/share/openmediavault/engined/rpc/network.inc:254 Stack trace: #0 [internal function]: OMVRpcServiceNetwork->enumerateDevicesList(Array, Array) #1 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array) #2 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('enumerateDevice...', Array, Array) #3 /usr/sbin/omv-engined(500): OMVRpc::exec('Network', 'enumerateDevice...', Array, Array, 1) #4 {main}
-
Nobody?
Getting close. Transmission running under own ip in lxc container. Downloaddirs shared with OMV. Config too.
Still need to find out how the plugin handles the starting/reloading/stopping of transmission and how it gets the data for the "Torrents" Tab
-
Want to try to put transmission inside lxc container for ip seperation & traffic shaping.
One question:
How does the Bittorren plugin update the transmission settings? Does it stop transmission, write into the settings.json file and start transmission again? (Imho no).
Or via Api? If so does it contact transmission via localhost or OMV Ip? Possible to change?
I have an idea how it could be possible to use transmission in lxc with bittorent plugin. Need to experiment.
Thanks!
-
ha you got me. will try to make a nice version during the next days.
-
jaja i know
im already happy that i did note the steps this night so i could post this. And as you can see, my bad habits to do that stuff as root user ... LOL
If there will be a howto section here i promise to make it more presentable
Next project will be Transmission inside LXC (for own ip to do better traffic shaping)
-
PlexConnect & Apple TV need to have ports 80 & 443. Instead of using port redirection i opted to do this via LXC container.
Heres a HowTo for OMV 1.19+. Please note that im using static DHCP mappings, you have to change the network sections if you want to use manual IP. And its a plain config, so if needed please take care to harden your LXC container (iptables, ssh and so on).
Word of wisdom: you shouldnt do that like me as root, use sudo instead
----
# prepare Network for lxc:
# edit /etc/network/interfaces (example for ipv4 & dhcp static lease only, adjust if needed)
--- snip ---
# The primary network interface
#allow-hotplug eth0
#iface eth0 inet dhcp
auto eth0
iface eth0 inet manual
#iface eth0 inet6 manualauto br0
iface br0 inet dhcp
bridge_ports eth0
bridge_fd 0
bridge_maxwait 0
#bridge_hello 0
#bridge_maxage 0
#bridge_stp off
--- snap ---# restart network
service network restart
# check network settings
ifconfig
# lxc install
# Install required packages
apt-get install lxc
# Install optional packages
apt-get install bridge-utils libvirt-bin debootstrap
# edit /etc/fstab:
--- snip ---
cgroup /sys/fs/cgroup cgroup defaults 0 0
--- snap ---# check fstab entry:
mount /sys/fs/cgroup
# check lxc config:
lxc-checkconfig
# The lxc-checkconfig program is reporting "Cgroup memory controller: missing". If you want memory control via cgroups then you need to recompile the linux kernel (or simply add cgroup_enable=memory to the kernel command line on jessie or later).
# Template installation (the Templates included in Wheezy dont work):wget https://github.com/simonvander…debian-wheezy-robvdhoeven -O /usr/share/lxc/templates/lxc-debian-wheezy
chown root:root /usr/share/lxc/templates/lxc-debian-wheezy
chmod +x /usr/share/lxc/templates/lxc-debian-wheezy# create Plexconnect container
lxc-create -n plexconnect -t debian-wheezy
# edit /var/lib/lxc/plexconnect/config
--- snip ---
lxc.utsname = plexconnect
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0
lxc.network.hwaddr = xx:xx:xx:xx:xx:xx # {mac address for container}
# if not using static dhcp leases you will need this sections too:
#lxc.network.ipv4 = xxx.xxx.xxx.xxx/xx # {ip address for plexconnect container / netmask }
#lxc.network.ipv4.gateway = xxx.xxx.xxx.xxx # {ip address of gateway }
--- snap ---# start container
lxc-start -n plexconnect -d# container status
lxc-info -n plexconnect# make plexconnect container autostart
ln -s /var/lib/lxc/plexconnect/config /etc/lxc/auto/plexconnect
# login to container
lxc-console -n plexconnect# from here everything is done inside the plexconnect container
# login as root/root
# change root password
pwd root# edit /etc/network/interfaces (example for dhcp static lease, change for manual ip if needed)
--- snip ---
auto lo
iface lo inet loopbackauto eth0
iface eth0 inet dhcp
--- snap ---# restart network
service networking restart# check network config
ifconfig# install python & git
apt-get install python git
# install plexconnect
cd /opt
git clone https://github.com/iBaa/PlexConnect.git# create certificate for ATV
cd /opt/PlexConnect/
cd assets/certificates/
openssl req -new -nodes -newkey rsa:2048 -out trailers.pem -keyout trailers.key -x509 -days 7300 -subj "/C=US/CN=trailers.apple.com"
openssl x509 -in trailers.pem -outform der -out trailers.cer && cat trailers.key >> trailers.pem# start PlexConnect to create basic settings
./PlexConnect.py
<Ctrl-C>
# edit /opt/PlexConnect/Settings.cfg
# for more info: https://github.com/iBaa/PlexCo…d-use-and-troubleshooting--- snip ---
ip_pms = xxx.xxx.xxx.xxx # {IP of Plex Host = OMV IP}
enable_plexgdm = False--- snap ---
# start PlexConnect
./PlexConnect_daemon.bash start
./PlexConnect_daemon.bash status# for ATV configuration see https://github.com/iBaa/PlexConnect/wiki/Install-Guide
# stop PlexConnect
./PlexConnect_daemon.bash stop# Create Auto Startup File for PlexConnect
# edit /etc/init.d/plexconnect
--- snip ---
Bash
Alles anzeigen#!/bin/bash ### BEGIN INIT INFO # Provides: plexconnect # Required-Start: # Required-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: This is the Plex Connect daemon # Description: This script starts PlexConnect in debian ### END INIT INFO . /lib/lsb/init-functions NAME=PlexConnect INSTDIR="/opt/PlexConnect" DAEMON="$INSTDIR/PlexConnect.py" DAEMON_OPTS="2>&1 >/dev/null" DAEMON_USER="root" PIDFILE=/var/run/PlexConnect.pid test -x "$DAEMON" || exit 5 case $1 in start) if [ -e $PIDFILE ]; then status_of_proc -p $PIDFILE "$DAEMON $DAEMON_OPTS" "$NAME process" && status="0" || status="$?" if [ $? = "0" ]; then log_success_msg "Starting the process $NAME" exit # Exit fi fi # Start the daemon. # Start the daemon with the help of start-stop-daemon # Log the message appropriately if start-stop-daemon --start --quiet --oknodo --background --make-pidfile --pidfile $PIDFILE --startas $DAEMON -p $PIDFILE -- ${DAEMON_OPTS}; then log_success_msg "Starting the process $NAME" else log_failure_msg "Starting the process $NAME" fi ;; stop) # Stop the daemon. if [ -e $PIDFILE ]; then status_of_proc -p $PIDFILE "$DAEMON DAEMON_OPTS" "Stoppping the $NAME process" && status="0" || status="$?" if [ "$?" = 0 ]; then start-stop-daemon --stop --signal 2 --quiet --oknodo --pidfile $PIDFILE && /bin/rm $PIDFILE log_success_msg ""Stopping the $NAME process"" fi else log_failure_msg "$NAME process is not running" fi ;; restart) # Restart the daemon. $0 stop && sleep 2 && $0 start ;; status) # Check the status of the process. if [ -e $PIDFILE ]; then status_of_proc -p $PIDFILE "$DAEMON $DAEMON_OPTS" "$NAME process" && exit 0 || exit $? log_success_msg "$NAME process is running" else log_failure_msg "$NAME process is not running" fi ;; reload) $0 restart ;; *) # For invalid arguments, print the usage message. echo "Usage: $0 {start|stop|restart|reload|status}" exit 2 ;; esac
--- snap ---chmod +x /etc/init.d/plexconnect
update-rc.d plexconnect defaults
# start plexconnect
/etc/init.d/plexconnect start
-----
Have Fun!
Btw. it was my first experience with LXC, maybe there is room for improvement
-
Short Howto for connecting to a APC UPS via Ethernet
There was a old post from volker somewhere afair which helped me to setup this on my other machine. Did a search and found lots of unanswered threads regarding this matter. Hope it helps
1. install driver
apt-get install nut-snmp
2. edit ups settings
Driver configuration directives:
---cut---
driver = snmp-ups
mibs=apcc
port = 10.0.0.0
community = public
snmp_version = v1
pollfreq = 15
desc = "APC SmartUps 1500"
---cut---replace the number for port with the ip address of your ups
-
Maybe im just blind right now. But after some time not following the forum i looked into the omv page and here cause i have to setup antoher box. On OMV blog you see some posts regarding new 2.x and 1.x just bugfixes, here you dont find nothing. In downloads just 1.x. After some reading i assume 2.x is beta and 1.x is stable.
I suggest a sticky here or in announcement where you can find the actual status about omv like: 0x retired, 1x stable, 2x testing. Would save some time and questions
-
Btw theres also a doc for Netetalk 3.1.7 to Debian 7:
-
apt-get purge openmediavault-zfs did the trick
was too stupid to find how to upgrade vie the new .deb file from shell
zfs 0.6.3.4 -> zfs 0.6.3.5
-
thanks, will try. should be this path:
http://omv-extras.org/testing/…ult-zfs_0.6.3.5_amd64.deb
apt-get -i fails ... need to read the man page
-
doesnt do so much:
# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.# apt-get update
Ign file: Release.gpg
Ign file: Release
Ign file: Translation-en_US
Ign file: Translation-en
Hit http://debian.mur.at wheezy Release.gpg
Hit http://packages.openmediavault.org kralizec Release.gpg
Get:1 http://debian.mur.at wheezy-updates Release.gpg [836 B]
Hit http://debian.mur.at wheezy Release
Hit http://packages.openmediavault.org kralizec Release
Get:2 http://debian.mur.at wheezy-updates Release [124 kB]
Hit http://dh2k.omv-extras.org virtualbox-wheezy-mirror Release.gpg
Hit http://packages.openmediavault.org kralizec/main amd64 Packages
Hit http://dh2k.omv-extras.org virtualbox-wheezy-mirror Release
Hit http://dh2k.omv-extras.org virtualbox-wheezy-mirror/main amd64 Packages
Hit http://debian.mur.at wheezy/main Sources
Hit http://debian.mur.at wheezy/main amd64 Packages
Get:3 http://ftp.debian.org wheezy-backports Release.gpg [836 B]
Hit http://debian.mur.at wheezy/main Translation-en
Get:4 http://debian.mur.at wheezy-updates/main Sources [1,805 B]
Get:5 http://ftp.debian.org wheezy-backports Release [147 kB]
Hit http://debian.mur.at wheezy-updates/main amd64 Packages/DiffIndex
Hit http://debian.mur.at wheezy-updates/main Translation-en/DiffIndex
Hit http://packages.omv-extras.org kralizec-backports Release.gpg
Ign http://packages.openmediavault.org kralizec/main Translation-en_US
Ign http://packages.openmediavault.org kralizec/main Translation-en
Ign http://dh2k.omv-extras.org virtualbox-wheezy-mirror/main Translation-en_US
Ign http://dh2k.omv-extras.org virtualbox-wheezy-mirror/main Translation-en
Hit http://packages.omv-extras.org kralizec Release.gpg
Hit http://ftp.debian.org wheezy-backports/main amd64 Packages/DiffIndex
Hit http://packages.omv-extras.org kralizec-testing Release.gpg
Hit http://ftp.debian.org wheezy-backports/contrib amd64 Packages/DiffIndex
Hit http://archive.zfsonlinux.org wheezy Release.gpg
Hit http://ftp.debian.org wheezy-backports/non-free amd64 Packages/DiffIndex
Hit http://packages.omv-extras.org kralizec-vb Release.gpg
Hit http://ftp.debian.org wheezy-backports/contrib Translation-en/DiffIndex
Hit http://ftp.debian.org wheezy-backports/main Translation-en/DiffIndex
Hit http://archive.zfsonlinux.org wheezy Release
Hit http://ftp.debian.org wheezy-backports/non-free Translation-en/DiffIndex
Hit http://packages.omv-extras.org kralizec-zfs Release.gpg
Hit http://packages.omv-extras.org kralizec-backports Release
Hit http://archive.zfsonlinux.org wheezy/main amd64 Packages
Hit http://packages.omv-extras.org kralizec Release
Hit http://packages.omv-extras.org kralizec-testing Release
Hit http://packages.omv-extras.org kralizec-vb Release
Hit http://packages.omv-extras.org kralizec-zfs Release
Hit http://packages.omv-extras.org kralizec-backports/main amd64 Packages
Hit http://packages.omv-extras.org kralizec/main amd64 Packages
Ign http://archive.zfsonlinux.org wheezy/main Translation-en_US
Hit http://security.debian.org wheezy/updates Release.gpg
Ign http://archive.zfsonlinux.org wheezy/main Translation-en
Hit http://security.debian.org wheezy/updates Release
Hit http://security.debian.org wheezy/updates/main Sources
Hit http://security.debian.org wheezy/updates/main amd64 Packages
Hit http://security.debian.org wheezy/updates/main Translation-en
Hit http://packages.omv-extras.org kralizec-testing/main amd64 Packages
Hit http://packages.omv-extras.org kralizec-vb/main amd64 Packages
Hit http://packages.omv-extras.org kralizec-zfs/main amd64 Packages
Ign http://packages.omv-extras.org kralizec-backports/main Translation-en_US
Ign http://packages.omv-extras.org kralizec-backports/main Translation-en
Ign http://packages.omv-extras.org kralizec/main Translation-en_US
Ign http://packages.omv-extras.org kralizec/main Translation-en
Ign http://packages.omv-extras.org kralizec-testing/main Translation-en_US
Ign http://packages.omv-extras.org kralizec-testing/main Translation-en
Ign http://packages.omv-extras.org kralizec-vb/main Translation-en_US
Ign http://packages.omv-extras.org kralizec-vb/main Translation-en
Ign http://packages.omv-extras.org kralizec-zfs/main Translation-en_US
Ign http://packages.omv-extras.org kralizec-zfs/main Translation-en
Fetched 274 kB in 10s (25.4 kB/s)
Creating index of upgradeable packages ...
Creating index of OpenMediaVault plugins ...
Reading package lists... Done# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
# -
Did you install the ZFS Plugin?
yes, but already some updates ago
cant do anything in the gui, accessing the plugins page:
Error
#7001:
exception 'OMVException' with message 'Failed to connect to socket: No
such file or directory' in /usr/share/php/openmediavault/rpc.inc:135
Stack trace:
#0 /usr/share/php/openmediavault/rpcproxy.inc(125):
OMVRpc::exec('Plugin', 'getList', Array, Array, 3)
#1 /var/www/openmediavault/rpc.php(32): OMVJsonRpcProxy->handle()
#2 {main} -
This is the GUI error msg:
Error
#7001:
exception 'OMVException' with message 'Failed to connect to socket: No
such file or directory' in /usr/share/php/openmediavault/rpc.inc:135
Stack trace:
#0 /usr/share/php/openmediavault/rpcproxy.inc(125):
OMVRpc::exec('OmvExtrasOrg', 'getSupportInfo', Array, Array, 3)
#1 /var/www/openmediavault/rpc.php(32): OMVJsonRpcProxy->handle()
#2 {main}---
or similar, rpcpr oxy seems to be the problem
-
After updating today (3 packets where new, just remember netatalk 1.4) the installer didnt finish with the usual done
Got later this error:
Failed to connect to socket: No such file or directory
and lots of errors like this:
Execution succeeded Service omv-engined
Execution failed Service omv-enginedis there an easy way how to solve this problem? More data/logs needed?
Thanks and ... merry xmas
-
like said above, on my installation the root partition was setup as ssd, the swap wasnt. But fortunately its a 1 minute job to change fstab and reboot
-
for ssd domething like this:
UUID=blahblah / ext4 noatime,nodiratime,discard,errors=remount-ro 0 1
UUID=blahblah none swap sw,discard 0 0
Discard is the option you need for trim support
-
Ja but it was the other way round what puzzled me. The Broadcom had much better performance then that what most people said. ... or the intel much worse performance
-
zpool get all poolname in linux displays pool features/properties
Cool, i did overlook this one
So its confirmed, out of luck for F...nas users:
NAME PROPERTY VALUE SOURCE
INTERNAL size 10.9T -
INTERNAL capacity 85% -
INTERNAL altroot /mnt local
INTERNAL health ONLINE -
INTERNAL guid 5948082030589541869 default
INTERNAL version - default
INTERNAL bootfs - default
INTERNAL delegation on default
INTERNAL autoreplace off default
INTERNAL cachefile /data/zfs/zpool.cache local
INTERNAL failmode continue local
INTERNAL listsnapshots off default
INTERNAL autoexpand on local
INTERNAL dedupditto 0 default
INTERNAL dedupratio 1.00x -
INTERNAL free 1.60T -
INTERNAL allocated 9.28T -
INTERNAL readonly off -
INTERNAL comment - default
INTERNAL expandsize 0 -
INTERNAL freeing 0 default
INTERNAL feature@async_destroy enabled local
INTERNAL feature@empty_bpobj active local
INTERNAL feature@lz4_compress active local
INTERNAL feature@multi_vdev_crash_dump enabled local
INTERNAL feature@spacemap_histogram active local
INTERNAL feature@enabled_txg active local
INTERNAL feature@hole_birth active local
INTERNAL feature@extensible_dataset enabled local
INTERNAL feature@bookmarks enabled local