安装lima的default.yaml,即containerd和nerdctl
一、一直卡在sshfs的安装过程中,手动登录虚机,执行sudo apt-get install sshfs即可,重启虚机继续安装
INFO[0031] [hostagent] Waiting for the essential requirement 3 of 5: "sshfs binary to be installed"
二、一直卡在user_allow_other这一步,待执行失败超时失败后,手动登录lima shell default,修改/etc/fuse.conf文件,去掉user_allow_other注释,然后停止虚机,重新启动安装
INFO[0032] [hostagent] Waiting for the essential requirement 4 of 5: "/etc/fuse.conf to contain \"user_allow_other\""
二、安装完成后,在mac上执行nerdctl.lima时,报如下错误时,继续登录虚机执行containerd-rootless-setuptool.sh install,如果安装过程中报[rootlesskit:parent] error: failed to setup UID/GID map: newuidmap 1733 [0 1515187040 1 1 100000 65536] failed: : exec: "newuidmap": executable file not found in $PATH
,执行sudo apt-get install uidmap。
rootless containerd not running? (hint: use
containerd-rootless-setuptool.sh installto start rootless containerd): stat /run/user/1515187040/containerd-rootless: no such file or directory
三、通过brew install lima后,执行limactl start报错 [hostagent] accelerator "hvf" is not supported by /opt/homebrew/bin/qemu-system-xxx
# 参考文档手动编译安装qemu,https://www.sevarg.net/2021/01/09/arm-mac-mini-and-boinc/
git clone https://gitlab.com/qemu-project/qemu.git
git checkout v7.2.0
mkdir build
cd build
../configure --target-list=aarch64-softmmu,x86_64-softmmu,i386-softmmu --enable-cocoa
make -j 8
# 手动拷贝qemu到/opt/homebrew/bin/下
sudo cp qemu* /opt/homebrew/bin/
# 再次运行正常