Installation on Synology Virtual Machine Managager

I can take a look, but unfortunately I’m not super hopeful.

Perhaps you should raise this with the Synology support as it is a bug within VMM.

1 Like

I would like to delete home-assistant_v2.db file. Sometimes it’s necessary when homeassistant can’t start. Please advise can I do it?
I opened VMM in Synology, pressed “Connect” button, logged in with “root” and see “ha >” invitation. But it allows to run “ha” commands only. I can’t do “rm” command. If I try to connect to VM with ssh, it refuses connections :frowning:
Please help and describe is it possible to work with core files over ssh?

You can rename or delete the database file by using the “Terminal & SSH” add-on.

to serge
i installed the supervisor addon sambashare in Home Assistant.
Go to top of the sambashare-card chose configuration
add username and password.
Password in quotation marks.
under allow_hosts in the config-file:
I added the ip of my synology and the ip of the VM. It works.
Click on save and start sambashare.
If you use windows:
go to add a network address
then next
in this window you have to put in the network-address from your HA-VM without :8123
like this example: \\192.168.179.201 (please take your ip-address)
Then start search and click on the ip of your VM
After this you choose the config folder.
Click on ok.
Now you can work per copy and paste.
I think it is similar with an Apple-system.

1 Like

Thank you, guys.
Do both addons (ssh and sambashare) work when “core” is stopped? I mean to make it right, I need to stop core before deleting the file. Or in case of homeassistant can’t start because of “recorder issue” do these addons work anyway?

I entered Terminal and did:

ha core stop
rm /config/home-assistant_v2.db
ha core start

I found this method in How do I delete the database on home assistant

“Terminal & SSH” is an add-on that you can open in Home Assistant. If you open it in Home assistant and run the command “ha core stop”, the home assistant application loses connection to the server and you can’t run the next commands. I tested that. I’m afraid that the same situation is with sambashare, because it is the add-on as well.

Tha’s why I’m looking for another way to connect to the file system of VM from an external terminal.

I just got a ds220j Synology NAS, with 2 drives in a Raid 1. Are you guys saying HA can be installed and run directly from the NAS?

Yes, it can run on NAS, but not all NAS are equal. j model is not supported. It’s 512K memory with Realtek processor?

1 Like

@ SergeS

i did not stop the core. I delete the db and restart HA. After restart you have the new db.

@ all

thank you

to the community for developing this program and for all the hints you can find here.

I started with v 0.109 installing hassio in a docker comming from Domoticz. It was very hard to work with domoticz over three years. HA is easy to install and very stable. You can integrate everything. Install updates with no problems. Easy migration from z-wave to ozw, three weeks later from ozw to zwave js. At last migrate from docker to VM. A lot of youtube videos with instruction to install and work with HA.
The restart of HA in the VM on a synology 918+ is faster as in the docker.

Ok, thanks. It works.
But anyway, I met the problem when HA can’t start because of an issue with the “recorder”. And to resolve this issue, you need to delete _v2.db file. In that case, you can’t do it with Terminal add-on because you can’t access it if HA does not work.
So is any way to connect to VM file system not through HA add-ons for emergency reasons?

@SergeS
i think you are right if HA start failed.
First i make after every update a snapshot. If my system is running well, i saved the backup folder, stopp the VM and export it. So i have a backup of the VM. Next i try the option clone the system. If the backup folder is stored on your laptop, you can install the VM new and play back your backup. It is easier as a new install of windows.

You are correct, this procedure does not work from the web terminal. But the “Terminal & SSH” add-on also creates a SSH server so you can set up a SSH session (for instance via PuTTY). Have you tried that?

Connection refused :frowning: It may be require specific port or something else…

Thank you @BeardedConti. That saves me lots of ‘wasted time’ … trying to get something to work on hardware it was not meant to.

Cheers.

Hi guys!
I have my HA setup in Docker on DS920+, but since it’s unsupervised now i’m on ext4 i’m seriuosly thinking of recreating my volume into btrfs and install HA supervised in VMM.
I’ve read whole topic but i didn’t find any info regarding https access. Now i have https acces with reverse proxy, so i use same certificates as Synology (Let’ Encrypt). Is this approach possible with VMM, too, or there’s another way? I would really need external access and i’d rather not do it via http.

Hi Pavel,
the reverse proxy doesn’t care if it forwards to the diskstations IP:port or to another IP (new IP of your VM).
The migration from HA supervised “Fredrik-style” to HA supervised in VM is really smooth. Just go ahead.

br

1 Like

You can have https access through DuckDNS/Let’s encrypt combo - no problem with that using Add-On in VM.

I was in the exact same situation as you. DS920+ with one big ext4 volume and all disk slots in use so unable to migrate to the HA VM. I also thought about re-creating the ext4 volume as btrfs but instead opted for an alternative.

You can use one (or both) of the NVME cache slots to create a data volume. It is a simple process but it can only be done from the commandline. My HA VM has been running on NVME volume for over a week now. I don’t know how long this will keep working, there is no guarantee whatsoever.

Disclaimer: This method is not supported by Synology so do this at your own risk!

Guide on reddit
Guide on YouTube (german)

1 Like

Thanks for explanation!
I just reinstalled my HA (thanks to BeardedConti’s videos) and it works as HA Core, but since i’m not well experienced in Linux “tinkering” (sorry for using your nick, @BeardedConti) with settings doesn’t make me feel good, because when i do “as i told” it’s ok, i’m stuck when i will be forced to do something by myself in terminal… that’s why i rather “demolish” my Syno and go with official HA.
@PatrickEhf: well, well… that’s a thing to consider: going with SSD’s. I’ve read here and there that those SSD’s doesn’t really speed up NAS a lot anyway, so it’s usage is supposely questionable (regarding money spent on them, i mean). Using them for HA would in this case be SSD’s well used. Do you feel any slower NAS with or without SSD cache?