Home Assistant OS VM not starting

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Schmitty
Posts: 3
Joined: 10. May 2023, 09:04
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Home Assistant

Home Assistant OS VM not starting

Post by Schmitty »

Hi,

I have created a VM for Home Assistant OS on Ubuntu Server 22.04 LTS and the VM will not start. I have been troubleshooting this for a few months and am unable to resolve it.

Error:

Code: Select all

Waiting for VM "homeassistant" to power on...
VBoxManage: error: The virtual machine 'homeassistant' has terminated unexpectedly during startup with exit code 1 (0x1)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine
Log: {url deleted by mod}

I am also having trouble setting the network adapter to my actual adapter

Code: Select all

  *-network                 
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@xxxx:xx:00.0
       logical name: enp6s0
       version: 15
       serial: xx:xx:xx:xx:xx:xx
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=5.15.0-86-generic duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 ip=xx.xxx.xx.xx latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
I used the following commands to create the VM

Code: Select all

VBoxManage createvm --name homeassistant --register
VBoxManage modifyvm homeassistant --memory 6144 --vram 16
VBoxManage modifyvm homeassistant --cpus 2
wget https://github.com/home-assistant/operating-system/releases/download/10.5/haos_ova-10.5.vdi.zip
sudo apt-get -y install unzip
unzip haos_ova-10.5.vdi.zip
rm haos_ova-10.5.vdi.zip
VBoxManage modifyhd "haos_ova-10.5.vdi" --resize 102400
mv haos_ova-10.5.vdi VirtualBox\ VMs/homeassistant/
VBoxManage storagectl homeassistant --name "SATA Controller" --add sata --controller IntelAHCI
VBoxManage storageattach homeassistant --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium ~/VirtualBox\ VMs/homeassistant/haos_ova-10.5.vdi
VBoxManage modifyvm homeassistant --nic1 bridged --nictype1 82540EM --bridgeadapter1 enp6s0
VBoxManage modifyvm homeassistant --firmware efi
VBoxManage modifyvm homeassistant --audiocontroller hda
VBoxManage modifyhd "haos_ova-10.5.vdi" --resize 102400
mv haos_ova-10.5.vdi VirtualBox\ VMs/homeassistant/
VBoxManage storagectl homeassistant --name "SATA Controller" --add sata --controller IntelAHCI
VBoxManage storageattach homeassistant --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium ~/VirtualBox\ VMs/homeassistant/haos_ova-10.5.vdi
VBoxManage modifyvm homeassistant --nic1 bridged --nictype1 82540EM --bridgeadapter1 enp6s0
VBoxManage modifyvm homeassistant --firmware efi
VBoxManage modifyvm homeassistant --audiocontroller hda
VBoxManage startvm homeassistant --type headless
Last edited by mpack on 18. Oct 2023, 10:51, edited 1 time in total.
Reason: Delete link
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Home Assistant OS VM not starting

Post by mpack »

Home Assistant is not a supported Guest OS, as AFAIK it isn't based on any supported distro, it's a custom build. You should ask on the HAOS forums for advice on getting it working as a VM.

I can tell you that you are not the first to try, and at least some of the others have been successful. However the others were using official HAOS downloads from the HAOS site.

Post a VM log and we can see if you've made any gross errors. Make sure the VM is fully shut down, then right click it in the manager UI. Select "Show Log" and save "VBox.log" (no other file) to a zip file. Attach the zip here. Note that linking to a file sharing site is not something we do around here.
Schmitty
Posts: 3
Joined: 10. May 2023, 09:04
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Home Assistant

Re: Home Assistant OS VM not starting

Post by Schmitty »

Log
Attachments
VBoxSVC.log.zip
(2.05 KiB) Downloaded 28 times
Schmitty
-------------------------------
Ubuntu Server 22.04 LTS
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Home Assistant OS VM not starting

Post by mpack »

That is not the log I asked for. I think I gave quite simple and explicit instructions.
Schmitty
Posts: 3
Joined: 10. May 2023, 09:04
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Home Assistant

Re: Home Assistant OS VM not starting

Post by Schmitty »

I am using Ubuntu Server on a headless machine, I have no GUI.
Schmitty
-------------------------------
Ubuntu Server 22.04 LTS
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Home Assistant OS VM not starting

Post by mpack »

In that case the VBox.log file can be found in the "Logs" subfolder of the VM folder.

The fact that you are running the host OS without a GUI may be relevant, it depends on how you've configured the VM (e.g. configuring 3D acceleration if the host has no graphics aint going to work).
Peregrint
Posts: 1
Joined: 3. Nov 2023, 02:32
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Home Assistant OS, Debian trixie/sid, Proxmox Test Environment

Re: Home Assistant OS VM not starting

Post by Peregrint »

Hi,
does the Problem still exist?

The VDI Image is the FULL HomeAssistantOperatingSystem based on the AlpineLinuxOS for IoT as a ManagedOS.
It is completely supported including ManagedRestore :D
Any other Installation Method like Docker for Example is not fully Supported.

Type must be: Linux
Version has to be: Linux 2.6/3.x/4.x/5.x (64-bit)
Set it as KVM-Paravirtualization!
Dont forget to Boot this VDI Image in VirtualBox as EFI without TPM and SecureBoot.
And you have to set Audio to "Intel HD Audio" or deactivate Audio. WiFi is also not supported.
shot2.png
shot2.png (100.39 KiB) Viewed 3625 times


Make sure to use the right VirtualBox Version for the Host OS!
Best way for me is the VirtualBox Repo instead of the *.deb Package to run Home Assistant in my Debian sid Host.
shot1.png
shot1.png (103.81 KiB) Viewed 3625 times


As you see HAOS 11.1 is running with HAOS Core 2023.11.0 in Virtualbox 7.0.12_Debian r159484 on my Debian trixie/sid Host with Kernel 6.5.0.3 :mrgreen:
Last edited by Peregrint on 3. Nov 2023, 05:01, edited 5 times in total.
Post Reply