sudo apt install -y virtualbox virtualbox-ext-pack
sudo usermod -a -G vboxusers $USER
cd Downloads
wget https://github.com/home-assistant/operating-
system/releases/download/8.5/haos_ova-8.5.vdi.zip
unzip haos_ova-8.5.vdi.zip
mkdir "/home/danaukes/VirtualBox VMs"
mkdir "/home/danaukes/VirtualBox VMs/home-assistant"
mv /home/danaukes/Downloads/haos_ova-8.5.vdi "/home/danaukes/VirtualBox VMs/home-assistant/"
vboxmanage createvm --name home-assistant --basefolder "/home/danaukes/VirtualBox VMs/"
vboxmanage registervm '/home/danaukes/VirtualBox VMs/home-assistant/home-assistant.vbox'
vboxmanage modifyvm home-assistant --memory 2000
vboxmanage modifyvm home-assistant --firmware efi`
vboxmanage modifyvm home-assistant --ostype Ubuntu_64
vboxmanage modifyvm home-assistant --nic1 bridged
vboxmanage modifyvm home-assistant --bridgeadapter1 eno1
vboxmanage storagectl home-assistant --name "SATA" --add sata --controller IntelAhci
VBoxManage storageattach home-assistant --storagectl "SATA" --port 0 --device 0 --nonrotational on --discard on --type hdd --medium haos_ova-8.5.vdi
vboxmanage startvm home-assistant --type headless
ssh -L 8123:192.168.202:8123 -C -N controller
server info:
https://hacs.xyz/docs/setup/download/
vboxmanage unregistervm --delete home-assistant
version: '3'
services:
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
- ./config:/config
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
privileged: true
network_mode: host