UTM icon indicating copy to clipboard operation
UTM copied to clipboard

scripting: add qemu additional arguments

Open naveenrajm7 opened this issue 1 year ago • 0 comments

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

naveenrajm7 avatar Oct 12 '24 20:10 naveenrajm7