Let’s answer a few questions before we move:
Q: where does gnome-boxes store images?
Q: Are there other directories I need to backup?
If you do not have any existing gnome-boxes images on your new host, please copy these three directories to your new host. It just works!
If you have existing images at your new host, do NOT directly copy these directories to your new hosts. Otherwise, you will overwrite your existing images and configurations.
Let’s assume the image you want to move is:
so there is a config file corresponding to this image:
Step 1: copy the above two files to the new host
Step 2: find the correct uuid for your image in:
open qemu session file:
(I think this file is used to display the sessions at gnome-box main window when you open the application)
you will see something like:
[display A-B-C] last-seen-name=Microsoft Windows 10 uuid=X-Y-Z access-last-time=1234567890 access-ntimes=1 access-total-time=1
append the corresponding session information with the same uuid to new host at:
Step 4: restart gnome-boxes and you will see your old VM image