Installing Supervised on Pi5

Hello,
I don’t get the Raspberry Pi 5 option when I run
dpkg -i homeassistant-supervised.deb
Should I use the Pi4 option for my Pi5?
Grateful for answers.
Fredrik

The pi5 is not yet supported.

1 Like

Managed to install it supervised w/ rpi5 beta releases?

I have succesfully installed and ran HA Supervised on Pi 5. During installation choose Pi 4 and it works normally.

Do not forget to switch the kernel page size from 16kb (default on Pi 5) to 4 kb, because HA uses jemalloc that crashes with 16kb page size and therefore docker container with HA won’t run.

And enable apparmor by adding this at the end of /boot/cmdline.txt:
apparmor=1 security=apparmor

After this you can use one of the tutorials. First you need to install all dependencies, next - docker, the os-agent (I suggest downloading the newest .deb package for aarch64, now it is 1.6.0 I believe) and finally - the HA Supervised itself. During installation choose RPi 4 x64.

1 Like

Hi,
I’m desperate to do this as i want to install HA sup… Can you tell me how to change the kernel page size from 16kb to 4kb?

I have sent the link to the guide in my previous reply - “Pi5 16K PageSize Kernel Incompatible Software”.

Go to boot/config.txt and change the line “kernel=” to:
kernel=kernel8.img

Here I found a guide for installing:

I have not done point A and B (the unified_cgroup_hierarchy thing) from Step 3 (changing grub file) and everything worked out of the box. Do not forget to enable apparmor, however (just at the end of Step 3).

I think the Pi 5 GPIO mappings are different on the Pi 5 now, so GPIO support may not work correctly if choosing RPI4.

Edit /var/lib/dpkg/info/homeassistant-supervised.templates and add raspberrypi5-64. then run:
sudo systemctl stop hassio-supervisor.service
sudo docker stop homeassistant
sudo docker rm homeassistant
sudo dpkg-reconfigure homeassistant-supervised
sudo systemctl start hassio-supervisor.service
You should then have it running.

2 Likes

hey guys, thx a lot for the instructions.
so i did as [Block3r] said, so
kernel=kernel8.img
apparmor=1 security=apparmor
installed os-agent and HA supervised with RPI4.
had issues with the homeassistant docker, so followed the instructions from [Terry Sanders] in addition.
and voila :slight_smile:

Installed on rpi 5 os or Debian?
Is it stable?

I used Raspberry Pi OS and haven’t had any issues once I actually got it installed.
Observer reports:

Supervisor: Connected
Supported: Supported
Healthy: Healthy

I’ve had it running since December and Core (and some addons) have upgraded several times without any issue. Currently running version 2024.1.5

Supervised? Cause the topic says supervised.

Yep, Supervised. All addons and updates available via the UI.

how did you manage that :smiley:

I am getting OS-Agent bot modul is loaded and OS-Agent installed.

[supervisor.host.sound] Can’t update PulseAudio data: Failed to connect to pulseaudio server

[supervisor.dbus.rauc] Host has no rauc support. OTA updates have been disabled.

[supervisor.dbus.agent] No OS-Agent support on the host. Some Host functions have been disabled.

could you share any insights how to fix it? thank you

I followed this guide using a fresh install of raspbian.
I initially had some problems with memory allocation which I resolved by booting kernel8.img and manually edited the /var/lib/dpkg/info/homeassistant-supervised.templates file to add the pi5 to the options.

‘rauc’ is for updating embedded linux (HA-OS) but you are using raspbian, which you have to update yourself, so you can ignore the supervisor.dbus… messages.

I don’t know about the pulseaudio since I’m not using any audio and don’t get that message.

1 Like

Hey I made a tutorial about the installation process on my Github. It may help you.

I’ve managed to install HA Supervised on Ubuntu 23.10 @ RPi 5 simply by setting system variable BYPASS_OS_CHECK to true and then installing the homeassistant-supervised.deb. The preinstall check allows using this variable to bypass the OS Check. It will still complain that the system is not supported, but will continue in installation.

If you are not root, you need to sudo -s first, then set the variable:

export BYPASS_OS_CHECK=true

and then continue with step 4 of the HA-Supervised install guide:

wget -O homeassistant-supervised.deb https://github.com/home-assistant/supervised-installer/releases/latest/download/homeassistant-supervised.deb
apt install ./homeassistant-supervised.deb

After the installation has completed HA complained about NetworkManager not working. I had to follow the steps on the link HA provided (and set chmod 600 to all created config files) and rebooted the RPi. After reboot everything worked fine.

To folks landing on this thread now that HA is supported for Raspberry Pi 5, here are the install steps:

# Ensure up-to-date.
sudo apt update && sudo apt upgrade -y && sudo apt --fix-broken install && sudo apt autoremove -y

# Install dependencies.
sudo apt install apparmor cifs-utils curl dbus jq libglib2.0-bin lsb-release network-manager nfs-common systemd-journal-remote systemd-resolved udisks2 wget -y
sudo systemctl restart systemd-resolved

# Install Docker.
curl -fsSL get.docker.com -o install-docker.sh && sh install-docker.sh
# sh install-docker.sh --dry-run
# sudo docker run hello-world

# Install OS Agent.
wget https://github.com/home-assistant/os-agent/releases/download/1.6.0/os-agent_1.6.0_linux_aarch64.deb
sudo dpkg -i os-agent_1.6.0_linux_aarch64.deb
# Verify that the OS agent has been successfully installed:
# gdbus introspect --system --dest io.hass.os --object-path /io/hass/os

# Install Home Assistant
wget https://github.com/home-assistant/supervised-installer/releases/latest/download/homeassistant-supervised.deb
sudo dpkg -i ./homeassistant-supervised.deb
# sudo BYPASS_OS_CHECK=true dpkg -i ./homeassistant-supervised.deb
# sudo dpkg --configure -a
# sudo dpkg --purge homeassistant-supervised

# To fix "Unsupported system - AppArmor issues: System is unsupported because
# AppArmor is working incorrectly and add-ons are running in an unprotected and
# insecure way. https://www.home-assistant.io/more-info/unsupported/apparmor
cp /boot/firmware/cmdline.txt cmdline.txt.bak
cp /boot/firmware/config.txt config.txt.bak
sudo sed -i '${s/$/ apparmor=1 security=apparmor/}' /boot/firmware/cmdline.txt

# If something's going wrong, use journalctl -f to get your system logs. If you
# are not familiar with Linux and how you can fix issues, we recommend to use
# our Home Assistant OS.

printf "Navigate to http://%s:8123 after rebooting ('sudo reboot')\n" $(hostname -I | awk '{print $1}')

If your audio stops working (e.g., Device or resource busy) install the Alsa & PulseAudio Fix add-on.

3 Likes

hi,

it happens to me that in few days it just become unhealthy, and I have to restart whole pi.

is there any solution to that?

thank you