-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
snapshots / disposable VMs #2688
Comments
BTW, oracle virtualbox has a GUI for managing snapshots. |
Looks like #3067 is inching us closer. Any chance we can get a snapshot management view? This would be hugely valuable. |
Hi @juanandresgs, what do you mean by a snapshot management view? BTW the PR is only for temporary snapshots, not qcow2 snapshots with backing files. |
@ktprograms if you have virtualbox installed somewhere, just have a look at its snapshots dialogues. One can create (permanent) snapshots there, go back to the state of some snapshot, delete/merge snapshots, etc. |
I just realised, QEMU seems to have 3 kinds of snapshots.
If I understand it, you would like (3) to be implemented, right? |
Well, guess we need 1 and 3. 2 would be also nice to have as a space saver maybe. |
@osy as I understand from the Git history, directly using |
@ktprograms I'm looking to use "2." using snapshot against a backing file and "3." save states (I assume this is like virtualbox, or perhaps I need to read up on it). I attempted to setup 2 manually using qemu-img and UTM's image structure and when changing the settings from the parent to the snapshot the parent image is automatically deleted losing my setup entirely. |
@jimmont I'm sorry to hear that it deleted your disk images, that happened to me when I was testing (2) as well. It seems that if you mess with the drives (create new ones or move/resize old ones) manually from the command line while UTM is still open, then it deletes the drives. If you have closed UTM first, then you can try and create the new disk images with backing files, but I find the other problem is that the backing file can't be properly accessed if it isn't in the same folder as the new image, so the (temporary) solution I came up with is to hard link the backing file into each VM folder. However, please note that this is not a supported configuration and (as you have found out) runs the risk of you losing data. (3) would be implemented by either directly using |
The ability of making snapshots will be very nice feature for the users whose workflow relies on on VirtualBox and want to move to the M1 devices. (both UI and command line functionality) |
Is there a dev interested in implementing this? We can start a donation drive 🆘 |
+1 from me. This is a highly important feature, especially when you want to install software that is non-trivial to install and highly probable to fail. You can then revert back to a safe state, and retry. From Parallels and VirtualBox I know their handling, and that's what should be provided here as well (as described above with the screenshot from @juanandresgs . In the meantime: I tried to use qemu directly to create snapshots, but for unknown reasons this did not work (qemu does not recognize the machine). Am I doing something wrong, or is there an incompatibility? |
Hi @innoreq, can you please share the debug log / error alert because I don't understand what you mean by The reason why this feature isn't very easy to implement is because, for iOS compatibility, the Manually replicating the Currently, the best solution is to Note that even though it's a Copy on Write clone, you can freely use either VM (it won't break if you start using / modifying the original VM, even if you use both at the same time). |
I ended up here as I was also looking for something similar to VBox's snapshot management. Whenever I need to test something on the machine, I simply clone the Template machine into what I consider a disposabile test machine (e.g. "Test1"), start it work on it. The only thing to lookout for is ensuring I don't accidentally start the Template machine (which would change the state of the disk image). When I'm done, I simply delete the Test1 machine and create a new clone. |
Yes I plan to add other qemu-info functionalities as well. But right now it only works on macOS because we can launch new processes. On iOS you can call it once but if you run it again it errors. |
@osy I can work on implementing save states using |
What exactly is the error? Just wondering. |
Don't remember you can try it. It basically doesn't like main called multiple times. |
Hi there. Does anybody tried this project? https://github.com/Metamogul/UTM-Snapshot-Manager |
Hi there, is there any progress regarding a snapshot manager? I would also very much appreciate it if there was such a functionality. |
Plez? |
What do you mean? |
Disposable VMs have been available for QEMU backend for multiple releases now. #5484 will track the feature request for snapshots. |
I'm used to use Qubes OS on my other machine, especially using disposable VMs for random web surfing or potentially dangerous stuff (like working with files from untrusted sources).
A disposable VM is a VM created from a given state (template VM), executes normally, but when shut down, all changes get thrown away. E.g. if you do web surfing, you do not have to worry about getting tracked long-term by cookies or similar mechanisms - or if you try installing random software just to have a quick look, you do not have to worry about spoiling your system somehow, because all state will get thrown away automatically at shutdown time. Also malware does not have a chance to persist.
Such a dispVM could be implemented with qemu temporary snapshots.
Normal snapshots would be also useful as a safety net, e.g. before running OS upgrades or critical SW installations inside your VMs. If anything goes wrong, one can just revert to a known-good state in a snapshot.
The text was updated successfully, but these errors were encountered: