Migrating from VM to Pi4

I wanted to try our Home Assistant but dur to the chip shortage I couldn’t get my hands on a Pi so I installed HA in a virtual machine on an old PC running Ubuntu.

I’ve setup a few things like DuckDNS and the free Alexa integration.

Just had a stock notification so a Pi4 4GB is on the way to me. Can I do a backup from HA on my VM and restore it to HA on the Pi or would I need to start a fresh because of the hardware change?

Thanks.

That should work.

Backup is generally hardware agnostic. It should work, but is dependent on your installation method. Ive restored my configuration and n a number of devices with impunity…

Are you HAOS, Supervised, Core?

I used the HAOS image.

Then it’ll likely be cake.

Do yourself a favor and install the Google Drive backup and run a full backup into Google storage.

Your restore process is then:
Drop HAOS image on pi
Login as new user
Install and configure Google drive backup addin.
Restore from full backup you took above
Restart
Log in and fix whatever is not working (like paths to USB sticks etc.)as necessary but the list should be short.

@GForce2010 , did you do this and how did it work. I am looking at doing the same and wondered if you ran into any problems.

Hi Tom, did you ever manage to do a successful migration from VM to Pi4?

Regards

Hi Nathan, do you have any idea how to accomplish the migration from VM to Pi4 with a Wi-Fi connection and no connection to ethernet?

if you have a usb key that’s one of the easiest ways…

@armedad, thanks for the reply. Would you be willing to explain how I would go about it using a USB key.

make a full backup from your vm. grab that file and copy to the usb key. many ways of doing this… imho, easiest is if you have samba addon on your home assistant (if you don’t, you should regardless of this), and grab the backup from the samba share and copy it down to your usb key.

then on your pi4, pop it in to the usb slot… during first boot of homeassistant it will prompt you asking if you want to restore a backup. with the usb key in, it automatically found it and let me restore.

Thanks, a mill, I will give this a try out as soon as I get home this afternoon.

Much appreciated.

in case you don’t know where to find the file: