Save VM configuration files to flash - like docker container configuration files


Recommended Posts

Currently the docker container configuration files are saved to the following location on the flash disk:

 

/boot/config/plugins/dockerMan/templates-user/

 

With these stored container configuration files I can recreate a docker container, and it's previously configured options, even without the docker.img file:

 

Page "Docker" > "Add container" > "Select a template" > "User templates"

 

This does not work the same way with VMs.

 

 

Here's my feature request:

 

1.) Add a new folder:

 

/boot/config/plugins/dynamix.kvm.manager/templates-user/

 

2.) Store the XML configuration files of all VMs into that folder with "virsh dumpxml <VM name>".

 

3.) At the top of the "Add VM" page, add a dropdown list like that from the "Add container". Populate the dropdown list with the stored VM configuration names (see above). Put a label "Template:" in front of the dropdown list, put the header "User templates" above the list of names of the stored VM configuration files.

 

4.) After the user selected an entry from the dropdown list, the Create/Edit window should be shown in XML view. This view will contain the previously stored XML of the VM.

 

With these stored VM configuration files I can recreate a VM, and it's previously configured options, even without the libvirt.img file. However, the domain image files (e.g. vdisk1.img) are needed as well. But these files are all I need to backup, and I can backup these files savely without shutting down the docker/KVM subsystem.

 

To backup docker.img, libvirt.img I need to shutdown both subsystems as well. With this additional feature, it's no longer required.

 

Thanks for listening.

 

 

Link to comment
34 minutes ago, hawihoney said:

With these stored VM configuration files I can recreate a VM, and it's previously configured options, even without the libvirt.img file. However, the domain image files (e.g. vdisk1.img) are needed as well. But these files are all I need to backup, and I can backup these files savely without shutting down the docker/KVM subsystem.

 

It might be worth pointing out that the VM Backup plugin backs up the XML as well as the vdisk files and only shuts down individual VMs as it backs up the vdisk files.

 

Does not mean, though, that backing up the XML as part of configuring a VM is not a good idea and probably very little effort to add.  Whether the rest will be considered too much effort I have no idea although it certainly falls into the "nice to have" category.

 

Link to comment
3 hours ago, itimpi said:

nice to have

 

For Docker we "have" it already (Container XML configuration files stored on flash). Why not for VMs as well (VM XML configuration files stored on flash)?

 

IMHO a system should act identical wherever possible. It makes it better for users to understand.

 

This change does not make Backup/Restore obsolet. Backup of appdata (Docker Container) and vdisk images (VMs) is still neccessary. But it helps to recreate Container/VMs or create Container/VMs based on existing Containers/VMs.

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.