Supervised Install on Proxmox

Having just switched from a 18.04 container with a virtual environment install to a qcow2 VM install I can tell you the addition of Hass.IO supervision is nice once you adjust to it but it came at a cost for me of 512mb of extra ram and 3% points increase in CPU usage. I have the resources to spare but docker inside a VM comes at a cost.

1 Like

Did you change your boot priority in proxmox for the VM?

Since the supervised installer was to be depreciated, this guide was made to help people find a new way to get HA running. In view of the fact that the plans for depreciation have been put on hold, this guide is now less useful.

However, it does work, and iā€™ve been using it for a past week or so now.

I think this guide remains incredibly useful. Proxmox offers the simplicity of HassOS with the ability to run other stuff on your machine. Some of us prefer to use it even if Home Assistant Supervised remains a supported path.

That doesnā€™t really affect my suggestion at all. I also got it working, but in a way that I think is slightly more efficient for the performance characteristics that I value, by using the command:
qemu-img convert -f vmdk -O raw hassos-3.13.vmdk hassos-3.13.img
instead of the qcow2.
Again, this would be for users who are more concerned about minimizing CPU/RAM usage than hard disk usage.

2 Likes

Well it does work with the vmdk file but itā€™s now named hassos_ova-3.13.vmdk and I did not find it to improve CPU / RAM usage compared to a qcow2 install. What difference did you see?

Youā€™re right about the filename, my bad, I was going from memory. I had just read about the hypothetical differences between the image types as I tried to wrap my head around them. Thank you for actually testing them head to head. In that case, no change seems necessary to the guide as written.

FWIW Whiskerz script also installs the qcow2 image and I just used the script to create another VM on my Proxmox. Worked perfectly in seconds.

2 Likes

I skimmed through the code of the script and I believe it actually downloads the vmdk image and converts it to qcow2. I have since looked at all the settings and recreated the steps manually (including the conversion of the vmdk file to qcow2) and it worked perfectly.
Why recreate manually what the script does you may ask yourself?
Because I wanted to understand how to build a a VM in proxmox. It was was a very informative endeavor. Iā€™m a lot more comfortable using proxmox than I was 2 days agoā€¦which isnā€™t saying that much because I knew absolutely nothing 2 days ago. :man_shrugging:

Anyway thanks for the guide @cyberwarfare. I used your command line to convert from vmdk to qcow2 and import into my VM. It was the final step I needed for my manual config.

2 Likes

Trying to read up on the benefits of a supervised install. Hereā€™s an excerpt from a recent blog post:

"The benefit of running the Supervisor is that you are able to keep Home Assistant up to date from within Home Assistant, and easily install add-ons that are pre-configured to be able to integrate with Home Assistant.

The Supervisor is an extremely complicated program that interacts with a wide range of applications and components in the host operating system. Examples are Docker containers, DNS, sound and USB hardware sticks that users want to use with Home Assistant. The Supervisor is controlled from Home Assistant which allows us to create a full home automation hub experience."

Guess i have to try it out, because so far with my perhaps limited requirements the proxmox lxc ubuntu 20.04 template have me covered. Using automations in text editor, use dehydrated script to manage tls cert .

Proxmox defaults to thin provisioning so you get that benefit as well.

First time on Proxmox and I also tested the Whiskerz script and it worked perfect but I had to change the network card from Virtl0 to E1000 to get network to work.

Iā€™ll check and see what mine is tomorrowā€¦ but I never changed it from whatever the default was. I do remember having issues with a MAC address thoughā€¦ it seemed to use the same address for every VM which didnā€™t work so goodā€¦ (I assume you didnā€™t use the L container but the VM image script?)

I used the script on the site https://github.com/whiskerz007/proxmox_hassos_install so I have not checked what image was loaded.

bash -c "$(wget -qLO - https://github.com/whiskerz007/proxmox_hassos_install/raw/master/install.sh)"

So my HassOS is
image

I installed from here:
Install HassOS in a VM using Whiskers one line script from GitHub - whiskerz007/proxmox_hassos_install
wget -qO - https://raw.githubusercontent.com/whiskerz007/proxmox_hassos_install/master/install.sh | bash -s local-lvm

i get error with the script, no gui after vm boot, also this guide :frowning:
anyone have that issue?

have what issue. you have posted no logs, screenshots, NOTHING to enable anyone to help you

First one: RELAX and donā€™t shout, iā€™m not your friend. If you want to help me, it is not good start.
So say that:
kisses and hugs
:slight_smile:

