I plan moving to NUC and my research conclusion is to run HA in ESXI/Proxmox cause linux way will make this linux a point of failure if I’ll install something wrong on linux OS
Running in ESXI/Proxmox allows VM’s in addition to Dockers and will isolate each thing and allow easy and fast snapshot/restore
Another plus is Proxmox can be run from USB so the SSD will be storage for all VM’s
Tip for Proxmox (and possibly ESXi) - when you create the VM, it doesnt automatically add an virtual sound card, which resulted in my HassIO logs being spammed with “no audio device enabled”
You can add one in easily in the System tab (i think) - I only discovered it last night after a week of wondering why I was getting such log spam
@AdmiralRaccoon, This has been covered in a number of other similar threads recently. I will post the same info I have in other threads, plus some extra steps and info, hopefully it will help you.
This, in my experience, is the fastest and simplest way to deploy Hass.io on a NUC (or other PC, RPi, etc) running Ubuntu Desktop or Server as the OS in this case (or using Raspbian on an RPi3). I have used this method myself on a NUC, an RPi3 and recently an old Dell Optiplex 990. The method is repeatable and simply, it just works.
1.) Get ubuntu form Here. Use the torrent link - either 16.04 LTS, or 18.04 LTS. Server or desktop won’t really matter. I have recently changed to using Server 18.04.03 LTS myself.
2.) Make a bootable Ubuntu USB using Rufus. Available Here
3.) Install Ubuntu to the NUC using the bootable USB you have just made, once the install and setup is complete, update the OS via a terminal window with;
sudo apt-get update && sudo apt-get upgrade -y
4.) If you have a current HA install on another machine, backup all your yaml files, lovelace config, etc to your PC, USB or HDD. A handy way to do that is using WinSCP, available Here. Connect to your current install and copy/paste all your config to a PC.
5.) Follow this guide , specifically from the line " To prepare your machine for the Hass.io installation, run the following commands:"
Copy each line of the below commands and paste them into a terminal window, and execute them one at a time.
I followed this myself just this week to do a fresh install on a Dell Optiplex SFF 990, and the entire process took me 19mins. I timed it just to see. This included making the bootable USB, Ubuntu install, updates, installing and having HA up and running. Very easy.
The time it takes will change depending on the speed of the CPU of the NUC/PC/RPi you use, but this should give you a good indication of just how fast and easy it is.
Now I´m struggling with some basic Linux Problems to get started:
Am I right that I don´t need the Samba Addon for Home Assistant anymore, but instead the Samba server for Ubuntu, to access and edit the Configuartion.yaml?
I have installed Samba, and made this share:
[config]
path = /usr/share/hassio/homeassistant/
public = yes
writable = yes
comment = hassio config dir
printable = no
guest ok = yes
And ran this command:
sudo chmod 777 /usr/share/hassio/homeassistant/
I´m able to read and create files, but I´m unable to edit, as I´m not allowed to save the files.
Another vote for Ubuntu server with docker compose.
There is a project called dock starter that is pretty cool if you want to run Plex radarr etc. It has lots of useful scripts auto backup auto upgrade etc.
Edit the Samba config file sudo nano /etc/samba/smb.conf
Press and hold control+K to remove all the text
Copy the below and paste in;
[global]
workgroup = WORKGROUP
server string = Samba Server %v
netbios name = Ubuntu
security = user
map to guest = bad user
name resolve order = bcast host
dns proxy = no
bind interfaces only = yes
[Public]
path = /
writable = yes
guest ok = yes
guest only = yes
read only = no
create mode = 0777
directory mode = 0777
force user = nobody
create mask = 0777
directory mask = 0777
force user = root
force create mode = 0777
force directory mode = 0777
hosts allow =
Ctrl+X to save
Create a username and password
sudo smbpasswd -a YOUR_USERNAME
Restart the samba service sudo service smbd restart
I started with Ubuntu around 8.04 release. And I changed hardware twice but still use same OS ( one recovery due to unsuccessful BTRFS install). It’s rock solid and very well documented on Internet. Mix of Ubuntu and Docker is perfect. New installs do not affect your main OS. In case of troubles you simple delete containers/images and start from scratch. Backups you can keep on server (NUC) or download to PC. Portrainer is really a good addition, it makes thing simpler in case of troubles.
I wish everyone a goodfmorning and a nice start of the week!
Thanks to everyone, the migration worked fine and I can also edit my config files from windows now, and even my z-wave stick works without altering the config.
However, some questions came in mind recently:
1.) This NUC5CPYH has a celeron CPU. Right now I have installed Hassio and Plex, and the CPU sensor within HA shows me about 19-25% CPU usage. Is that too high? My Raspberry
2.) How do you backup your Linux installations? Just relying on the Hassio Snapshot feature, or is there something available to backuop the whole disk. (Acronis? Rsync?)
the N3050 is a dual core CPU with a low clock, that sort of usage is fine.
You can either take a snapshot from within Hass.io, or, just keep a backup of all your yaml and lovelace files (my recommendation), and reinstall Hass.io easily at any time should you need.
Just keep a .txt document with all your configs for Plex etc and you can easily do a full install of the OS, Hass.io and any other docker containers.
Well, for the last 3 days everything workjed fine. Today my HA freezes (not the Ubuntu instance), i just couldn´t access the Web GUI anymore (Rotating circle, but no really connection error)
Anyway, I restarted my whole NUC twice, as I didn´t know how to just restart the Hassio service/container. Is there a command for that?
I’m a bit late to the party on this one. I had the same dilemma when moving from RPi3, I ended up installing Proxmox and hassio on my NUC. Surprised Proxmox hasn’t been mentioned much. Do people not use Proxmox now or is there better alternative.
I’ve been using Proxmox since around 2009-2010. But for HA I use a NUC running Linux and docker. I don’t need a hypervisor on my NUC. I have a server for that.
I know this may be a bit off topic, but I havn´t found a satisfying solution yet (if there is any):
Currently, the NUC runs with Hassio, Plex and MySQL with instances for Home Assistant and Kodi.
Of course I do backup the Home Assistant config every day by snapshot, but for the rest of the system, I have no clue on how doing this right now.
I tried Timeshift for doing snapshots. Sounds good, but it doesn´t support docker (“Running Timeshift on such systems will have unpredictable results”).
Comparing it with the windows world: I would like to have something like Acronis, making an image from the entire disk, thus being able to restore the whole OS back to a new disk and continue.
Is there anything you can recommend? Clonezilla maybe?
With docker and compose, the only thing you have to worry about is your config and data directories. I use restic to back those up to my NAS using a script and cron. I don’t need a snapshot of the entire system because my entire setup could be rebuilt in the time it takes to restore a disk image.
Duplicati, Restic, Borg, Duplicacy are all great options for file level backups. I don’t mess with system images because everything I do runs in Docker. On my desktop I use backintime and Restic
My NUC is running Proxmox and I installed docker on it, so I can run hassio side-by-side my vm’s, Runs flawless. For data backup, I have a NAS as well. I nfs mounted a NAS folder on the NUC and I’m using that for data storagefor hassio (and other docker containers).
The NAS is in a RAID 5 config, with a cloud backup.