How do I access the files on Hassio running on VM

Hi, I’m completely new to home assistant. I have it running on oracle virtualbox in a windows PC.

I wanted to use the Picture elements feature and hence wanted to start by adding images to www in config. One problem though, I had done all my previous configuration through the online vsc editor alas you can’t add images the same way.

I have Samba Share installed but am unable to find my device in any way. Is it possible to add the images through some other way or any idea on how to access these files through some other means.

Please help me out

1 Like

You could install the SSH addon and use WinSCP to copy the files.

1 Like

is there any particular reason why I cant access these files using samba share?

can you not try and map a drive from the HA vm to your windows pc using the virtualbox feature?

If you search the forum you will find hundreds of posts about samba not working, most using the Home Assistant image. Add the VM NIC interface complexity…

try or not try?

im suggesting you try it
i think it’s under the shares heading

I agree, do this :point_up_2: @allenbijot. Simple, easy and works every time.

Do you happen to have a guide on how to use this?

Sorry I couldnt find said heading

you go settings > shared folders
https://www.virtualbox.org/manual/ch04.html#sharedfolders

yes but to mount it to the network i would have to do it from within the vm right?

so should i try this image

you map one of your host folders into the vm
see these pictures i just took

stop the vm, click settings, shared folders, click the green plus sign, pick a directory from your host under other

then i guess yes, you need to modify fstab to auto mount the share

  1. Make sure you have advanced mode enabled in your profile
  2. Install the SSH & Web Terminal Add-on from Home Assistant Community Add-ons in Home Assistant Supervisor.
  3. Configure a Username and Password of choice in the Configuration tab of the Add-on, Save, and then restart the add-on so the new settings take effect.
ssh:
  username: USERNAME
  password: PASSWORD
  authorized_keys: []
  sftp: false
  compatibility_mode: false
  allow_agent_forwarding: false
  allow_remote_port_forwarding: false
  allow_tcp_forwarding: false
zsh: true
share_sessions: false
packages: []
init_commands: []
  1. Download WinSCP from HERE and install on your Windows PC
  2. Log in to the Home Assistant VM (use the IP of your Home Assistant VM)
    Capture5
  3. All of your configuration files are saved in the /config folder. If you have a new install, you will need to create the www folder inside the /config folder.

You can now drag and drop files from your PC to HA easily. Hope this helps.

4 Likes

Have now tried for a whole week and it still doesnt work.
This is what the app shows image

Also when I open the web terminal for the addon it shows 502: Bad Gateway

Nevertheless I just got sambashare working.
In case anyone is trying in This PC image
Click on add a network location
Then when entering the address enter \your.server.ip.here\config
and then enter credentials set in samba share

Thats it
Hope it helps someone

2 Likes

Sorry to bump this topic. I’m a newbie but I’d like to give my humble advice:

I too came across difficulties using this method, I took a look at the configuration file and in order to use a SFTP-connection you’ll need to change sftp to true and set the username to root.

ssh:
  username: root
  password: PASSWORD
  authorized_keys: []
  sftp: true
  compatibility_mode: false
  allow_agent_forwarding: false
  allow_remote_port_forwarding: false
  allow_tcp_forwarding: false
zsh: true
share_sessions: false
packages: []
init_commands: []

I’m taking a sharp learning curve to be able to work with HASS. Fingers crossed, because the journey is difficult. Even posting code has its own rules here and is a journey on its own :laughing:

1 Like

That’s not how I have any of my systems configured, they all work with the config as I previously posted.

As a test, I just set one machine too sftp: true and the connection was blocked. Changed back to sftp: fase and I was able to connect immediately with WinSCP.

I’m not here to start a discussion or to get into an argue with somebody. I appreciate your post because it helped me get where I needed to be. So, many thanks! I really appreciate people helping each other resolving issues.

My connection was blocked when connecting through SSH in WinSCP, I kept getting ‘wrong password’ even though my password was set up correctly. Only after changing the settings I mentionned I was able to get in.

I didn’t want to keep this for myself, if this could be in any way be helpfull for someone.

1 Like