leonsio / YAHM

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

Open liviupr opened 5 years ago

liviupr commented 5 years ago

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

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