VirtualBox Network Interface for vdi imagine of Home Assistant OS

Due to the FANTASTIC post on installing Home Assistant OS using the provided vdi image found here:

I was able to get Home Assistant OS installed on a VM & I was even able to login to the terminal :slight_smile:

However I was NOT able to access the web GUI because there VM doesn’t seem to see the NIC :frowning:

My end goal is to use a vbox intnet, but even testing with a bridged adapter (after testing every virtual adapter) does not seem to work!! Any advice would be much appreciated! Thanks in advance.

Have you looked for VM’s IP address in you router?
Do you have DHCP configured?

1 Like

Do you have DHCP configured?

Yup, my router is issuing DHCP (this is working for other VMs).

Have you looked for VM’s IP address in you router?

I assigned a static IP, and the router does not list it as being active.
Is there a DHCP client I need to manage on the Home Assistant OS VM? I assume this is enabled by default as this is a supposed to be a “just works” type thing?

Try to reboot both the router and VM.
It could have previous IP assigned.

I’ll give it a shot. However it’s unlikely to be that since I’m using a static IP outside the dynamic range.

Alright, everything rebooted. Still no IP :frowning:

I have no idea.
Try to wait for 10-20 minutes. It takes some time to boot up for the first time.

How do you know VM’s MAC address?

Can you show your VM info by
$vboxmanage showvminfo yourvmname

Try to wait for 10-20 minutes. It takes some time to boot up for the first time.

It seems to take about a a minute for me, but I have rebooted a few times, so that could be it? I’m also assuming that when I see the terminal login (I have vrde enabled) that it is done booting, at least enough to get an IP from my dhcp server.

How do you know VM’s MAC address?
from the VBoxManage showvminfo below, specifically the NIC 1: MAC: 08002755385F line.

Name:            HomeAssistant
Groups:          /
Guest OS:        Other Linux (64-bit)
UUID:            f321e21c-abb6-4057-b0ed-c2da3e00eb1c
Config file:     /media/Server/VMs/R710/HomeAssistant/HomeAssistant.vbox
Snapshot folder: /media/Server/VMs/R710/HomeAssistant/Snapshots
Log folder:      /media/Server/VMs/R710/HomeAssistant/Logs
Hardware UUID:   f321e21c-abb6-4057-b0ed-c2da3e00eb1c
Memory size:     2048MB
Page Fusion:     off
VRAM size:       8MB
CPU exec cap:    100%
HPET:            off
Chipset:         piix3
Firmware:        EFI
Number of CPUs:  2
PAE:             on
Long Mode:       on
Triple Fault Reset: off
APIC:            on
X2APIC:          on
CPUID Portability Level: 0
CPUID overrides: None
Boot menu mode:  message and menu
Boot Device (1): Floppy
Boot Device (2): DVD
Boot Device (3): HardDisk
Boot Device (4): Not Assigned
ACPI:            on
IOAPIC:          on
BIOS APIC mode:  APIC
Time offset:     0ms
RTC:             local time
Hardw. virt.ext: on
Nested Paging:   on
Large Pages:     off
VT-x VPID:       on
VT-x unr. exec.: on
Paravirt. Provider: Default
Effective Paravirt. Provider: KVM
State:           running (since 2021-03-16T12:07:55.145000000)
Graphics Controller:         VBoxVGA
Monitor count:   1
3D Acceleration: off
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address:
Teleporter Password:
Tracing Enabled: off
Allow Tracing to Access VM: off
Tracing Configuration:
Autostart Enabled: off
Autostart Delay: 0
Default Frontend:
Storage Controller Name (0):            SATA Controller
Storage Controller Type (0):            IntelAhci
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0):  30
Storage Controller Port Count (0):      30
Storage Controller Bootable (0):        on
SATA Controller (0, 0): /media/Server/VMs/R710/HomeAssistant/hassos_ova-5.12.vdi (UUID: d10b34cb-bdb7-4d8d-ba3d-caea5ec98e5c)
NIC 1:           MAC: 08002755385F, Attachment: Bridged Interface 'eno1', Cable connected: on, Trace: off (file: none), Type: 82543GC, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 2:           disabled
NIC 3:           disabled
NIC 4:           disabled
NIC 5:           disabled
NIC 6:           disabled
NIC 7:           disabled
NIC 8:           disabled
Pointing Device: PS/2 Mouse
Keyboard Device: PS/2 Keyboard
UART 1:          disabled
UART 2:          disabled
UART 3:          disabled
UART 4:          disabled
LPT 1:           disabled
LPT 2:           disabled
Audio:           enabled (Driver: ALSA, Controller: AC97, Codec: STAC9700)
Audio playback:  disabled
Audio capture:   disabled
Clipboard Mode:  disabled
Drag and drop Mode: disabled
Session name:    headless
Video mode:      1024x768x32 at 0,0 enabled
VRDE:            enabled (Address 0.0.0.0, Ports 3397, MultiConn: off, ReuseSingleConn: off, Authentication type: null)
VRDE port:       3397
Video redirection: disabled
VRDE property: TCP/Ports  = "3397"
VRDE property: TCP/Address = <not set>
USB:             disabled
EHCI:            disabled
XHCI:            disabled