try to post some vm logs:

[  OK  ] Started Network Manager Script Dispatcher Service.
[    3.291868] IPv6: ADDRCONF(NETDEV_UP): enp0s18: link is not ready
[    3.305372] systemd-journald[1382]: Failed to read journal file /var/log/journal/7773e332dd284c1ba342b2c0692f55aa/user-1000.journal for rotation, trying to move it out of the way: Device or resource busy
[    3.325418] systemd-journald[1382]: Failed to read journal file /var/log/journal/7773e332dd284c1ba342b2c0692f55aa/user-1007.journal for rotation, trying to move it out of the way: Device or resource busy

so i think there is a ā€œconfictā€ on my nic, but how to solve it? thanks for help :slight_smile:

docker0: port 1(veth2a012e3) entered blocking state
[    6.026656] docker0: port 1(veth2a012e3) entered disabled state
[    6.029311] device veth2a012e3 entered promiscuous mode
[    6.031530] kauditd_printk_skb: 147 callbacks suppressed
[    6.031531] audit: type=1700 audit(1589964281.810:53): dev=veth2a012e3 prom=256 old_prom=0 auid=4294967295 uid=0 gid=0 ses=4294967295
[    6.038432] audit: type=1300 audit(1589964281.810:53): arch=c000003e syscall=44 success=yes exit=40 a0=c a1=c0004109c0 a2=28 a3=0 items=0 ppid=1 pid=2923 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="dockerd" exe="/usr/bin/dockerd" subj==unconfined key=(null)
[    6.038512] IPv6: ADDRCONF(NETDEV_UP): veth2a012e3: link is not ready
[    6.047245] docker0: port 1(veth2a012e3) entered blocking state
[    6.049792] docker0: port 1(veth2a012e3) entered forwarding state
[    6.052581] audit: type=1327 audit(1589964281.810:53): proctitle=2F7573722F62696E2F646F636B657264002D480066643A2F2F002D2D73746F726167652D6472697665723D6F7665726C617932002D2D6C6F672D6472697665723D6A6F75726E616C64002D2D646174612D726F6F74002F6D6E742F646174612F646F636B6572
[    6.059003] docker0: port 1(veth2a012e3) entered disabled state
[    6.085682] hassio: port 1(veth0516469) entered blocking state
[    6.087564] hassio: port 1(veth0516469) entered disabled state
[    6.089656] device veth0516469 entered promiscuous mode
[    6.091829] audit: type=1700 audit(1589964281.873:54): dev=veth0516469 prom=256 old_prom=0 auid=4294967295 uid=0 gid=0 ses=4294967295
[    6.093834] IPv6: ADDRCONF(NETDEV_UP): veth0516469: link is not ready
[    6.095135] audit: type=1300 audit(1589964281.873:54): arch=c000003e syscall=44 success=yes exit=40 a0=c a1=c000411770 a2=28 a3=0 items=0 ppid=1 pid=2923 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="dockerd" exe="/usr/bin/dockerd" subj==unconfined key=(null)
[    6.098990] hassio: port 1(veth0516469) entered blocking state
[    6.107392] hassio: port 1(veth0516469) entered forwarding state
[    6.109248] hassio: port 1(veth0516469) entered disabled state
[    6.114231] audit: type=1327 audit(1589964281.873:54): proctitle=2F7573722F62696E2F646F636B657264002D480066643A2F2F002D2D73746F726167652D6472697665723D6F7665726C617932002D2D6C6F672D6472697665723D6A6F75726E616C64002D2D646174612D726F6F74002F6D6E742F646174612F646F636B6572
[    6.328082] eth0: renamed from veth01df189
[    6.335643] IPv6: ADDRCONF(NETDEV_CHANGE): veth2a012e3: link becomes ready
[    6.337748] docker0: port 1(veth2a012e3) entered blocking state
[    6.340630] docker0: port 1(veth2a012e3) entered forwarding state
[    6.343266] IPv6: ADDRCONF(NETDEV_CHANGE): docker0: link becomes ready
[    6.392411] audit: type=1325 audit(1589964282.179:55): table=nat family=2 entries=0
[    6.394452] audit: type=1300 audit(1589964282.179:55): arch=c000003e syscall=55 success=yes exit=0 a0=4 a1=0 a2=40 a3=7ffdd85b288c items=0 ppid=3383 pid=3391 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="iptables" exe="/usr/sbin/xtables-legacy-multi" subj==unconfined key=(null)
[    6.402289] audit: type=1327 audit(1589964282.179:55): proctitle=2F7573722F7362696E2F69707461626C6573002D2D77616974002D74006E6174002D4C002D6E
[    6.406506] audit: type=1325 audit(1589964282.193:56): table=filter family=2 entries=0
[    6.429986] eth1: renamed from veth7feb78a
[    6.435572] IPv6: ADDRCONF(NETDEV_CHANGE): veth0516469: link becomes ready
[    6.437367] hassio: port 1(veth0516469) entered blocking state
[    6.439129] hassio: port 1(veth0516469) entered forwarding state
[    6.440744] IPv6: ADDRCONF(NETDEV_CHANGE): hassio: link becomes ready
[    6.659810] udevd[180]: starting version 3.2.9
[    6.668879] udevd[181]: starting eudev-3.2.9
[    8.304801] hassio: port 2(veth6473e2c) entered blocking state
[    8.307342] hassio: port 2(veth6473e2c) entered disabled state
[    8.309953] device veth6473e2c entered promiscuous mode
[    8.312215] IPv6: ADDRCONF(NETDEV_UP): veth6473e2c: link is not ready
[    8.401087] hassio: port 3(veth404ead6) entered blocking state
[    8.402638] hassio: port 3(veth404ead6) entered disabled state
[    8.404836] device veth404ead6 entered promiscuous mode
[    8.416179] IPv6: ADDRCONF(NETDEV_UP): veth404ead6: link is not ready
[    8.417810] hassio: port 3(veth404ead6) entered blocking state
[    8.419401] hassio: port 3(veth404ead6) entered forwarding state
[    8.459738] hassio: port 4(veth8b5a9f1) entered blocking state
[    8.461446] hassio: port 4(veth8b5a9f1) entered disabled state
[    8.465067] device veth8b5a9f1 entered promiscuous mode
[    8.478652] IPv6: ADDRCONF(NETDEV_UP): veth8b5a9f1: link is not ready
[    8.480490] hassio: port 4(veth8b5a9f1) entered blocking state
[    8.482112] hassio: port 4(veth8b5a9f1) entered forwarding state
[    8.855196] eth0: renamed from veth0ab8ceb
[    8.860726] hassio: port 3(veth404ead6) entered disabled state
[    8.862274] hassio: port 4(veth8b5a9f1) entered disabled state
[    8.863836] IPv6: ADDRCONF(NETDEV_CHANGE): veth6473e2c: link becomes ready
[    8.865609] hassio: port 2(veth6473e2c) entered blocking state
[    8.867151] hassio: port 2(veth6473e2c) entered forwarding state
[    9.162479] eth0: renamed from vethe2b7619
[    9.166603] IPv6: ADDRCONF(NETDEV_CHANGE): veth404ead6: link becomes ready
[    9.168298] hassio: port 3(veth404ead6) entered blocking state
[    9.170088] hassio: port 3(veth404ead6) entered forwarding state
[    9.185015] eth0: renamed from veth1ce13e7
[    9.189920] IPv6: ADDRCONF(NETDEV_CHANGE): veth8b5a9f1: link becomes ready
[    9.192257] hassio: port 4(veth8b5a9f1) entered blocking state
[    9.194731] hassio: port 4(veth8b5a9f1) entered forwarding state
[    9.525758] udevd[322]: starting version 3.2.9
[    9.539441] udevd[323]: starting eudev-3.2.9
[   10.052704] hassio: port 5(veth548d900) entered blocking state
[   10.054368] hassio: port 5(veth548d900) entered disabled state
[   10.064529] device veth548d900 entered promiscuous mode
[   10.068346] IPv6: ADDRCONF(NETDEV_UP): veth548d900: link is not ready
[   10.353192] eth0: renamed from veth2c4f24b
[   10.359583] IPv6: ADDRCONF(NETDEV_CHANGE): veth548d900: link becomes ready
[   10.361301] hassio: port 5(veth548d900) entered blocking state
[   10.362903] hassio: port 5(veth548d900) entered forwarding state
[   15.703631] udevd[181]: starting version 3.2.9
[   15.712932] udevd[182]: starting eudev-3.2.9
[  616.473827] hassio: port 6(vethb28de8a) entered blocking state
[  616.476849] hassio: port 6(vethb28de8a) entered disabled state
[  616.480584] device vethb28de8a entered promiscuous mode
[  616.482044] kauditd_printk_skb: 164 callbacks suppressed
[  616.482045] audit: type=1700 audit(1589964892.511:110): dev=vethb28de8a prom=256 old_prom=0 auid=4294967295 uid=0 gid=0 ses=4294967295
[  616.486967] audit: type=1300 audit(1589964892.511:110): arch=c000003e syscall=44 success=yes exit=40 a0=c a1=c0008bad20 a2=28 a3=0 items=0 ppid=1 pid=2923 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="dockerd" exe="/usr/bin/dockerd" subj==unconfined key=(null)
[  616.495259] IPv6: ADDRCONF(NETDEV_UP): vethb28de8a: link is not ready
[  616.499791] audit: type=1327 audit(1589964892.511:110): proctitle=2F7573722F62696E2F646F636B657264002D480066643A2F2F002D2D73746F726167652D6472697665723D6F7665726C617932002D2D6C6F672D6472697665723D6A6F75726E616C64002D2D646174612D726F6F74002F6D6E742F646174612F646F636B6572
[  616.724951] audit: type=1325 audit(1589964892.763:111): table=nat family=2 entries=0
[  616.727048] audit: type=1300 audit(1589964892.763:111): arch=c000003e syscall=55 success=yes exit=0 a0=4 a1=0 a2=40 a3=7ffc3170bdbc items=0 ppid=7128 pid=7135 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="iptables" exe="/usr/sbin/xtables-legacy-multi" subj==unconfined key=(null)
[  616.734178] audit: type=1327 audit(1589964892.763:111): proctitle=2F7573722F7362696E2F69707461626C6573002D2D77616974002D74006E6174002D4C002D6E
[  616.739627] audit: type=1325 audit(1589964892.777:112): table=filter family=2 entries=0
[  616.741724] audit: type=1300 audit(1589964892.777:112): arch=c000003e syscall=55 success=yes exit=0 a0=4 a1=0 a2=40 a3=7ffdcf545a1c items=0 ppid=7128 pid=7137 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="iptables" exe="/usr/sbin/xtables-legacy-multi" subj==unconfined key=(null)
[  616.751262] audit: type=1327 audit(1589964892.777:112): proctitle=2F7573722F7362696E2F69707461626C6573002D2D77616974002D4C002D6E
[  616.754962] audit: type=1325 audit(1589964892.792:113): table=nat family=2 entries=5
[  616.782442] eth0: renamed from veth6d18d99
[  616.788111] IPv6: ADDRCONF(NETDEV_CHANGE): vethb28de8a: link becomes ready
[  616.789966] hassio: port 6(vethb28de8a) entered blocking state
[  616.791363] hassio: port 6(vethb28de8a) entered forwarding state```

20-05-20 09:21:52 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1
20-05-20 09:21:52 INFO (MainThread) [supervisor.host.services] Update service information
20-05-20 09:21:52 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1
20-05-20 09:21:52 INFO (MainThread) [supervisor.host.network] Update local network DNS information
20-05-20 09:21:52 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager
20-05-20 09:21:54 INFO (MainThread) [supervisor.homeassistant] Home Assistant docker now installed
20-05-20 09:21:54 INFO (MainThread) [supervisor.homeassistant] Start Home Assistant
20-05-20 09:21:54 INFO (MainThread) [supervisor.homeassistant] Update pulse/client.config: /data/tmp/homeassistant_pulse
20-05-20 09:21:54 INFO (SyncWorker_3) [supervisor.docker.homeassistant] Start homeassistant homeassistant/qemux86-64-homeassistant with version 0.109.6
20-05-20 09:31:55 WARNING (MainThread) [supervisor.homeassistant] Donā€™t wait anymore of Home Assistant startup!
20-05-20 09:31:55 ERROR (MainThread) [supervisor.homeassistant] Canā€™t start Home Assistant!
20-05-20 09:31:55 INFO (SyncWorker_6) [supervisor.docker.interface] Cleanup images: [ā€˜homeassistant/qemux86-64-homeassistant:landingpageā€™]

I am not having luck with the above install or the script. When I use:


`root@pve:~# qm importdisk 100 /root/hassos_ova-4.6.qcow2 local --format qcow2storage`

I get:


`local does not support vm images`

When I try to run the whiskerz script, I get:

Getting URL for latest Home Assistant disk image...
[ERROR] 0@96 Github has returned an error. A rate limit may have been applied to your connection.

local is not normally configured for storing VMs. Replace local in the command line with your VM storage location.

You need to enable ā€œlocalā€ to store VM images. That would address your issues.

So I got the qcow image installed and working just wondering what the login is for the VM that way I can update the VM when needed