Migrate HA OS from Hyper-V to RPI HA OS

Hi,

I have HA OS (latest) on a Windows server under Hyper-V. And now I want to move this HA instance to Raspberry PI 4. OS version of course.

Is it possible?

I tried to make a backup (instance on Hyper-V) and then a restore (instance of RPI), but the restore on RPI every time causes non-functionality of HA. The CLI works but the web UI does not. It says the error “ERR_CONNECTION_REFUSED”.

Does it make sense to look at the logs and find out what the problem is? There are many various errors in logs.

Thanks.

Hi, welcome to the forum!

Use your backup from within HA with a fresh install.
When onboarding, you get the option to restore your backed up config.

That’s exactly what I did. But the UI immediately crashes and won’t start even after a day.

I tried the same thing through the CLI. after entering restore, it said job OK, but the UI still didn’t work

It wasn’t clear to me how you created that backup.
Were you using TLS before?

1 Like

The backup is platform agnostic. You’re just moving from x64 to Arm.

Id bet this is a network error.

Did you offline the VM.

Did you give the IP address to new box?

1 Like

Over backup section in UI ( Settings > System > Backups ).
After that I downloaded it and upload on onboarding.
Also I tried setup clearly new instance, setup and after that over UI upload and restore backup.
Same result

No, the VM is still running. And this instance is still available.

Hmm, after restoring from a VM backup, is its old IP address (the IP assigned to the VM) set to RPI? Because the CLI shows a different IP than the VM IP.

Yes the ENTIRE config is applied. Including the IP configuration if you had a static IP assigned. You are having an IP address conflict.

It is for all intents and purposes THE SAME machine. You should not have two of them on the same subnet…

2 Likes

I did not think that it would also take over the IP settings.
As soon as I have the opportunity to temporarily shut down the old instance, I will try it.

1 Like

Also if you set your up assignment at the router then make sure you transfer the IP over.

Yes it’s a FULL backup. It gets EVERYTHING

1 Like

Nice, I tried to use the port that was set on the VM (I had a different port than the default on the VM) with the new IP on the RPI and it works.

I didn’t think of such a trifle…

Thank you very much.

1 Like

Now before you go: please mark the post that helped you as the solution so anyone who’s searching for this can benefit from it.
You do that by selecting the three dots under the post:

image

Then select the check box:

image

Also, by doing so this prevents that someone else steps in for trying to help.

2 Likes

Summarized solution:
As @NathanCu wrote, restoring backups also restores all network settings. If the old IP is listed somewhere in the configuration, it needs to be changed or the old IP provided to the new server.

In my case, the port was changed, which also changed to the new server after restoring the backup. The UI with the new port is already working.

Thanks to all guys.

1 Like