Hello, I am using openhab and I wanted to give home assistant a try. But could not even finish with the vm appliance so far.
I have a more complex network infrastructure at home with different vlans.
On these vlans there is no dhcp except the client/guest vlan. But I want this vm in my server network range.
I downloaded the vmdk to import into my esxi environment and after powering on I was a bit shocked that I dont have access to the bash cli of this linux vm. I am directly landing on the ha cli and now I am stuck.
I couldnt find the command with the built-in help to exit the ha cli to set the ip manually. This would be the most elegant way to set the network config like I need it in my environment instead of another and new layer of notation on the ha-cli.
Therefore I have two questions.
- How to exit this ha-cli?
- How to set ip address, dns, gateway, maybe also a secondary ip or vlan settings on hacli?
Thanks in advance
Would be a pity if my home assistant experience would be over before it started.
Fixed it by myself. I created the vm again in my client vlan. In that vlan there is a dhcp server.
Changed ip, switched vm to correct vlan and now i am online.
100% this…how can such an amazing platform be lacking such a basic configuration?
Multiple vlans does not qualify as “basic configuration”.
That being said
All of those can be done from the ha cli using ha network update
. Can even be done from the ui by going to network settings
There are also some vlan options, you can do ha network vlan -h
to see them. I don’t know if they’re what you’re looking for, I’ve never really used them myself.
In general though when you have advanced networking requirements like these the container install method is recommended over HAOS or Supervised. That way you have full control over the underlying operating system to configure it as you need to.
To be honest, I missed where the OP mentioned multiple VLANs – I just wanted to statically configure the IP on the eth0 interface and you helped me. I looked all over and could not find documentation referencing “ha network update”. Just a note, it’s quite frustrating how many times I’ve seen the answer to be “go to the UI” which is impossible without the system having an IP – or even using nmcli when I cannot ssh and only have virtual console. That being said, I’m very greatful for you helping me find the correct command, so thank you!