-
Notifications
You must be signed in to change notification settings - Fork 653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support for snapshots/backups #208
Comments
Similarly for me .. A typical pattern is to:
And of course this helps with the airplane / offline mode. |
On my current workflow i use Vagrant and Ansible which i can easily reproduce with Keep up the good work |
+1 Preparing the development environment based on a Ubuntu cloud image, then take a snapshot as the baseline. Re-start from there as often as needed. |
Did anybody try to manipulate multipassd-instance-image-records.json? Could I just copy over an existing instance directory and "make it available" as a new instance? |
Hi @swissguest, note that the instances get "initialized" on first boot, and there's things that might not work as you expect if you do just that. At least one thing that comes to mind is hostname, which would conflict if you just copied the instance disk image. Your mileage may vary ;) |
will this be implemented? Really like multipass but without this feature I'll have to reluctantly have to use something else ... |
I agree with this specific topic. The other would be to simply save state of the instance and peruse different state names with time stamps. Allowing the workflows described above, which I abundantly use as well. |
I am surprised and disappointed that this issue is still open after 2+ years. Why Multipass? I've used LXD extensively for over 3 years and this seems to be a step backwards not forwards. The ability to save, replicate and move instances is a basic feature set needed to make this a viable development environment. Yes/no ? |
@mrb1090 Multipass isn't for everyone. If you're comfortable with LXD, you can keep using it. Multipass works with VMs, not containers like LXD by default, and not just on Linux. They complement each other, rather than replacing. |
@Saviq It's not just LXD, though. Most VM management tools support snapshots, e.g. virt-manager, virtualbox. And it can't be too long until LXD is on Windows via WSL2, eh? |
Can't comment on the latter, but it's not like we closed this issue. We just have higher priority items to work on, first :) Snapshots are a complex topic, different hypervisors deal with them differently (or not at all), cloning adds to the complexity even more. We just have to prepare to it well, to maintain good UX. |
Adding my two cents for snapshots. I use it in the same method mentioned above--configure a machine; snapshot it; then do testing/demos/whatnot and return to the clean snapshotted version when I'm done. Possibly offer an option to change the root filesystem to something that supports snapshots? |
Hello,
Every time, I was obliged to uninstall all (even drop the VMs and daemon data) A snapshot feature would be useful, but I'm totally ok with a workaround. is there a procedure to be able to recover existing VMs? or to solve this "socket" issue? |
A related use case that would be handy is to allow snapshotting and allow publishing the image (locally) such that other instances be can launch from it. |
Hi, I also would love to have this feature. A simple short term solution would be to allow deploying qcow2 images when using the libvirt driver. Then you could at least use virsh to snapshot. |
Are there any workarounds on creating a backup or snapshot of a Multipass instance for macOS, Ubuntu OS? |
There is a description of a possible work-around here, although I have not tried it: https://askubuntu.com/questions/1180895/import-export-vms-from-multipass . Related https://snapcraft.io/docs/snapshots |
What I do to create a snapshot on macOS is:
If you want to rollback to I'm on Apple Silicon so Multipass is using QEMU under the hood and some paths may be different compared to an Intel Mac, |
Note Hyperkit is using a different implementation of qcow2 support with quite some limitations and incompatibilities. Part of why we want to move to QEMU across the board. It will also enable us to think about this feature again. |
Thank you for the clarification, I've edited my comment |
I have found an easy way to backup the multipass instances if you are using windows virtualbox as the driver.
|
Thanks! |
Multipass does not recognize the cloned VM created throught Virtualbox GUI.
Now, you have full controle of cloned VM with multipass commands. |
I used an above method to control VM from multipass. However, information of cloned VMs suddenly disappeared from the setting file and Multipass could not recognize those VMs although they remained in Virtualbox. I tried to fix it, but I was not able to do so. Since Multipass does not support clone officially, this can happen anytime. So, I had to give up using Multipass and went back to Vagrant. I hope Multipass will support a backup in the future. |
那么我可以通过更改 multipassd-instance-image-records.json,multipassd-vm-instances.json这两个文件来实现容器复制和注册吗? |
Any news on this? It's been quite a while, would be interesting to know if this will be on the backlog or a |
Hi @lowercase00, we will finally start work on snapshots soon! |
Coming by and wondering whats the status is. However, I've just realized to my surprise that there is no snapshot/backup option. In case of a fatal failure in the VM I would have to start over. |
Hi @rene-hermenau, thanks for the kind words. We have an implementation of the QEMU-specific and generic bits that is close to being done. We then have to implement other backends too. Here's where you can track our progress on snapshots. And the feature branch. |
For those who need it, here is a Linux solution I use to snapshot all multipass instances and restore them to a new host. |
2993: Snapshots r=townsend2010 a=ricab Fixes #208 Co-authored-by: Ricardo Abreu <[email protected]> Co-authored-by: ScottH <[email protected]>
2993: Snapshots r=townsend2010 a=ricab Fixes #208 Co-authored-by: Ricardo Abreu <[email protected]> Co-authored-by: ScottH <[email protected]>
2993: Snapshots r=townsend2010 a=ricab Fixes #208 Co-authored-by: Ricardo Abreu <[email protected]> Co-authored-by: ScottH <[email protected]>
2993: Snapshots r=townsend2010 a=ricab Fixes #208 Co-authored-by: Ricardo Abreu <[email protected]> Co-authored-by: ScottH <[email protected]>
2993: Snapshots r=townsend2010 a=ricab Fixes #208 Co-authored-by: Ricardo Abreu <[email protected]> Co-authored-by: ScottH <[email protected]>
multipass is great, among other usages, for setting up isolated development environments.
For instance, users are able to contribute to projects requiring a specific version of ubuntu thanks to multipass: creating and starting instances is very simple and the whole experience feels lightweight and clean.
Those are intended to be long-living instances, and therefore having the ability to create snapshots and backups would be very useful.
The text was updated successfully, but these errors were encountered: