Replies: 6 comments
-
The same happens if I try to use utmctl. It does not find my VM. ![]() |
Beta Was this translation helpful? Give feedback.
-
For the
You then need to start by using the UUID (first column), like:
And did you give Terminal special 'privacy' access the first time you ran |
Beta Was this translation helpful? Give feedback.
-
On my machine Script Editor says for this script: tell application "UTM"
get name of every virtual machine
end tell as result:
And this then starts that VM: tell application "UTM"
set vm to virtual machine "Windows 11 ARM64"
start vm
end tell I think you should able to get your Apple Script to work now. I am using UTM 4.6.4, and loaded the 'dictionary' of this App from File → Open Dictionary… I have to say that even using Even the |
Beta Was this translation helpful? Give feedback.
-
Possibly AppleScript interfacing, Apple's HyperVisor Framework, or something else that UTM / qemu uses, needs a longer time to start up? Seems odd, but that could be a possibility. I notice that when UTM is stopped, it sometimes also doesn't listen to the Did you try something like:
To just start UTM first? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I notice that when running it at random times (not at boot), with UTM closed, and a delay of 1 second, the start vm command doesn't work very stable. Sometimes the VM window does pop up, but the VM does not start. My guess is also that there is some delay between UTM starting, and the virtual machine list being fully populated. I suppose UTM could pause processing |
Beta Was this translation helpful? Give feedback.
-
Describe the issue
I am trying to start my VM automatically on boot with a short Apple script:
But it does not find my VM, neither by name or ID. See attached screenshot below.
It only works the first time I rename my VM, but after that it no longer recognizes the name or ID.
Configuration
If Apple Script (w/ .plist in launchagents folder) is not the best option to automatically start a VM on boot what other options do I have?
Beta Was this translation helpful? Give feedback.
All reactions