Start macOS VM in Recovery Mode via prlctl

Discussion in 'macOS Virtual Machine' started by mattlqx, May 18, 2023.

  1. mattlqx

    mattlqx Bit poster

    Messages:
    8
    When I am programmatically creating base VM images, I want to be able to start macOS in Recovery Mode, so that I can automate disabling SIP.
    Context: we produce a lot of images routinely for automated testing and development and need SIP disabled to run unsigned extensions. Being able to start the VM in recovery mode reliably makes this one part of the process easier.
     
    MatthewR20 and StanislavZ like this.
  2. Carlos Lapao

    Carlos Lapao Parallels Team

    Messages:
    7
    Best Answer
    Hello,

    To start a VM in recovery mode, you need to utilize the command line client, `prlctl`. Here's the precise command:

    Code:
    prlctl start <vmname> --recovery-mode
    Please replace `<vmname>` with the actual name of your VM. Running this command will initiate your VM in recovery mode.
    Once the VM has started in recovery mode, you can disable the SIP.
    Please don't hesitate to reach out if you encounter any issues during this process.
     
  3. mattlqx

    mattlqx Bit poster

    Messages:
    8
    Oh great, I didn't realize this was a thing as it's not listed in the prlctl help output. Thank you!
     
  4. Carlos Lapao

    Carlos Lapao Parallels Team

    Messages:
    7
    We are writing a KB to improve that and will also take notes to enhance the help output. Thank you for the feedback. please feel free to reach out in case you need further help.
     

Share This Page