44 Commits
Author SHA1 Message Date
user d5402b7735 utmctl: support booting into recovery mode 2025-04-16 12:16:49 +02:00
osy 2b86f67d99 Merge pull request #6978 from naveenrajm7/script-display
scripting: expose display config
2025-04-07 16:06:09 -07:00
osy 3dfcddcc79 Merge pull request #6977 from naveenrajm7/script-sandbox-path
scripting : add vm registry suite
2025-04-07 16:05:44 -07:00
Naveenraj M 77a36173cc scripting: expose display config
qemu display
- All fields , except vga ram is exposed
apple display
- only dynamic resolution property is exposed.
- From GUI , the height, width and pixel of resolution is in pre-defined ratio as hence not exposed.

Both display will have id, which can be used to track and ditach the displays.
2025-01-19 02:17:17 -07:00
Naveenraj M f57fe2ef64 scripting: add vm resgistry suite
The registry suite is used to read and update vm registry.
All configs saved to disk is exposed by Configuration suite,
similarly those that are not saved to disk are stored in RegistryEntry
 will now be exposed by Registry suite.
  - UTMScriptingRegistryEntryImpl will control what will be exposed from RegistryEntry to scripting bridge, currently only shared directory is exposed in the form of [URL]
  - expose UTMQemuVirtualMachine.system as public to be used in Scripting
  - Add UTMRegistryEntry.appendSharedDirectory to support multiple directory shares.
2025-01-18 16:55:32 -07:00
Naveenraj M f0cf825c22 scripting: add file urls to qemu additional arguments
* file urls is a list of file
* file urls are not saved to the disk (config.plist)
* QEMU launcher looks at file urls of args to collect required resources
* QEMU uses file URLs to access its corresponding bookmark
* The permissions of these urls is not handled as part of config update (ConfigImpl) , they should be handled at VM level(VMImpl) to update registryEntry of each VM
2025-01-17 17:30:50 -07:00
Naveenraj M 26fe0de354 scripting: expose icon in config
* Allows to get/set built-in icons
iconURL is URL in UTMConfig, but stored as string in config.plist, same is done for scripting interface.
2024-12-22 23:31:12 -07:00
osy 8a35d037bc Merge pull request #6741 from naveenrajm7/qemu-args
scripting: add qemu additional arguments
2024-11-21 09:39:24 -08:00
osy 6093498b44 utmctl: remove Export command because it cannot work in sandbox 2024-11-21 09:37:55 -08:00
Naveenraj M f101cceca0 scripting: drop file urls from qemu arguments
If file urls were be supported, handle file permissions before use (app sandbox)
2024-11-20 20:29:12 -07:00
osy f11cda7a3b Merge branch 'main' into utm-import 2024-11-20 11:32:16 -08:00
Naveenraj M 7c8f656592 scripting: change property name
Avoid using reserved keyword in AppleScript as property name
2024-10-12 22:03:57 -06:00
Naveenraj M a4a79fea7c scripting: add qemu additional arguments
read and update qemu additional argument of vm config
2024-10-12 14:08:49 -06:00
Naveenraj M bfecac3ca3 scripting: add import command
import new vm from a file
2024-10-09 21:13:34 -06:00
Naveenraj M 05065625bf scripting: add export command 2024-10-04 01:33:50 -06:00
osy 2724075c57 scripting: fix missing retain on scripted object
Fixes #5963
2024-03-30 17:38:34 -07:00
osy 8d7b51b878 utmctl: implement USB commands
Resolves #5157
2023-09-04 20:49:43 -07:00
osy 1193b80725 scripting: add support for USB operations 2023-09-04 19:39:50 -07:00
osy e65578fe07 Merge pull request #5357 from MMP0/patch-1
Fix string format + Update Japanese localization
2023-07-03 09:16:56 -05:00
osy 37991d246f vm: rewrite UTMVirtualMachine in Swift 2023-06-28 19:45:05 -05:00
osy d498239b38 data: refactor UTMVirtualMachine to VMData for use in Views
This replaces the functionality of UTMWrappedVirtualMachine and moves some of
the presentation logic from UTMVirtualMachine.
2023-06-26 23:28:18 -05:00
osy 03d200422f manager: factor out QEMUKit as a separate project 2023-06-25 08:43:05 -05:00
MMP0 97976bd1ea Fix string format 2023-06-02 20:54:53 +09:00
osy 9db50536f9 scripting: fix target always resetting 2023-03-20 12:00:54 -07:00
osy ed1dde8822 scripting: simplified drives and support updating existing drive source 2023-03-20 12:00:11 -07:00
osy 2bd691eae0 scripting: moved create command to its own handler 2023-03-19 21:11:22 -07:00
osy cd96e525a3 scripting: implement delete and duplicate commands 2023-03-19 21:11:22 -07:00
osy fc5f04b66c scripting: updated codes to be more consistent 2023-03-19 21:11:22 -07:00
osy bf06ddce3a scripting: remove duplicate properties that are in configuration 2023-03-19 21:11:22 -07:00
osy 1d42ceb7fe scripting: add make virtual machine 2023-03-19 21:11:22 -07:00
osy 4b4b33d10a scripting: add configuration suite 2023-03-19 21:11:22 -07:00
osy 137b74901e scripting: fix double-close on push file 2023-03-14 13:36:48 -07:00
osy 22e7e4284d scripting: add guest suite
Support read/write files and execute commands via QEMU guest agent.
2023-03-14 01:39:20 -07:00
osy 9d6e59f5ef utmctl: update help text for commands 2023-01-03 19:12:11 -08:00
osy 917ccf9c74 scripting: return error when trying to suspend or stop a non-running vm
Fixes #4884
2023-01-03 18:32:08 -08:00
osy bd5de65406 scripting: use the right error description override 2023-01-03 18:29:00 -08:00
osy 085366e70f utmctl: fix stop request not working
Fixes #4850
2022-12-27 16:36:00 -08:00
osy 2daa38ac35 scripting: add support for disposible mode 2022-12-16 13:58:25 -08:00
osy b7e4d2a627 scripting: localize error text 2022-12-15 18:17:24 -08:00
osy 4a08edbd41 utmctl: support auto-hiding main window 2022-12-15 13:55:11 -08:00
osy 1b48c64967 scripting: properly create vm window on start 2022-12-14 22:35:46 -08:00
osy 8839b605ea utmctl: rewrote to use scripting bridge 2022-12-14 22:35:46 -08:00
osy 7e71fefb1e scripting: fix various issues running scripts 2022-12-14 18:44:15 -08:00
osy d2b488b6a5 scripting: add scripting bridge support 2022-12-14 09:16:07 -08:00