-
-
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
Clone VMs with utmctl #5004
Comments
Basic deletion functionality would also be appreciated as well in furtherance of making UTM a valid tool for CI as well |
@nre-ableton you could conceivably clone it via |
FYI: As of v4.2.2, there is support for clone and creating new VM using the scripting interface. |
Can you point me to docs for the scripting interface? I'm looking at hacking up a vagrant plugin to use utm instead of vBox to get local development working again for my team (M1 hw, but our target OS is x86_64) |
@greeneg open the Script Editor app, File -> Open Dictionary -> UTM.app |
Thanks! |
@greeneg We're using this applescript to be able to use UTM inside CI for deletion as a workaround: on run argv
tell application "UTM"
set vm_name to item 1 of argv
delete virtual machine named vm_name
log "Deleted '" & vm_name & "'"
end tell
end run osascript ${currentDir}/delete.oascript vm-name |
I did look in the backlog for this, and was surprised to see it hadn't been mentioned yet (apologies if I've missed something). As far as I can tell, it's not possible to create new clones via the CLI. For an unattended CI system (for example), that makes UTM unusable.
It would be really nice if I could make clones with
utmctl
. Or, if there is a workaround, such as copying the files in~/Library/Containers/com.utmapp.UTM/Data/Documents
and somehow registering the VM with UTM so that it would show up inutmctl list
etc.The text was updated successfully, but these errors were encountered: