Macos

Prerequisites

1. Check & Install Homebrew

Check if Homebrew is installed:

 brew --version

If not installed, run the following:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Add Homebrew to your PATH:

echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zshrc
source ~/.zshrc

Verify Installation

 brew doctor

Update Homebrew (recommended):

brew update

2. Check & Install Lima

Check if Lima is installed:

If not installed, install Lima using Homebrew:

Start the default virtual machine:

3. Access Virtual Machine Shell

Access Lima shell with root privileges:

Register nodeCN

If successful, the following message will be displayed:

5. Manage Lima Virtual Machine

Do not stop the VM while the node is active.

Stop the virtual machine:

Check VM status:

Delete the virtual machine:

Last updated