Error Installing on NAS QNAP

Hi, I would migrate an from RaspberryPI3 to my NAS QNAP TS231P2.
I have executed these activities:

  1. install Ubuntu 18.04 as docker container of NAS
docker pull ubuntu:latest
docker run -it --name hassio --privileged ubuntu:latest bash
apt-get update 
apt-get -y install sudo
sudo apt-get -y install systemd

Result : OK

  1. install Docker CE inside above Ubuntu container
useradd -m docker 
echo "docker:docker" | chpasswd 
adduser docker sudo
sudo apt-get update
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL | sudo apt-key add -
sudo add-apt-repository  "deb [arch=armhf]  $(lsb_release -cs)  stable"
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli
sudo service docker start
sudo systemctl enable docker

Result : OK

  1. install Hass.IO
sudo -s
apt-get upgrade
apt-get update
apt-get install -y bash jq curl avahi-daemon dbus network-manager apparmor-utils
apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -sL | bash -s -x -- -m arm -d /home/hassio/hassiocfg   

Result : System has not been booted with systemd as init system (PID 1). Can’t operate
after executing : systemctl start hassio-apparmor.service

I have spent 2 days for this, but I don’t know how to continue.
Any suggestion please ?

Thanks in advance

Did you give up on

I’ve got running on a Synology DiskStation NAS and it should be similar for qnap.

Have you tried LXC container?

I think we have the same problem. I’ve done pretty much the same thing as you and nothing seemed to run :frowning:

Just ran systemctl start hassio-apparmor.service and that seemed to run something and I have a process called hassio-supervis running, however I have no user interface or anything else. Going to :8123 just gets me a time out still.

It is really easy getting Home Assistant working using a container on QNAP (although it is quite out of date). Getting HASSio to work though seems to be a lot tougher than it looks! Feeling like just stikcing with domoticz because it does work.

1 Like

I’ve looked at this. The instructions don’t match my QNAPs setup. Can’t find a settings file and the config directory given by the file with more details just does not exist. Another false start :frowning:

edit: and smiling again as I found the config files having been confused by two LXCs in the file path so moving on to the next bit :slight_smile:

Well that looks as good as I am getting. I have the hassio-supervisor showing in ps -A.

That seems to do nothing. No UI is seen on :8123 and I can find nothing else that might make this work. I have to run the sysemctl command to get this much going, it does not start on boot up.

If I knew what SHOULD be running maybe I can take the next steps. I’m finding it hard to help myself here as the information differs wildly and different instructions seem to take me to different places. Others report success just with what I’m doing so can’t work out why I can’t.

If you read the script and the service files you can figure out what containers need to be running. Having a supervisor by itself doesn’t actually do anything. You need the home assistant docker image as well.

Is there a “run” command that should start this stuff up?

Read the script you ran to “install” hassio.

Look at the services file. Look at what the script does.

Verify the installation took place, and that you didn’t see any errors. If you had any errors, that’s important information to have.

The install script given by the QNAP website has been depricated. The new one is

Instead of
curl -sL “” | bash -s

curl -sL | bash -s

It is not simply on Qnap nas. After run this script the hassio_supervisor container go on start and restart continuously.

Good day to all.
I was able to successfully install on a qnap TS-235A.
I had the same issues but the upgraded qnap firmware to and it all worked.
One can do the same by the following steps:

  1. Install Ubuntu LXC with this tutorial - - I have picked ubuntu-xenial:latest
  2. If you intend to use z-wave - load the kernel module on qnap - - insmod /usr/local/modules/cdc-acm.ko
  3. Follow this instruction to install the rest of deps needed for - mainly the docker-ce -
    At this step it is important to make a bridge setting for the network (this will give a separate ip address to the ubuntu container) and attach z-wave hardware devices to ubuntu container
  4. Finally install the with this -

For me all worked fine but only after qnap firmware update - before I had the same problem with supervisor constantly restarting.