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

The previous method to auto start VM through MacOS shortcut app at boot no longer works in most recent update of UTM #6346

Closed
EagleDTW opened this issue May 12, 2024 · 8 comments

Comments

@EagleDTW
Copy link

EagleDTW commented May 12, 2024

Describe the issue
The previous method to auto start VM through MacOS shortcut app at boot no longer works in most recent update of UTM. before you'd list a URL of "utm=start?name=VM_ID" but this no longer actually starts the VM just sits there and asks for permission and even allowing and re-executing does nothing

Configuration

  • UTM Version: 4.5.2
  • macOS Version: 14.4.1
  • Mac Chip (Intel, M1, ...): M2 Pro

Crash log
N/A

Debug log
N/A - no syslog or debug in the VM the shortcut app fails silently.

Upload VM
N/A - happens across all VMs not VM dependent.
Screenshot 2024-05-12 at 4 11 08 PM

@osy
Copy link
Contributor

osy commented May 12, 2024

Please refer to the release notes. The URL scheme has been removed due to security concerns (#6155). You are advised to use the utmctl tool or the Apple Script interface.

@osy osy closed this as not planned Won't fix, can't repro, duplicate, stale May 12, 2024
@EagleDTW
Copy link
Author

EagleDTW commented May 13, 2024 via email

@osy
Copy link
Contributor

osy commented May 13, 2024

Run /Applications/UTM.app/Contents/MacOS/utmctl to see how to use the CLI. Then in Shortcuts use the Run Shell Script action to run your action.

@EagleDTW
Copy link
Author

EagleDTW commented May 13, 2024 via email

@EagleDTW
Copy link
Author

EagleDTW commented May 13, 2024 via email

@PeteKraft
Copy link

@osy could the manual also be updated to reflect this change ?
https://docs.getutm.app/advanced/remote-control/

@mol
Copy link

mol commented Oct 9, 2024

Hi Osy, This works in shortcuts and in terminal, but not on startup login shortcut shell script: /Applications/UTM.app/Contents/MacOS/utmctl start HAOS Says that it can't find the VM location...Is there something better to use such as UUID and how do you find this for the VMs? Thanks, Daniel

On May 12, 2024, at 7:06 PM, osy @.***> wrote: Run /Applications/UTM.app/Contents/MacOS/utmctl to see how to use the CLI. Then in Shortcuts use the Run Shell Script action to run your action. — Reply to this email directly, view it on GitHub <#6346 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO66X5XPR3I44SGQUWUEJC3ZCANZVAVCNFSM6AAAAABHTFUJ6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBWGUYDOMZTGE. You are receiving this because you authored the thread.

I have the same issue. It works fine in Shortcuts, where it opens UTM and then starts the VM, but when run as an app it opens UTM then says 'Error: Virtual machine not found.'

@tmenguy
Copy link

tmenguy commented Oct 29, 2024

Same for me too ... it works when running the shortcut "inside" the shortcut app , but fails when using the shortcut directly with the error "Error: Virtual machine not found."
It works when I click "run as root" in the script step in the shortcut ... but unfortunately at boot when my shortcut is run ... it is not working as it asks for my root password at startup, it defeat the purpose of this being launched at startup for a server ....

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

No branches or pull requests

5 participants