UPDATE 2020-05-15:
Before performing this installation method please bear in mind that there are some uncertanties about the long-lastingness of this method.
see here: https://www.home-assistant.io/blog/2020/05/09/deprecating-home-assistant-supervised-on-generic-linux/
Currently it is working however the support is rather limited, therefore id be very happy to hear about alternatives. --> if there are updates I will try to post them here as well.
HI ALL! since a week I have managed to install HASSIO on a QNAP (turbo) nas, Since I have found multiple guides on how to install home assistant in docker on a qnap nas but NO HASSIO installs yet I decided to give it a try, and it worked.
Currently I am still “working” on the guide, I have wrote down the steps with some single words but I am planning to re-do the installation and complete it with screenshots etc, If there are questions or additions please let me know.
The opening post will be a living document
Hardware:
I use a Qnap Nas model 453U, 8gb ram, though it should work wit most Qnap turbo nas’ses which support “virtualization station”.
You can find whether your NAS is compatible HERE QNAP List of nasses with support for virtualization station
The method consists out of 2 main steps:
1. Setup virtual machine in QTS, using virtualization station and Install HOST-OS
2. Install HASSIO
Extra Infos: (links below)
- passing USB Device through
- getting Aeotec z wave stick to work
- determine network port (i.e. ‘ETH0’)
1. Setup virtual machine in QTS, using virtualization station and Install HOST-OS
1.1 Download a host OS, I have chosen to use UBUNTU server 18.04 LTS
See here: [https://www.ubuntu.com/download/server]
Based on this decision I have written this guideline.
Store the image somewehere where you can access it from your nas(preferably on the nas itself in a shared folder)
1.2 Install Virtualization station 3 on your QNAP Machine, this can be found in the QTS AppCenter
( In the AppCenter click on "All Apps" and search for virtualization Station.)
1.3 Open virtualization station and create a new VM
Click: “Create VM”
Fill out the following popup according to your needs and preferences.
I run a 4 core, 8gb ram system with only HDD’s, since I decided to provide the VM first with 2 cores and 2gb of ram, I will check the load on the system every now and then and when i notice that more power will be necessary I will provide it with more resources.
Since I am migrating from a PI and (currently) not running very heavy addons i expect this to be sufficient. This can be adapted later.
For me this looks like this:
CPU cores: 2
Memory (RAM) 2gb
CD Image select your saved install file for the HOST-OS here
hdd Location: create image and selected a location which suited me.
Network:
If you are using multiple LAN-ports on your nas you can select the desired port here.
Click OK and start the VM.
You then see a small screen in the virtualization station, if you click on this a VNC connection starts and you can “setup” the Host-OS via your browser.
Follow the steps.
1.4 access Host-OS via ssh
Once the installation is done you should be able to access the newly setup VM via SSH.
To do this I use Putty (on windows, with mac or linux I think this functionality is built-in).
-
Determine the IP adress of your VM, I just checked my router, probably there are multiple different methods (ipconfig via vnc?)
-
connect via SSH
-
update and upgrade the host machine (is this needed with a fresh install?)
2. Install HASSIO
Since we have actually “just” installed a generic linux installation the installation method for installing HASSIO on a generic linux machine works,
to dot this run these commands via SSH in your VM: Source, thank you Frenck!
sudo -i
add-apt-repository universe
apt-get update
apt-get install -y apparmor-utils apt-transport-https avahi-daemon ca-certificates curl dbus jq network-manager socat software-properties-common
curl -sSL https://get.docker.com | sh
curl -sL "https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh" | bash -s
Once this is done you can access your home assistant via the web browser:
http://server_ip_address:8123
(SERVER IP IS THE IP OF YOUR VM!)
In the beginning there pops up a display which says “preparing, installation can take up to 20 min”
refresh regularly and after a few minutes HASSIO starts.
congratulations!, you have just installed HASSIO on your QNAP nas!
To do’s for this Guideline:
-Make a lot of screenshots and add them
-Add “tips and tricks”
-Use USB devices
-Select “correct” eth port in setup of i.e. samba addon (leave “” empty instead of ETH0, see here: SAMBA Share (2.0) not working with HASSIO 0.49.1 NUC eth0
-Use Aeotec zwave stick (https://forum.qnap.com/viewtopic.php?t=131048)
If you found this helpfull and / or have some comments or questiosn please feel free to ask or comment!