-
-
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
Add support for snapshots #5484
Comments
I'm also missing this feature, yet I know how to do it manually, if you already have
|
My virtual disks have the suffix Creating a snapshot fails with:
|
The snapshots I described only work with supported image types, e.g. |
Hm, after converting to |
How did you convert it? What does |
I also don't know how to create a new UTM VM with |
Your virtual disk sizes are the same and everything looks like it should work.
I don't know either, my default was This is my disk-part of the configuration, does it look the same or are there any other values?
|
That is mine:
Because of the ID difference I created a new clone from a working vm and then without starting UTM I edited the config.plist und changed only the ending from |
I just tried to setup a Are you on the newest UTM app version? |
I did what you said but the file was not converted to to |
https://docs.getutm.app/settings-qemu/drive/drive/ says:
So we cannot expect a conversion to I'm using UTM 4.3.5. I will check for an update. Update: |
I'm also on 4.4.4 on a M2 MBP. I don't know what I should tell you, it does convert it to
created a new VM, delete its disk, import the raw and I ended up with a or as text:
|
Bingo - macOS seems not to work with
|
Apple Virtualization doesn't support qcow2 images for macOS |
That sounds reasonable, |
Snapshots with APFS are not sufficient. I want to restore the whole system. So I think I will have to clone the VM every time I need a snapshot. Not perfect, but I can live with it. |
This is the one thing that is holding me back of using UTM. |
i'm here because ChatGPT v4 hallucinates that UTM already has a Snapshot creation, restoring and deletion method. It's wild the kind of stuff that these LLMs will hallucinate. I was fully expecting this feature to be here, but instead I gotta keep a master VM image and clone it and run. and then delete and make another clone. hopefully this type of feature will land eventually 👍 |
Without knowing what exactly ChatGPTv4 said/hallucinated, it may be technically correct: you can create snapshots of some virtual disk as shown in this comment. |
hallucination1 (excerpt)
then i asked it a followup question on how exactly to do that and it said
|
Thank you for reporting back. Yes, this is completely hallucinated, especially the part:
That is the only way to create consistent snapshots. |
I'm not seeing any reference to this project in this issue so linking to it here: https://github.com/Metamogul/UTM-Snapshot-Manager Seems like @Metamogul has put together a nice little PoC GUI for how UTM could manage snapshots. I'd be great to have something like this integrated into UTM directly :) |
Hi utmapp team. Do we have the snapshot feature right now? I really need it. It's so important for a virtual machine. Even through we have the |
I think that's a brilliant suggestion, +1 to that! |
This is particularly true for iOS and iPadOS since the |
I found myself here because I, too, needed VM snapshots. Realizing they're not avail, I went back to Parallels Desktop, which pretty recently was much worse than UTM at setting up macOS guests on Apple silicon machines, for another look. I realize it's commercial, but v21 now works quite nicely with macOS guests on Apple silicon, including full snapshot support. MIST is a good tool for getting the ipsw firmware file for the version you want. So, obviously not what everyone here is looking for, but wanted to mention it for those that need snapshots for macOS guests on Apple silicon models and aren't opposed to paying for it and/or using closed source software. |
You can also use VMWare Fusion, which is now free for personal use and supports Apple silicon and snapshots. |
Thanks! Did not know it had been made free -- that's pretty cool. Just tried it out. Unfortunately, it does not support macOS ARM guests at all, they're explicit about it. When running on Apple silicon, Fusion supports Win and Linux arm64, but not macOS. |
If you need macOS as guest you can use VirtualBuddy, which is free and allows saving VM state. |
Note that a trivial implementation of snapshots (Or at least the "do something and then revert" aspect of it) can be implemented at the APFS layer. Specifically, in Finder select the VM, press CMD-D, and then do all your to-be-disposed work on the copy. Then when you're done, delete the copy. |
Certainly true, and a more space efficient alternative to cloning from the VM, which I assume makes a full copy. I think you only get copy-on-write via Finder copies, not even from Terminal. |
|
This is the one feature that prevents me from moving fully to UTM. |
Snapshots are really the feature we're loving using VMs |
You can save the state in UTM via Apple Virtualization as well, but neither of these are snapshots. Apple has not implemented any kind of snapshot functionality into the Virtualization.framework, so any implementation prior to it being a platform feature would need to be added. QEMU supports disk snapshots, and it would be great to have UTM hook into the COW features of APFS, but you can get something like it with a combination of "clone" and "run without saving changes" options. |
Interesing how another VM vendors like Parallels implemented snapshots. Probably some sort of dealing with APFS snapshots using external tools?... |
@lnxbil Thanks for suggesting the manual snapshots via qemu-img. Check out Vagrant UTM Plugin, it uses qemu-img to provide vagrant snapshot feature without depending on UTM. |
I was all set to purchase Parallels recently, but during my 30 day trial on an M1 Mac I had snapshots repeatedly fail. I went through support and they were zero help, just wanted to blame operator error, etc. I had used the same product on an x64 Mac and it worked fine. |
Hmm, you're probably right, it's just that VirtualBuddy can have multiple saved states do they can be confused with snapshots. |
I'm not sure what you mean. Parallels supports snapshots. I am actively
working with snapshots of macOS VM's on Parallels on an M2 MacBook Pro. I
assume they've figured out some way to roll their own independently of what
the Virtualization framework provides.
One thing they haven't implemented, though, are Linked Clones, which you
can do with other platforms where they are using their own hypervisor.
…On Sun, Dec 22, 2024 at 12:48 PM wdormann ***@***.***> wrote:
Apple has not implemented any kind of snapshot functionality into the
Virtualization.framework
Interesing how another VM vendors like Parallels implemented snapshots.
Probably some sort of dealing with APFS snapshots using external tools?...
The Parallels capability that's provided by Virtualization.framework
(running macOS guest VMs) does indeed not support snapshots.
—
Reply to this email directly, view it on GitHub
<#5484 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANN6M7OXIMY7L5FHSK6F6T2G4QRVAVCNFSM6AAAAAA2SFTE66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJYGU4TIMRTGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
You are correct. |
Maybe this issue needs to be separated into multiple issues based on hypervisor and guest OS type. QEMUAs pointed out in #5484 (comment) there's already a tool to create snapshots of the disk, Create a snapshot:
List snapshots:
Restore snapshot:
And someone created a solution to manage snapshots, but it requires users to compile it themselves:: Apple VirtualizationIt appears that Apple has not provided a mechanism to create snapshots with Apple virtualization, and adding this feature will require significant investigation. |
I can't seem to find anything about a virtual machine container snapshot manager, which is readily available and available on vmware
This is also very important for my work, which means that I need to create snapshots for different moments of the virtual machine to restore to a certain node location when needed!
You should know what I'm talking about, I didn't explain otherwise
I've also looked through the historical issues and apparently haven't seen anyone making a similar request, would like to ask if this feature is of interest!
I'm new to github so please excuse me if I'm doing something wrong, thanks
The text was updated successfully, but these errors were encountered: