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
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
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