DIY – VirtualBox – Docker – Home-Assistant v57


 

  

 

 

 

 

VirtualBox - Docker - Home-Assistant

 

 

the Open Source Tools Used

 

 

 

Update the ova to debian 9 Stretch

https://www.rootusers.com/how-to-upgrade-debian-8-jessie-to-debian-9-stretch/

Updated Home-Assistant to version 0.57.1

  • Install Virtualbox
  • Install debain
  • log in via ssh (putty on windows)
  • su -
  • apt-get update
  • apt-get upgrade
  • apt-get install sudo git
  • echo 'deb http://download.webmin.com/download/repository sarge contrib' >> /etc/apt/sources.list
  • wget http://www.webmin.com/jcameron-key.asc
  • apt-key add jcameron-key.asc
  • apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python
  • apt-get update
  • apt-get install apt-transport-https
  • apt-get install webmin
  • Install Docker (https://docs.docker.com/engine/installation/linux/docker-ce/debian/)
  • echo 'deb http://repo-cockpitproject.rhcloud.com/debian/ jessie main
  • ' >> /etc/apt/sources.list
  • apt-key adv --keyserver sks-keyservers.net --recv-keys 0D2A45C3F1BAA57C
  • apt-key finger F1BAA57C
  • apt-get update
  • apt-get install cockpit cockpit-docker
  • visudo (Add your user)
  • YOUR USER ALL=(ALL) NOPASSWD: ALL
  • save it
  • /etc/init.d/sudo restart
  • exit
  • sudo usermod -aG docker $USER
  • mkdir -p home-assistant/config
  • docker run -d --name="home-assistant" --restart always -v /home/$USER/home-assistant/config:/config -v /etc/localtime:/etc/localtime:ro --net=host homeassistant/home-assistant
     
  • http://VM-IP:8123 (Home-Assistant)
  • https://VM-IP:10000 (WebMin)
  • https://VM-IP:9090 (Cockpit)

Stuff used to get here.

  • https://virtualbox.org
  • https://www.debian.org
  • http://www.webmin.com/deb.html
  • https://docs.docker.com/engine/installation/linux/docker-ce/debian/
  • https://docs.docker.com/engine/installation/linux/linux-postinstall/
  • http://cockpit-project.org/running.html
  • https://home-assistant.io

Save 2hr and get the VirtualBox ova file here.

  • User: haadmin
  • Pass: haadmin
  • User: root
  • Pass: password
  • Network needs to be reset in Virtualbox / VMWare / Xen
  • Set to your local interface and set to bridge (required for HA device discovery)
  • https://VM-IP:10000 (Webmin)
  • https://VM-IP:9090 (CockPit)
  • http://VM-IP:8123 (Home-Assistant)

Share the madness