Skip to content
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

scripting: add qemu additional arguments #6741

Merged
merged 3 commits into from
Nov 21, 2024
Merged

Conversation

naveenrajm7
Copy link
Contributor

@naveenrajm7 naveenrajm7 commented Oct 12, 2024

Fixes #6661

read and update qemu additional argument of vm config

Usage:

tell application "/Users/xxx/UTM.app"
  set vm to virtual machine named "VM"
  set config to configuration of VM
  
  -- read  qemu additional arguments 
  set qemuAddArgs to qemu additional arguments of config

  -- add
  set newArg to {{argument string:"-vnc 127.0.0.1:1"}}
  set qemuAddArgs to qemuAddArgs & newArg
  
  -- update 
  set qemu additional arguments of config to qemuAddArgs
  update configuration of vm with config
end tell

This will enable to launch VMs with custom qemu args via APIs
Related #5211

read and update qemu additional argument of vm config
Avoid using reserved keyword in AppleScript as property name
@osy osy added this to the v4.6 milestone Nov 20, 2024
Scripting/UTM.sdef Outdated Show resolved Hide resolved
If file urls were be supported, handle file permissions before use (app sandbox)
@osy osy merged commit 8a35d03 into utmapp:main Nov 21, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scripting: Add qemu additional arguments
2 participants