Access to host machine from HassOS in a virtualbox vm

My setup is this: I have installed HassOS in a VirtualBox vm running on Ubuntu 20.04 (following the installation instructions on the Home-assistant.io website). This works fine.

However, I would like to be able to use the terminal interface on the host machine without opening another port in my router. In other words, I want to use HA’s SSL access with 2factor authentication for security, and use it to perform commands on the host machine.

Is this even possible? If so, how do I do it?

I would also like to access URL’s on the host machine, and have enabled the browser integration in my configuration.yaml file. However, I get no response when I call the service in developer tools. I am presuming that the HassOS does not include a ‘default browser’ which the browser integration expects.

Is there a way of installing one?

I would appreciate any help.

Your host and your VM are conceptually 2 different machines on a private vlan.
You cannot do more (but also no less) than if they were 2 different physical machines.

The browser integration allows to open url’s in the browser, it doesn’t do any kind of “proxying”.

Thanks for the response. I don’t need to do proxying - all I want to do is open the browser or telnet from within HassOS.

For anyone with the same problem, the answer to the terminal interface is obvious: Install the Terminal & SSH addon in the Supervisor, open its web ui and then type ssh username@host IP where username is the username on the host you wish to use.

I still haven’t found a way to access a web page from within Home-Assistant