Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Netzwerk Einstellung funktioniert auf Openhabian nicht #180

Open
liviupr opened this issue Oct 25, 2018 · 0 comments
Open

Netzwerk Einstellung funktioniert auf Openhabian nicht #180

liviupr opened this issue Oct 25, 2018 · 0 comments

Comments

@liviupr
Copy link

liviupr commented Oct 25, 2018

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/modules'
    From https://github.com/leonsio/YAHM-Module
  • branch master -> FETCH_HEAD
    Already up-to-date.
    Entering 'share/tools/Network-Interfaces-Script'
    From https://github.com/leonsio/Network-Interfaces-Script
  • branch master -> FETCH_HEAD
    Already up-to-date.
    Entering 'share/tools/arm-board-detect'
    From https://github.com/leonsio/arm-board-detect
  • branch master -> FETCH_HEAD
    Already up-to-date.
    Entering 'share/tools/rpi-source'
    From https://github.com/notro/rpi-source
  • 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant