#Can't install Get HACS add-on on VirtualBox HAOS installation running on macOS

1 messages · Page 1 of 1 (latest)

heavy frost
#

I am a newby to HA, so bear with me. I installed HAOS 15.2 in a VirtualBox environment using the haos_generic-aarch64-15.2.vmdk.
I setup a bridged network connection for the VM, as requested. When trying to install HACS I struggle in the first step to download the add-on repository.

I found this in the protocols:

Failed to to call /store/repositories - Cmd('git') failed due to: exit code(128) cmdline: git clone -v --recursive --depth=1 --shallow-submodules -- https://github.com/hacs/addons /data/addons/git/cb646a50 stderr: 'Cloning into '/data/addons/git/cb646a50'... fatal: unable to access 'https://github.com/hacs/addons/': Could not resolve host: github.com '
Failed to to call /store/repositories - 'StoreManager.add_repository' blocked from execution, no supervisor internet connection
Failed to to call /addons/reload -

Seems there is no internet connection. In Setup/System it says "External access is deactivated" under Network (sorry I have to translate from a german UI back to english).

What can I do?

GitHub

Contribute to hacs/addons development by creating an account on GitHub.

hollow totem
#

Is the bridge connected to ethernet or WiFi? What does ha network info say? What do the VM's network settings look like?

heavy frost
#

Bridge is connected to WiFi

hollow totem
heavy frost
#

The output of "ha network info"

hollow totem
#

That looks more like you use NAT rather than a bridge.

heavy frost
#

VirtualBox network settings is bridged network on en0: WLAN

hollow totem
#

I'd like to see pictures of the VM config. But as said, WiFi bridging is not guaranteed to work.

heavy frost
#

The VirtualBox settings

#

No network issues in HA otherwise

hollow totem
#

That does look correct but the 10.0.2.2 gateway makes me suspicious.

#

Alright let's try something different. Enter login in the VM's console and try

ping 1.1.1.1
nslookup github.com
nslookup github.com 1.1.1.1
heavy frost
hollow totem
#

No network issues in HA otherwise
Networking, or rather internet, definitely does not properly work if you can't ping 1.1.1.1.

heavy frost
#

Sorry, first time I use VirtualBox. Have experience with Parallels Desktop only.

hollow totem
#

I'm not familiar with MAC but could you try to connect it via ethernet or do you have a USB NIC you could use?

heavy frost
#

I run my Mac on WiFi without issues but let me connect it to LAN. Will take a moment…

hollow totem
#

I'm not saying WiFi doesn't work, I'm saying that I don't trust a bridge over WiFi. See link.

#

What local ip does your MAC have?

heavy frost
#

Connected the Mac to LAN. Seems to work now.

hollow totem
#

🙂

heavy frost
#

192.168.178.1 is my router

#

192.168.178.135 is my Mac

hollow totem
#

I don't understand where the 10.0.2.2 came from in your case since that should only be used when you use NAT or your native network has that range but glad it works now.

heavy frost
#

Same here. Now the link to download the Get HACS add-on works 🥳

#

Thank you very much 👍