Yet Another Homematic Management - Skripte zur Einrichtung der Homematic CCU Oberfläche in einem LXC Container unter Debian Jessie auf ARM CPU (z.B.: Raspberry Pi & Co)
Creative Commons Zero v1.0 Universal
114
stars
21
forks
source link
Netzwerk Einstellung funktioniert auf Openhabian nicht #180
Ich versuche gerade Yahm auf einen frischen openhabian zu installieren. Leider ist der raspberry pi3 nach dem reboot nicht mehr erreichbar. Hier die Installationlogs:
[09:11:38] root@openHABianPi:/etc# wget -nv -O- https://raw.githubusercontent.com/leonsio/YAHM/master/yahm-init | sudo -E bash -
2018-10-25 10:19:15 URL:https://raw.githubusercontent.com/leonsio/YAHM/master/yahm-init [6485/6485] -> "-" [1]
Found ARM based distribution
Updating sources (can take some time)..
..done
Installing dependencies..
bash-completion is installed
wget is installed
install dos2unix
python is installed
git is installed
install lxc
install liblzo2-dev
bridge-utils is installed
install python-lzo
patch is installed
gzip is installed
openssl is installed
..done
Clean up YAHM directory (removing old versions)..
...done
Downloading actual version from git repository..
..done
Including YAHM into PATH..
..done
Installing bash command completion..
done
Please see 'yahm-lxc' for creating new container, 'yahm-network' for network configuration and 'yahm-modules' for additional modules
[10:25:35] root@openHABianPi:~# sudo yahm-lxc install
ERROR: We dont have any patches for this version, please call 'yahm-ctl update' and try again
[10:25:50] root@openHABianPi:~# yahm-ctl update
Updating YAHM installation, for updatate CCU2 please use 'yahm-lxc update'
Fetching submodule share/firmware
Fetching submodule share/modules
Fetching submodule share/modules/share/piVCCU
Fetching submodule share/tools/Network-Interfaces-Script
Fetching submodule share/tools/arm-board-detect
Fetching submodule share/tools/rpi-source
Already up-to-date.
Updating all YAHM modules
Entering 'share/firmware'
From https://github.com/leonsio/YAHM-Firmware
branch master -> FETCH_HEAD
Already up-to-date.
Entering 'share/firmware'
Entering 'share/modules'
Entering 'share/tools/Network-Interfaces-Script'
Entering 'share/tools/arm-board-detect'
Entering 'share/tools/rpi-source'
Updating CCU2-FW archive
YAHM version 1.9 found
[10:28:11] root@openHABianPi:~# sudo yahm-lxc install
Creating new lxc container name: yahm, version 2.35.16
Downloading CCU Firmware
Extracting firmware
Extract ubi image
Writing to: /var/lib/lxc/yahm/root
Cleanup CCU2 source
Applying patch
Applying scripts
Creating SD card
Clean Up
Creating lxc config file
Container version 2.35.16 is created, please use 'yahm-ctl -n yahm start' to start and 'yahm-ctl -n yahm join' for console access
For network configuration see yahm-network script
[10:33:47] root@openHABianPi:~# sudo yahm-network -b yahmbr0 -i yahmbr0 -f -v -d create_bridge
Trying to create new bridge yahmbr0 with physical interface yahmbr0
ATTENTION: No changes will be made. Use -d to test or -w flag to write changes
No bridge with choosen name found, continue...
ERROR: Interface yahmbr0 does not exists
ATTENTION: Found static IP , trying to create a bridge with a static IP
Preparing network interfaces file
Creating new interface yahmbr0
Removing IP from static interface yahmbr0
Configure static IP to the new bridge yahmbr0
Please review new network configuration
interfaces(5) file used by ifup(8) and ifdown(8)
Please note that this file is written to be used with dhcpcd
For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
iface yahmbr0 inet static
bridge_ports yahmbr0
Testing new network configuration. If your system is not responding, please restart and try again
Creating new bridge yahmbr0
Moving interface yahmbr0 to the new bridge yahmbr0
device yahmbr0 is a bridge device itself; can't enslave a bridge device to a bridge device.
Deleting ip from interface yahmbr0
Setup ip on new bridge yahmbr0
Error: inet prefix is expected rather than "/".
Your system is not changed, if thesse changes appearing correctly please run this script with -w flag
Clean up
[10:36:38] root@openHABianPi:~# sudo yahm-network -b yahmbr0 -i yahmbr0 -f -v -d -w create_bridge
Trying to create new bridge yahmbr0 with physical interface yahmbr0
ATTENTION: Network configuration will be changed, you may no longer login to the system!!!
No bridge with choosen name found, continue...
You are using advanced network configuration with VLANs, be careful
ATTENTION: Found static IP , trying to create a bridge with a static IP
Preparing network interfaces file
Creating new interface yahmbr0
Removing IP from static interface yahmbr0
Configure static IP to the new bridge yahmbr0
Please review new network configuration
interfaces(5) file used by ifup(8) and ifdown(8)
Please note that this file is written to be used with dhcpcd
For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
iface yahmbr0 inet static
bridge_ports yahmbr0
Testing new network configuration. If your system is not responding, please restart and try again
Creating new bridge yahmbr0
device yahmbr0 already exists; can't create bridge with the same name
Moving interface yahmbr0 to the new bridge yahmbr0
device yahmbr0 is a bridge device itself; can't enslave a bridge device to a bridge device.
Deleting ip from interface yahmbr0
Setup ip on new bridge yahmbr0
Error: inet prefix is expected rather than "/".
WARNING: Writing network changes. To cancel this operation type CTRL+C you have 5 seconds...
... too late ;)
Backuping /etc/network/interfaces to /etc/network/interfaces.1540456781
Writing changes to network configuration
WARNING: Your system is configured now, restarting network to apply the changes. You may get new IP address from DHCP
. To cancel this operation type CTRL+C you have 5 seconds...
... too late ;)
Clean up
[10:39:47] root@openHABianPi:~# sudo yahm-network -f -v -b yahmbr0 -n yahm attach_bridge
Enable yahmbr0 in yahm
STATUS: Bridge yahmbr0 was added to yahm container
To apply the changes, please restart LXC container with 'lxc-stop -n yahm && lxc-start -n yahm -d'
[10:48:06] root@openHABianPi:~# lxc-stop -n yahm && lxc-start -n yahm -d
yahm is not running
Ich versuche gerade Yahm auf einen frischen openhabian zu installieren. Leider ist der raspberry pi3 nach dem reboot nicht mehr erreichbar. Hier die Installationlogs:
[09:11:38] root@openHABianPi:/etc# wget -nv -O- https://raw.githubusercontent.com/leonsio/YAHM/master/yahm-init | sudo -E bash - 2018-10-25 10:19:15 URL:https://raw.githubusercontent.com/leonsio/YAHM/master/yahm-init [6485/6485] -> "-" [1] Found ARM based distribution Updating sources (can take some time).. ..done Installing dependencies.. bash-completion is installed wget is installed install dos2unix python is installed git is installed install lxc install liblzo2-dev bridge-utils is installed install python-lzo patch is installed gzip is installed openssl is installed ..done Clean up YAHM directory (removing old versions).. ...done Downloading actual version from git repository.. ..done Including YAHM into PATH.. ..done Installing bash command completion.. done Please see 'yahm-lxc' for creating new container, 'yahm-network' for network configuration and 'yahm-modules' for additional modules [10:25:35] root@openHABianPi:~# sudo yahm-lxc install ERROR: We dont have any patches for this version, please call 'yahm-ctl update' and try again [10:25:50] root@openHABianPi:~# yahm-ctl update Updating YAHM installation, for updatate CCU2 please use 'yahm-lxc update' Fetching submodule share/firmware Fetching submodule share/modules Fetching submodule share/modules/share/piVCCU Fetching submodule share/tools/Network-Interfaces-Script Fetching submodule share/tools/arm-board-detect Fetching submodule share/tools/rpi-source Already up-to-date. Updating all YAHM modules Entering 'share/firmware' From https://github.com/leonsio/YAHM-Firmware
interfaces(5) file used by ifup(8) and ifdown(8)
Please note that this file is written to be used with dhcpcd
For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
iface yahmbr0 inet static bridge_ports yahmbr0 Testing new network configuration. If your system is not responding, please restart and try again Creating new bridge yahmbr0 Moving interface yahmbr0 to the new bridge yahmbr0 device yahmbr0 is a bridge device itself; can't enslave a bridge device to a bridge device. Deleting ip from interface yahmbr0 Setup ip on new bridge yahmbr0 Error: inet prefix is expected rather than "/". Your system is not changed, if thesse changes appearing correctly please run this script with -w flag Clean up [10:36:38] root@openHABianPi:~# sudo yahm-network -b yahmbr0 -i yahmbr0 -f -v -d -w create_bridge Trying to create new bridge yahmbr0 with physical interface yahmbr0 ATTENTION: Network configuration will be changed, you may no longer login to the system!!! No bridge with choosen name found, continue... You are using advanced network configuration with VLANs, be careful ATTENTION: Found static IP , trying to create a bridge with a static IP Preparing network interfaces file Creating new interface yahmbr0 Removing IP from static interface yahmbr0 Configure static IP to the new bridge yahmbr0 Please review new network configuration
interfaces(5) file used by ifup(8) and ifdown(8)
Please note that this file is written to be used with dhcpcd
For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
iface yahmbr0 inet static bridge_ports yahmbr0 Testing new network configuration. If your system is not responding, please restart and try again Creating new bridge yahmbr0 device yahmbr0 already exists; can't create bridge with the same name Moving interface yahmbr0 to the new bridge yahmbr0 device yahmbr0 is a bridge device itself; can't enslave a bridge device to a bridge device. Deleting ip from interface yahmbr0 Setup ip on new bridge yahmbr0 Error: inet prefix is expected rather than "/". WARNING: Writing network changes. To cancel this operation type CTRL+C you have 5 seconds... ... too late ;) Backuping /etc/network/interfaces to /etc/network/interfaces.1540456781 Writing changes to network configuration WARNING: Your system is configured now, restarting network to apply the changes. You may get new IP address from DHCP . To cancel this operation type CTRL+C you have 5 seconds... ... too late ;) Clean up [10:39:47] root@openHABianPi:~# sudo yahm-network -f -v -b yahmbr0 -n yahm attach_bridge Enable yahmbr0 in yahm STATUS: Bridge yahmbr0 was added to yahm container To apply the changes, please restart LXC container with 'lxc-stop -n yahm && lxc-start -n yahm -d' [10:48:06] root@openHABianPi:~# lxc-stop -n yahm && lxc-start -n yahm -d yahm is not running