Sorry in advance if my terminology/vocabulary is off. I have been running a HA server/instance using VirtualBox on a Mac mini. A while back I had a power outage and afterwards, HA wouldn’t boot (here’s my Reddit post with more details on the error message). I’d like to install a new instance of HA on VirtualBox, but with saving as much data from my last installation (configurations, addons, automations, past recorded data) as possible.
Since that post, I’ve managed to take the “haos_ova-12.3.vdi” file and put it on my Windows laptop (what I’m most comfortable with, I don’t generally use Macs), extracted it using 7zip, and got a directory of the following .img files (would post image but I’m only limited to one per post as a new user):
- 0.hassos-boot.img
- 1.hassos-kernel0.img
- 2.hassos-system0.img
- 3.hassos-kernel1.img
- 4.hassos-system1.img
- 5.hassos-bootstate.img
- 6.hassos-overlay.img
- 7.hassos-data.img
I was only able to further extract the .img files numbered 0-2 and 6-7 using 7zip, images 3-5 had errors such as “Not implemented” and “Cannot open file as archive” when trying to extract using 7zip and “The disc image file is corrupted” when trying to mount using Windows Explorer.
In the “7.hassos-data” folder, there is the “supervisor” folder, with the the following files:
I assume these are the files that contain the data related to my last HA setup.
I’ve installed a new instance of HA using VirtualBox on the Mac mini using this guide, and am now stuck on figuring out how to transfer over my old data to the new installation (if it even can be done with the files I’ve managed to recover). I understand generally one could copy/paste these files over to the new HA directory, but I have no idea how to implement this in practice:
- How would I get the files into the VirtualBox machine that HA is running on?
- Once I do that or allow the VirtualBox machine to access the files on the Mac itself (I also don’t know how to do this), how would I overwrite the current HA files with my old files?
- Would I do this using the HA command line in VirtualBox itself? What commands would I use?
- If I couldn’t do this while HA was running, how would I do this?
Thanks for your help