Installation on Synology Virtual Machine Managager

No, unfortunately not.

The install doc still holds and it is ok to upgrade to 5.13.

1 Like

Hi there!
Do you know how to run Home Assistant with an external USB drive on Synology? I have HA in Virtual Machine Manager but disks canā€™t hibernate after this.
Thank you!

HDDā€™s wonā€™t hibernate if you have VM installed, thatā€™s a fact. But, in my case HDDā€™s almost never hibernate even before VM installation. It depends on what youā€™re running on syno: web server, media serverā€¦all that prevent spindown.
In fact, some say that itā€™s better this way. Supposely HDD is most vunerable at startup, so if/when it will fail then it will fail at startup. Therefore itā€™s better fot them to run 24/7.
Running from USB, even if possible, will cause another problem: flash wearout. USB sticks arenā€™t build for 24/7 use, especially non-stop writing will destroy it quickly.

1 Like

Iā€™m pretty new to Home Assistant and was playing around with a VM installation on a Synology 218+ for the last 5 days - successfully! I imported hassos_ova-5.12.ova and thought (except for the missing Guest Agent), that this was not so difficult after all.

Until yesterday :frowning:, Synology proposed several updates of their packages, including VMM (new version 2.5.3-9760). After applying the upgrades the already successful running Home Assistant doesnā€™t boot anymore.

I tried a new installation, this time with the brand new hassos_ova-5.13.ova, but it canā€™t boot either. (I did the same in a VirtualBox on my Win10, works like a charm)

This is the messages I get for both the first and the recent installation when I try to boot them:

ā€¦ Cannot read MBR ā€¦

well thatā€™s pretty fatal I would say.

So anybody else experiencing the same with the recent update of VMM? Is there anything I can do to fix it?

Thanks,
Georges

Hi Georges,

I updated my Synology VMM to version 2.5.3-9760 successfully this week and HA has continued to run absolutely fine since so I donā€™t think thatā€™s the cause of the problem.

Iā€™m running all the latest versions of HA:
core-2021.3.4 & supervisor-2021.03.6

However my OS is the latest production version 5.12 - I wonder if this could be relevant?

Hope you manage to get it sorted.

John

Hi John,

my first installation of HA was 5.12 (a week ago) and yesterday I tried a re-installation with 5.13 => both do not boot. All the rest is exactly the same as with yours.

I assigned 1 CPU and 4 GB of RAM but both have nothing to do with ā€œCannot read MBRā€. I will de-install VMM and start from scratch.

I will post the outcome ā€¦

Cheers,
Georges

A complete re-install of VMM itself didnā€™t help. Same boot errors.

Iā€™m rather at a loss :frowning:

Did you select UEFI as BIOS when you created VM - this is not default setting by default. This in theory can be one of the reasons.

Hi @BeardedConti,

Yes, I chose UEFI. I started the installation a week ago based on your YouTube video. That helped a lot to get started.

And as I mentioned earlier, everything worked fine at the beginning until I updated the VMM. I tried to find some hints on Synology forums, with no luck so far.

What Syno are you running and is it original or Xpenology? In release notes I canā€™t see anything that could be related to this - at least not for VMM update. DSM update is different beast.
Do you maybe have external USB drives that you are using?

I didnā€™t even know about Xpenology - interesting stuff.

All boring standard stuff in my case:

DS218+ with 6144 MB and DSM version 6.2.3-25426 Update 3.
My Synology tells me that Iā€™m up-to-date with 6.2.3 but taking a look at the release note page shows that 6.2.4-25556 is about to be rolled out.

There is interesting note under Compatibility & Installation

ā€¦
2. Fixed a compatibility issue between the Geminilake platform and virtual machines running Windows 10.
ā€¦

VM is a topic, not necessarily my issue, but still VM related. Should I give it a try? Hm, I think I do.

EDIT:
15 minutes later: it doesnā€™t make a difference.

DS218+ is Apollolake - Geminilake is x20 series (720, 920,ā€¦).
This is really strange error. Iā€™m on much lower DSM version myself - always lagging behind with updates as previously I had couple of issues with DSM updates. So I wait for month or two before updating.

Next set of questions :slight_smile:
How big is VM - how large is VM disk you created? Are you using internal HDDā€™s from Synology or have external USB HDD attached?

1 Like

Hardware: DS218+, 6GB RAM, no other hardware attached.

VM with 32GB virtual disk, 3 GB RAM and 1 CPU assigned.
image

I just followed your/Frederikā€™s instructions, no experiments.

1 Like

Hi Georges,

I assume that you are not running any other VMMā€™s on the Synology?

Just a thought - would it be worth setting up a simple Linux, or Windows, installation?

This might help identify if the problem is in some way directly associated with the VMM / Synology setup rather than the HA installation.

1 Like

Iā€™m now shooting blindlyā€¦ Can you check Boot from:

BW - What @JohnWH suggests is good idea. Trying to create new VM from whatever image you can get your hands on - to see if this is related to VMM or problem with this image.
Also, did you maybe try to download image from Fredrick? URL is located in first (second) post here - this image has guest agent installed/enabled. Who knowsā€¦

1 Like

You are a restless contributor! Thanks.

It actually is ā€œboot from virtual diskā€. And of course tried the other option too.

I first imported ova 12, which worked until the VMM update. After that I tried ova 13 as well as the initial version from Frederickā€™s download link.

Iā€™m convinced myself that the next step should be to try out any other kind of VM. I just donā€™t know which one would be ā€œsimilarā€ enough to HA. A small Ubuntu?

I probably donā€™t have time until tomorrow or Friday to carry our further experiments.

Thanks John for your suggestion, that would have been my next step.

I posted my problem at the Synology Community as well. Letā€™s see, if someone there comes up with another hint.

1 Like

Did you get any update on this in Syno forums?
I know it may sound strange, but Iā€™m thinking (very far fetched) that this can be memory issueā€¦
Or something so stupid and obvious that Iā€™ll kick my self at the end for not thinking of that.

I successfully installed a ā€œDamn Small Linuxā€ in VMM. But I did not report back on this, because it is so small, that it offers no options to boot in EFI mode (apparently, this must be packed into the ISO or OVA container).

Thatā€™s where I actually got stuck. Iā€™m still searching for a small Linux that offers UEFI. Some forums explain how to unpack a small ISO file, include the EFI config files, repack :partying_face: ā€¦ well, not me. I have too little expertise in Linux to carry out such a hack myself.

The Syno forum has not answered yet. I will post a request if someone can guide me where to fetch a small EFI Linux, so that I know that EFI as such works.

Excellent work! Itā€™s great to have HA integrated with the guest tool!

If I run an update through Supervisor, that wonā€™t cause issues, right?