Homeassistant virtual machine

From the notebook connected via wifi to the same network (192.168.1.3) to the minipc (192.168.1.247) and to the VM (192.168.1.245).

In fact, from the minipc I see the notebook online and on the contrary NO.

HAVM error16

Do you have any idea?

If http://192.168.1.245:4357 works, it is very weird http://192.168.1.245:8123 doesn’t.
Can you try http://192.168.1.245:8123 once more the host?

It is also weird that from your [email protected] you cannot ping [email protected] nor [email protected] :thinking:
But that is not THE problem at the moment (might just be a simple firewall issue.
Let’s first focus on Host–>VM :wink:

I don’t use virtualbox so really no idea, but I noticed from your screenshot that your “Virtualbox host-only ethernet adapter” is on 192.168.56.0/24, while you are trying to communicate on 192.168.1.0/24. Is that related to your issues? Those networks won’t talk to each other unless you configure it.

Done, it doesn’t work

This is the IP of the Virtualbox network card.

Should it be changed?


PS: sorry, but due to the limitations of the forum (RIDICULOUS) I have to wait 16 hours to continue this thread.

Is this something you have set yourself? Like I said I do not use virtualbox, but you could try using an IP in the 192.168.1.0/24 range.

it doesn’t matter, you are in bridge mode.
You might even delete the host only network.

Just to explain; you can run a vm in three network modes:

  • VM only, this is an isolated network in which only the vm’s can communicate with each other (not with the host nor any device on your physical network); this network can not even be seen by the host.
  • Host only, a network where VM’s can communicate with each other and with the private network card created on the host. The VM’s can not communicate with any devices on your network.
  • Bridge mode, the physical network card of the host is shared with the VM, allowing it to communicate with all your network devices (including the internet if you have a router in your network).
1 Like

You run into forum limitation, because you are posting too many images. Many of those could have been copy and paste of pure texts, using this:
image

Now,

  1. go to your router, disable delete the IP assignment rule to 192.168.1.245 for the time being. Also, while you are here, also check whether you have any firewall rule to regarding port / port range on ip / ip range containing 192.168.1.245
  2. on your VirtualBox setup, remove the setup of 192.168.56.1, and use DHCP instead, ie use this Ottieni automaticamente…
    image
  3. Turn off the VM “domotica-luipez” and double check the network is (still) in bridge mode. Do not boot the VM just yet.
    3.1) Could you show us the drop down list of this Nome?
    image
    3.2) and also show us what’s under the “Avanzate”?
  4. now reboot the host metal box “domotica-lp”
  5. Do not boot any VM just yet. First run ipconfig /all and paste all the output (in text, not in image. the output could be longer than one screen)
  6. Now boot VM “domotica-luipez”, wait a few minutes so it is fully booted
  7. Let’s do a couple of things at this point:
    7.1) check the terminal output from VirtualBox, let us know any IPv4 address in the output.
    7.2) run network info from the same VM terminal window, show the output (in text)
    7.3) run ipconfig /all on your VirtualBox host, ie on domotica-lp, and let us know the full output (in text).
    7.4) from your router, find a list of connected devices in the router webui somewhere, and see whether your DHCP assigns any IPv4 address to “domotica-luipez”, or to whatever the name your VM would be.

@k8gg There is something else wrong; as he can open the HA observer page from the host fine:

So he can open http://192.168.1.245:4357 but not http://192.168.1.245:8123/
In other words, his vm network is working fine

So don’t post confusing info please

Ho RISOLTO impostando i seguenti IP:

PC: 192.168.1.247
VirtualMachine: 192.168.1.245
HomeAssistant: 192.168.1.244

HA si è avviato.

2 Likes

HA is the virtual machine…
and since the host and vm are bridged:
VirtualMachine: 192.168.1.245 doesn’t make sense…

But glad it works dude

Just out of curiosity, what does

ping homeassistant.local

do?

To be more precise

set the following Static IPs:

PC network card: 192.168.1.247
VirtualBox network card: 192.168.1.245
HomeAssistant virtual machine: 192.168.1.244

This is how HA works.

C:\WINDOWS\system32>ping homeassistant.local

Ping homeassistant [fe80::51a4:140f:76e2:c3ee%15] with 32 bytes of data:
Reply from fe80::51a4:140f:76e2:c3ee%15: duration<1ms
Reply from fe80::51a4:140f:76e2:c3ee%15: duration<1ms
Reply from fe80::51a4:140f:76e2:c3ee%15: duration<1ms
Reply from fe80::51a4:140f:76e2:c3ee%15: duration=1ms

Ping statistics for fe80::51a4:140f:76e2:c3ee%15:
     Packets: Transmitted = 4, Received = 4,
     Lost = 0 (0% lost),
Approximate return trip time in milliseconds:
     Minimum = 0ms, Maximum = 1ms, Average = 0ms

Thank you all

That address is an TCPv6 address, works too…but we focussed on TCPv4 here

So can you make that:
ping -4 homeassistant.local ??

I know. That was why I was asking the full output of ipconfig /all from the host, which has multiple network adaptors, at different places
… as well as checking the router firewall. Very likely there is some IPv4 rule blocking port 8123, or IP range rule, or combination of both.

C:\WINDOWS\system32>ping -4 homeassistant.local

Pinging homeassistant.local [192.168.1.244] with 32 bytes of data:
Reply from 192.168.1.244: byte=32 duration=17ms TTL=64
Reply from 192.168.1.244: byte=32 duration=20ms TTL=64
Reply from 192.168.1.244: byte=32 duration=20ms TTL=64
Reply from 192.168.1.244: byte=32 duration=19ms TTL=64

Ping statistics for 192.168.1.244:
     Packets: Transmitted = 4, Received = 4,
     Lost = 0 (0% lost),
Approximate return trip time in milliseconds:
     Minimum = 17ms, Maximum = 20ms, Medium = 19ms

But now it goes

So now it works on http://192.168.1.244:8123/

It would highly surprise me if http://192.168.1.245:4357/ still works…as it should be http://192.168.1.244:4357/ now
My guess is the DHCP reservation went wrong somewhere, and HA kept on changing IP…

How did you find the MAC address of the VM and how did you reserve it?

Yes, work with that IP