Hi
Anyone successfully done this without a virtual env for Python. I have an Ubuntu server and want to run Home Assistant in a LXC container.
I am able to install Home Assistant in a LXC Container, but not without a Python Virtual environment.
It seems to be failing in installing when being homeassistant user within the container. Installing user root is working fine, but not recommended.
The steps I am doing:
# lxc launch ubuntu:18.04 homeassistant
# apt-get update && sudo apt-get upgrade -y && sudo apt-get install python3-pip -y
# adduser --system homeassistant && sudo addgroup homeassistant && sudo adduser homeassistant dialout
# chgrp homeassistant /home/homeassistant
# passwd homeassistant
# sudo adduser homeassistant sudo
# usermod -d /home/homeassistant/ homeassistant
# sudo -u homeassistant bash – when changing user I get a message “bash: /root/.bashrc: Permission denied”
$ pip3 install homeassistant – this one fails as well
Any suggestions? I think when running in a lxc it seems unecessary to run another layer of virtualization through python venv.
Cheers,
JM