How to Setup Home assistant on Ubuntu (supervised) from scratch as virtual machine (KVM)

Find out how to install Home assistant (supervised) from scratch on UBUNTU as virtual machine using the KVM Hypervisor.

Really want to show your appreciation? You can always “Buy me a beer”…
https://www.buymeacoffee.com/homesight

Commands:
ifconfig

iptables -I FORWARD -o virbr0 -d 192.168.122.242 -j ACCEPT
– virbr0 = Virtual interface name (Gateway)
– 192.168.122.242 = Virtual Machine IP Address

iptables -t nat -I PREROUTING -p tcp –dport 80 -j DNAT –to 192.168.122.242:8123
– 80 = incoming port (80 is the standard web port)
– 192.168.122.242:8123 = Home Assistant Virtual Machine Address + :8123
– NOTE: You’ll need this command for any additional ports you need forwarded eg (1883 for MQTT)

*** IF YOU WANT TO MAKE THE IPTABLES RULES PERMANENT, RUN THE FOLLOWING ***
iptables-save

Music: https://www.bensound.com
Video: Free Stock Video Footage by Videezy!

Source: https://www.youtube.com/watch?v=5h-OQqlgjy0

Leave a Reply

Your email address will not be published. Required fields are marked *