USB Device Filters:

<none>

Available remote USB devices:

<none>

Currently Attached USB Devices:

<none>

Bandwidth groups:  <none>

Shared folders:  <none>

VRDE Connection:    active
Clients so far:     1
Start time:         1970/01/01 00:00:00 UTC
Sent:               0 Bytes
Average speed:      0 B/s
Sent total:         0 Bytes
Received:           0 Bytes
Speed:              0 B/s
Received total:     0 Bytes
User name:
Domain:
Client name:
Client IP:
Client version:     0
Encryption:         RDP4

Capturing:          not active
Capture audio:      not active
Capture screens:    0
Capture file:       /media/Server/VMs/R710/HomeAssistant/HomeAssistant.webm
Capture dimensions: 1024x768
Capture rate:       512 kbps
Capture FPS:        25
Capture options:

Guest:

Configured memory balloon size:      0 MB
OS type:                             Linux_64
Additions run level:                 0

Guest Facilities:

No active facilities.

I can not see any significant difference with my VM info.
The only thing is VDRE section. Could this feature disable DHCP IP?
Try to make VM without VDRE.
Here is my VM config for compare:

Name:            hass
Groups:          /
Guest OS:        Other Linux (64-bit)
UUID:            26a12936-3007-49ec-b189-09dd9fb7d91c
Config file:     /home/arnik/VirtualBox VMs/hass/hass.vbox
Snapshot folder: /home/arnik/VirtualBox VMs/hass/Snapshots
Log folder:      /home/arnik/VirtualBox VMs/hass/Logs
Hardware UUID:   26a12936-3007-49ec-b189-09dd9fb7d91c
Memory size:     2048MB
Page Fusion:     off
VRAM size:       8MB
CPU exec cap:    100%
HPET:            off
Chipset:         piix3
Firmware:        EFI
Number of CPUs:  2
PAE:             on
Long Mode:       on
Triple Fault Reset: off
APIC:            on
X2APIC:          on
CPUID Portability Level: 0
CPUID overrides: None
Boot menu mode:  message and menu
Boot Device (1): Floppy
Boot Device (2): DVD
Boot Device (3): HardDisk
Boot Device (4): Not Assigned
ACPI:            on
IOAPIC:          on
BIOS APIC mode:  APIC
Time offset:     0ms
RTC:             local time
Hardw. virt.ext: on
Nested Paging:   on
Large Pages:     off
VT-x VPID:       on
VT-x unr. exec.: on
Paravirt. Provider: Default
Effective Paravirt. Provider: KVM
State:           powered off (since 2021-02-09T14:25:17.000000000)
Graphics Controller:         VBoxVGA
Monitor count:   1
3D Acceleration: off
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address:
Teleporter Password:
Tracing Enabled: off
Allow Tracing to Access VM: off
Tracing Configuration:
Autostart Enabled: off
Autostart Delay: 0
Default Frontend:
Storage Controller Name (0):            SATA Controller
Storage Controller Type (0):            IntelAhci
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0):  30
Storage Controller Port Count (0):      30
Storage Controller Bootable (0):        on
SATA Controller (0, 0): /home/arnik/VirtualBox VMs/hass/hassos_ova-5.10.vdi (UUID: 70452047-9d26-48d5-af34-5d90dc9c192c)
NIC 1:           MAC: 080027E30EFC, Attachment: Bridged Interface 'enp3s0', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 2:           disabled
NIC 3:           disabled
NIC 4:           disabled
NIC 5:           disabled
NIC 6:           disabled
NIC 7:           disabled
NIC 8:           disabled
Pointing Device: PS/2 Mouse
Keyboard Device: PS/2 Keyboard
UART 1:          I/O base: 0x03f8, IRQ: 4, attached to device '/dev/ttyACM0'
UART 2:          disabled
UART 3:          disabled
UART 4:          disabled
LPT 1:           disabled
LPT 2:           disabled
Audio:           enabled (Driver: PulseAudio, Controller: AC97, Codec: STAC9700)
Audio playback:  disabled
Audio capture:   disabled
Clipboard Mode:  disabled
Drag and drop Mode: disabled
VRDE:            disabled
USB:             disabled
EHCI:            disabled
XHCI:            disabled

USB Device Filters:

<none>

Bandwidth groups:  <none>

Shared folders:  <none>

Capturing:          not active
Capture audio:      not active
Capture screens:    0
Capture file:       /home/arnik/VirtualBox VMs/hass/hass.webm
Capture dimensions: 1024x768
Capture rate:       512 kbps
Capture FPS:        25
Capture options:

Guest:

Configured memory balloon size:      0 MB

Deleted the old VM & created a new one.

IT WORKED!

Wish I knew why, but I’ll take it! Thank you so much for your help :slight_smile:

1 Like