EsXi Host und CCU

Fragen, Support etc.

Moderator: Co-Administratoren

Antworten
Adrian-01
Beiträge: 26
Registriert: 01.09.2016, 21:28

EsXi Host und CCU

Beitrag von Adrian-01 » 31.03.2018, 18:42

Hallo in die Runde,

Ich überlege mir einen Server selbst zu bauen für diverse Zwecke, nun kam für mich natürlich noch die Frage auf ob ich die ccu Software auch auf diesem Server unter Linux ubuntu oder ähnlichem laufen lassen kann.
Habe leider nur minimale Linux Kentnisse gibt es da eine Möglichkeit die ccu unter esxi auf ubuntu laufen zu lassen ?

Vielen dank für eure Hilfe.


Gruß,
Adrian

chka
Beiträge: 2483
Registriert: 13.02.2012, 20:23
System: Alternative CCU (auf Basis OCCU)
Hat sich bedankt: 302 Mal
Danksagung erhalten: 116 Mal

Re: EsXi Host und CCU

Beitrag von chka » 31.03.2018, 20:17

ich habe es leider nicht hinbekommen mit yahm und ubuntu-16.04.3,

leider komme ich sobald es um das anlegen der bridge geht nicht weiter.
RaspberryMatic - CuL 868mHz- CuxDemon - PioTek Tracker - Velux mit KLF200 und Somfy Anbindung- io.Broker auf Proxmox NUC6I3SYH i3-6100U RAM: 40Gig Crucial 8GB DDR4 CT2K8G4SFS824A + 32GB DDR4CT32G4SFD8266

Adrian-01
Beiträge: 26
Registriert: 01.09.2016, 21:28

Re: EsXi Host und CCU

Beitrag von Adrian-01 » 01.04.2018, 08:21

Hey,

Das Problem Hatte ich leider sogar gestern schon auf dem Tinker Board....

chka
Beiträge: 2483
Registriert: 13.02.2012, 20:23
System: Alternative CCU (auf Basis OCCU)
Hat sich bedankt: 302 Mal
Danksagung erhalten: 116 Mal

Re: EsXi Host und CCU

Beitrag von chka » 01.04.2018, 10:56

versuche es jetzt noch ml mit debian-9.4.0-amd64-netinst

Ausgangslage:

Code: Alles auswählen

ens192: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.178.47  netmask 255.255.255.0  broadcast 192.168.178.255
        inet6 fe80::20c:29ff:fee0:9d4e  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:e0:9d:4e  txqueuelen 1000  (Ethernet)
        RX packets 164  bytes 15073 (14.7 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 100  bytes 13843 (13.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Lokale Schleife)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
danach mit:

Code: Alles auswählen

sudo wget -nv -O- https://raw.githubusercontent.com/leonsio/YAHM/master/yahm-init | sudo -E  bash -
yahm installiert:

Code: Alles auswählen

2018-04-01 09:59:29 URL:https://raw.githubusercontent.com/leonsio/YAHM/master/yahm-init [6485/6485] -> "-" [1]
X86 CPU found, need to install QEMU
Installing dependencies..
install qemu-user-static
binfmt-support is installed
	..done
Updating sources (can take some time)..
	..done
Installing dependencies..
bash-completion is installed
wget is installed
install dos2unix
python is installed
install git
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
nun die den container installieren:

Code: Alles auswählen

sudo yahm-lxc install

Code: Alles auswählen

Creating new lxc container name: yahm, version 2.31.25
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
Found x86 CPU architecture, need to install QEMU
Container version 2.31.25 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
Wichtig jetzt

Code: Alles auswählen

yahm-ctl -n yahm start
nun die bridge installieren, ich nenne meine br0 und das interface ist ens192:

Code: Alles auswählen

yahm-network   -b br0   -i ens192   -f   -v   -d   -w  create_bridge

Code: Alles auswählen

Trying to create new bridge br0 with physical interface ens192
ATTENTION: Network configuration will be changed, you may no longer login to the system!!!
No bridge with choosen name found, continue...
Interface ens192 is physical and valid, continue...
Found dhcp interface configuration on ens192
Preparing network interfaces file
Creating new interface br0
Changing ens192 interface mode to manual
Changing br0 bridge to dhcp
Please review new network configuration
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug ens192
iface ens192 inet manual


auto br0
iface br0 inet dhcp
    bridge_ports ens192
Testing new network configuration. If your system is not responding, please restart and try again
Creating new bridge br0
Moving interface ens192 to the new bridge br0
Release IP from old interface ens192
Attention: You might get different IP address from your dhcp server
Search for new IP Address
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.1522569801
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 ;)
IP address bridge: br0 :  192.168.178.47
Clean up
bei Eingabe von ifconfig:

