Skip to content

Make it possible to start UTM on macOS boot without having to login #7638

@proski

Description

@proski

When UTM is used to run VMs that are part of IT infrastructure, it should start on boot automatically. If the host is restarted e.g. due to power failure or a security update, sysadmins should not be required to log in to every host and start every VM manually.

For UTM to start on boot, it should be run by launchd as a daemon, defined in /Library/LaunchDaemons. That is not currently working.

Reasons not to just use QEMU:

  • If a VM was created in UTM, it is less risky to keep it running in UTM rather than switch to QEMU.
  • VMs using Apple Virtualization Framework cannot be converted to QEMU images. UTM doesn't currently support the conversion.
  • Apple Virtualization Framework may be preferred for some workloads.

I'm aware of previous requests to start UTM on boot (#4179), but in that case the requester settled on starting UTM on login. I also see PRs attempts to control UTM in a headless way (#5081). This issue it about UTM itself starting in a headless way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions