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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

naveenrajm7
Copy link

@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
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
1 participant