Code: Alles auswählen

ifconfig
br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.178.47  netmask 255.255.255.0  broadcast 192.168.178.255
        inet6 fe80::20c:29ff:fee0:9d4e  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:e0:9d:4e  txqueuelen 1000  (Ethernet)
        RX packets 192  bytes 20654 (20.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 40  bytes 5580 (5.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ens192: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether 00:0c:29:e0:9d:4e  txqueuelen 1000  (Ethernet)
        RX packets 73224  bytes 107827416 (102.8 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 37934  bytes 2582751 (2.4 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Lokale Schleife)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
br0 läuft und kann sich mittels ssh angesprochen werden, nun die bridge mit dem container verbinden:

Code: Alles auswählen

yahm-network   -f   -v   -b   br0   -n   yahm   attach_bridge

Code: Alles auswählen

Enable br0 in yahm
STATUS: Bridge br0 was added to yahm container
To apply the changes, please restart LXC container with 'lxc-stop -n yahm && lxc-start -n yahm -d'
nun Neustarten der bridge:

Code: Alles auswählen

lxc-stop -n yahm && lxc-start -n yahm -d

Code: Alles auswählen

yahm-network show_bridge
Available Bridges
bridge name	bridge id		STP enabled	interfaces
br0		8000.000c29e09d4e	no		ens192
							veth9IFYBX

Code: Alles auswählen

sudo yahm-ctl info
YAHM Version: 1.9
CCU2 Version: 2.31.25

LXC container information
Name:           yahm
State:          RUNNING
PID:            9506
IP:             192.168.178.205
CPU use:        14.06 seconds
BlkIO use:      1024.00 KiB
Memory use:     45.00 MiB
KMem use:       7.48 MiB
Link:           veth96F4B7
 TX bytes:      4.66 KiB
 RX bytes:      25.74 KiB
 Total bytes:   30.41 KiB
Per DHCP habe ich jetzt eine Ip
Aktuell hängt er bei: Die Homematic CCU2 ist noch nicht bereit Bitte warten. Sie werden automatisch auf die Startseite weitergeleitet.

Ich habe das ganze jetzt 5 mal gemacht und erst beim 5 habe ich es hinbekommen. Mal sehen ob die Virtuelle CCU jetzt startet
RaspberryMatic - CuL 868mHz- CuxDemon - PioTek Tracker - Velux mit KLF200 und Somfy Anbindung- io.Broker auf Proxmox NUC6I3SYH i3-6100U RAM: 40Gig Crucial 8GB DDR4 CT2K8G4SFS824A + 32GB DDR4CT32G4SFD8266

Adrian-01
Beiträge: 26
Registriert: 01.09.2016, 21:28

Re: EsXi Host und CCU

Beitrag von Adrian-01 » 01.04.2018, 12:47

Hey das ist doch mal ein guter Fortschritt, vielen Dank für das posten der ganzen Schritte, ich hatte auch das Problem das es sich aufhing im blauen Bildschirm ein Neustart des gesamten Servers war dann die Lösung des Problems.
Habe esxi leider noch nicht am laufen bekomme den Server erst am Dienstag hab momentan Yahm auf einem tinkerboard unter ubuntu.

Gruß,

chka
Beiträge: 2483
Registriert: 13.02.2012, 20:23
System: Alternative CCU (auf Basis OCCU)
Hat sich bedankt: 302 Mal
Danksagung erhalten: 116 Mal

Re: EsXi Host und CCU

Beitrag von chka » 02.04.2018, 16:50

habe die yahm ccu jetzt mal ohne weiteres einspielen von Backups laufen lassen nach wenigen stunden ist sie im Netzwerk nicht mehr erreichbar.
auch das starten der yahm ccu dauert geschätzt fast 20min :shock:, als ersatz für mich so unbrauchbar.

Code: Alles auswählen

2018-04-02 16:49:35: (mod_proxy.c.919) proxy-server disabled: 127.0.0.1 8183 10                                                                              
2018-04-02 16:49:35: (mod_proxy.c.1327) no proxy-handler found for: /tclrega.exe                                                                             
2018-04-02 16:49:35: (mod_proxy.c.1327) no proxy-handler found for: /                                                                                        
2018-04-02 16:49:35: (mod_proxy.c.1327) no proxy-handler found for: /tclrega.exe                                                                             
2018-04-02 16:49:40: (mod_proxy.c.1372) proxy - re-enabled: 127.0.0.1 8183   
Mag sein das es unter dem pi hervorragend läuft...

auch das Thema wie "funke" ich (hm und hmip), ist auch nicht wirklich gelöst. Habe irgendwo gelesen das jemand mittels uart des pi Funkmodul betreiben will.
RaspberryMatic - CuL 868mHz- CuxDemon - PioTek Tracker - Velux mit KLF200 und Somfy Anbindung- io.Broker auf Proxmox NUC6I3SYH i3-6100U RAM: 40Gig Crucial 8GB DDR4 CT2K8G4SFS824A + 32GB DDR4CT32G4SFD8266

quickmic
Beiträge: 518
Registriert: 20.01.2011, 14:39
Hat sich bedankt: 5 Mal
Danksagung erhalten: 4 Mal

Re: EsXi Host und CCU

Beitrag von quickmic » 06.04.2018, 08:52

Du kannst meine Anleitung versuchen, aber ein paar Linux Kenntnisse sind erforderlich.
Vor allem beim erstmaligem Einspielen des Backups.
Und zum Funken sollte man die Funkgateways verwenden.

viewtopic.php?f=56&t=39240

chka
Beiträge: 2483
Registriert: 13.02.2012, 20:23
System: Alternative CCU (auf Basis OCCU)
Hat sich bedankt: 302 Mal
Danksagung erhalten: 116 Mal

Re: EsXi Host und CCU

Beitrag von chka » 06.04.2018, 14:23

super schaue ich mir mal an
quickmic hat geschrieben: Und zum Funken sollte man die Funkgateways verwenden.
leider gibt es aber keins für hm-ip
RaspberryMatic - CuL 868mHz- CuxDemon - PioTek Tracker - Velux mit KLF200 und Somfy Anbindung- io.Broker auf Proxmox NUC6I3SYH i3-6100U RAM: 40Gig Crucial 8GB DDR4 CT2K8G4SFS824A + 32GB DDR4CT32G4SFD8266

quickmic
Beiträge: 518
Registriert: 20.01.2011, 14:39
Hat sich bedankt: 5 Mal
Danksagung erhalten: 4 Mal

Re: EsXi Host und CCU

Beitrag von quickmic » 06.04.2018, 18:13

Ich glaube der USB-Funk-Stick-Dinges-Bausatz? (fuer HMIP) sollte laufen wenn du den sauber durchreichen kannst an die VM. Im anderen Thread steht was darueber.
Ich hab nur den alten Stick auf BidCos. Der laeuft aber.

Antworten

Zurück zu „Allgemeines zur OCCU“