kuba2k2 / alpine-home-assistant

Home Assistant Supervised on Alpine Linux
https://kuba2k2.github.io/alpine-home-assistant/
20 stars 3 forks source link

APK Installation fails inside a Proxmox container #4

Open ScheintodX opened 4 months ago

ScheintodX commented 4 months ago

Host: NAME="Debian GNU/Linux" VERSION_ID="11" Container: NAME="Alpine Linux" ID=alpine VERSION_ID=3.18.6

apk add hassio-supervised failes with: [...] [info] Fix kernel dmesg restriction
lib/apk/exec/hassio-supervised-1.5.0-r2.pre-install: line 17: can't create /proc/sys/kernel/dmesg_restrict: Read-only file system ERROR: hassio-supervised-1.5.0-r2.pre-install: script exited with error 1 [...]

kuba2k2 commented 4 months ago

For containers you can just use the "Home Assistant Container" installation type, right?

I haven't used Proxmox, I don't know how similar it is to Docker. Maybe it has some configuration option to allow sysctl.

ScheintodX commented 4 months ago

no. Naming is a little missleading.

Proxmox distinguishes between container (CT) and virtual machine (VM). Container is based on lxc.

Homeassistant means VM (VirtualBox, KVM) when it says container.

What I want to do is install Homeassistant in an Alpine linux running in an Linux Container (LXC) managed by Proxmox. I have managed to run quite a few containers on that host including stranger stuff like openwrt. Homeassistant is pretty resilient.

kuba2k2 commented 4 months ago

I believe there's a way to install HA in Docker for instance, and I'm pretty sure it's called "container". The VM version of HA is called "HAOS" or "Home Assistant OS".

Either way, I'm not sure I can help here. You can probably just remove that line from the pre-install script, then rebuild the APKs as described in the README (last section).