Can you run 2 clones of a VM at the same time that includes a memory snapshot ? #1171
-
|
Hello team, Let's assume I suspended a VM. Then I made 2 clones of that VM (MacOS Tahoe). Can I have them both running at the same time ? I know that the state include the mac adress, and apple virtualization framework don't like when you have a mismatch between the mac address in the VM config and the one in the snapshot. Any workaround for that ? The goal is to have multiple VMs running based on a clone that includes a memory state so we can avoid the boot time overhead. Basically Restore a VM quickly, do some work and throw it out. Another question that I was wondering about was: Why does tart delete the snapshots after it has been resumed ? Can't we make some changes to a VM then revert it state, and it should work just fine ? Any rationale behind that ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Unfortunately it's not possible, because Virtualization framework expects the MAC address of a suspended VM to be the same when resuming it.
Since the MAC address is only re-generated when a runtime collision is imminent, it's easy to achieve what you want by using
As for the rationale, the only reason besides just historical precedent (#527) I can think of is that it's simpler than introducing an additional CLI command like |
Beta Was this translation helpful? Give feedback.
-
|
Thanks a lot for your return @edigaryev. That answers my question. |
Beta Was this translation helpful? Give feedback.
Unfortunately it's not possible, because Virtualization framework expects the MAC address of a suspended VM to be the same when resuming it.
Since the MAC address is only re-generated when a runtime collision is imminent, it's easy to achieve what you want by using
tart clone:--suspendable, perform initial setup, suspend it-…