安裝lima的default.yaml瞭郑,即containerd和nerdctl
一、一直卡在sshfs的安裝過(guò)程中厚宰,手動(dòng)登錄虛機(jī)魂角,執(zhí)行sudo apt-get install sshfs即可,重啟虛機(jī)繼續(xù)安裝
INFO[0031] [hostagent] Waiting for the essential requirement 3 of 5: "sshfs binary to be installed"
二尚猿、一直卡在user_allow_other這一步窝稿,待執(zhí)行失敗超時(shí)失敗后,手動(dòng)登錄lima shell default凿掂,修改/etc/fuse.conf文件伴榔,去掉user_allow_other注釋,然后停止虛機(jī)庄萎,重新啟動(dòng)安裝
INFO[0032] [hostagent] Waiting for the essential requirement 4 of 5: "/etc/fuse.conf to contain \"user_allow_other\""
二踪少、安裝完成后,在mac上執(zhí)行nerdctl.lima時(shí)糠涛,報(bào)如下錯(cuò)誤時(shí)援奢,繼續(xù)登錄虛機(jī)執(zhí)行containerd-rootless-setuptool.sh install,如果安裝過(guò)程中報(bào)[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
忍捡,執(zhí)行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
三、通過(guò)brew install lima后砸脊,執(zhí)行l(wèi)imactl start報(bào)錯(cuò) [hostagent] accelerator "hvf" is not supported by /opt/homebrew/bin/qemu-system-xxx
# 參考文檔手動(dòng)編譯安裝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
# 手動(dòng)拷貝qemu到/opt/homebrew/bin/下
sudo cp qemu* /opt/homebrew/bin/
# 再次運(yùn)行正常