Installing Home Assistant OS using Proxmox 8

First let me say thank-you for this guide and the scripts - they are fantastic! Reading this thread is what convinced me to upgrade my system from an RPi4.

I installed Proxmox (v7.3-6) and Home Assistant without a hitch. Then I decided to add File Browser using the Proxmox Helper Scripts. I am not sure that I installed File Browser correctly. The Helper instructions say to run the installation command in the LXC console. Since I didnโ€™t know what the LXC console was, I ran the command in the pve Shell. File Browser installed and runs fine, but I see no reference to File Browser in the Proxmox UI.

Did I do something wrong? Why is File Browser not showing in the Proxmox UI?

Thanks in advance.

File browser doesnโ€™t add any extra functionality to the Proxmox GUI.

1 Like

Being new to Proxmox, Iโ€™ve attempted to read up about the general usage of it, but Iโ€™m still a bit confused as the the difference between the amount of RAM that HA shows that it is using, out of itโ€™s allocated amount when creating the VM, and what Proxmox shows that the HA VM is using? For example, inside HA, I am seeing what I would expect having migrated from my old Intel NUC - I allocated 4GB RAM to the HA VM, as thatโ€™s what I had in my old NUC, and my new host machine has 8GB RAM total.

image

Generally HA sits at around 1GB of RAM while running, which is what I used to see.

In Proxmox, it seems 3.65GB out of the allocated 4GB is being used by the HA VM

Now this is a gradual increase. If i restart the HA VM, it makes no difference, however if I reboot my Proxmox node, then the RAM being used by my HA VM shows in Proxmox as around half that previously being used, around 1.86GB

it stays at this level for some time but gradually creeps up and plateaus at around 3.65GB after a few days.

I have a feeling this is something to do with ZFS from what I have read, but I thought that would be Proxmox itself using up spare available memory on the host, unless it is needed by the guest. The amount of RAM being used, as shown in proxmox, always differs to that shown inside HA, but I couldnโ€™t quite get my head around why, so wondered if anyone could help explain please?

I believe, also as a Proxmox nube, I saw similar and head scratched. If you google โ€˜proxmox and ARC memoryโ€™ you will find that ZFS does slowly suck up 2/3rds of unused RAM. However, this is โ€˜normalโ€™ behavior. I do understand it gives it back as apps, VMโ€™s and LXCโ€™s want memory. ZFS is a very complex animal. HTOP and other tools give better view of ZFS memory use on Proxmox node. Good hunting.

Thanks David, itโ€™s starting to make a bit more sense now.

Hi @tteck, is there a way to stop proxmox from reserving RAM for HAOS VM?
image

HA uses under 2 GB image

Can i change this?

I have a simple installation of Proxmox that utilizes the EXT4 file system, and Iโ€™m not experiencing that behavior. I currently have 11- containers running in addition to 1- VM that is running a fresh installation of Home Assistant OS.


Screenshot 2023-03-03 8.06.11 AM

Of the 971 MiB used, 597 MiB is cache, so Home Assistant shows 0.4 GB / 4 GB being used
Screenshot 2023-03-03 8.12.07 AM

If youโ€™re using ZFS as your file system, hereโ€™s an informative read
https://pve.proxmox.com/wiki/ZFS_on_Linux#sysadmin_zfs_limit_memory_usage

You would have to run HAOS as an LCX container which thin provisions resources. VMs will always reserve the resources assigned regardless of the load.

Thanks for the info, thatโ€™s helpful. Iโ€™ve only setup Proxmox using defaults and following the info here, so should be similar to what you have setup as your VM. I didnโ€™t select ZFS, I chose LVM (which I take it is how you are using EXT4 file system?), so I donโ€™t believe ZFS is the cause of the memory usage increase that I am seeing. This is my setup:

and after 24 hours since my last screenshot when I restarted my host, I am back up to 3.19GB RAM usage showing in Proxmox for my HA VM, but still inside HA I am seeing around 1GB in use, like I would expect

Running the command free -m in the Home Assistant CLI shows what?

Screenshot 2023-03-03 11.40.39 AM

@tteck @SteveA any downside to run home assistant as an LCX container than a VM? I want to use HA supervised and have an USB zigbee stick which needs to put from host to container/VM.
is this still possible as LCX or not recommended?

To run Home Assistant in a Linux Container (LXC), the only available installation methods are the Container or Core methods.
I did not mention the Home Assistant Supervised installation method because it can will lead to an unsupported and unhealthy environment.

This is what shows in the HA CLI when I run that:

image

Everything looks correct, I donโ€™t understand why the RAM usage shows so high. Hereโ€™s my RAM with and without HAOS running.

1.2 GB RAM difference.

It appears that I may have been mistaken and responded to the wrong person. My apologies for any confusion. To clarify, @Scoff, based on the information you provided, it seems that you have a total of 3922 MiB of memory, with 950 MiB currently in use, 2357 MiB for cache, and 2956 MiB available.

Edit:
If you have free RAM, itโ€™s possible that Linux will use it for caching. This can cause it to appear as though Linux is using a lot of RAM, even if your system isnโ€™t running many applications. However, this is normal behavior, and the RAM used for caching will be freed up as needed by running applications.

OK thanks @tteck , so itโ€™s the amount of RAM being cached which makes it โ€˜appearโ€™ that my HA VM is using more RAM than it actually is. Being new to Proxmox, itโ€™s just a bit concerning seeing the red Memory usage bar in the summary thatโ€™s all. I expect if you leave your HA VM running for a couple of days, you will end up with a similar amount of RAM being cached as I have. At least I know itโ€™s all behaving normally now :slight_smile:

Sorry for HA I run as a VM as my Proxmox system has 16GB or RAM. I would imagine USB passthrough would be the biggest challenge for support but I believe there is documentation online. If you can bring down the VM and start a container and give it a try. if it does not work a simple click and delete is all you have to do.

Just used your guide to switch from a vm on my ISP Box, it was a perfect plug and play. Iโ€™d maybe add something about USB devices (add them USB devices in hardware tab of the new vm in proxmox, and then reboot the vm), as iโ€™m pretty sure thereโ€™s few instances of HAOS without USB sticks.

Hi.

Iโ€™m using version 5 of your the script and am receiving this error:

https://github.com/tteck/Proxmox/issues/1117