Installing packages as root?

Hi,

I’ve just installed home assistant as VM in Proxmox using the (KVM proxmox)

The first thing I wanted to do was to install wireguard and setup this machien as a client so I can access it over the internet and bypass CGNAT from my ISP.

Tried add terminal with ssh add-on and installed wireguard on it using

apk add -U wireguard-tools

but I noticed that wireguard was gone after rebooting home assistant. I’ve been reading a bit and found out the add-ons are docker containers (i’m pretty new to docker so please forgive my ignorance) and not in the host. I understand that home assistant is also running in a docker container but what I’m trying to do is ssh into the host machine itself and not any of the docker containers.

I also tried via proxmox and launching the console. It gives me a cli as ha (that’s what it shows). I execute login and become root user but apk is not available. I also tried apt-get and no luck.

How can I do this?

Wireguard will not circumvent your CGNAT.
It is a service that runs on your local HA machine and it will be behind the CGNAT.
In order to circumvent the CGNAT you need to have a server somewhere on the internet to act as a interconnection point for your internal and external connections.
It could be a Cloudflare tunnel, but there are other solutions too.

Yes sorry. I forgot to mention that I do have a wireguard setup as a server somewhere on the cloud where some of my devices (mobile, other servers etc) connects to.

okay, HAOS is running with an overlay file system, so I do not think you can install extra modules without them being gone after a restart.

1 Like

I don’t know anything about wireguard, but searched around and came across the following that may be of interest:

2 Likes

Just to affirm this. I use Wireguard as a client with that addon above for my home HA and two other HAs. It works flawlessly.

1 Like

Thanks. I’ve actually seen this before but tried to hold off on using it since I was trying to find a way to login as root and install packages. This add-on does solve my concern on wireguard but for other packages that I may want to install, not so much. But it did give me an idea that instead of installing packages as root, maybe create an add-on instead.