157 字
1 分钟
MacOS | Multipass 使用总结
> brew install multipass
> sudo multipass set local.driver=hyperkit
> sudo multipass set client.gui.autostart=false
> sudo multipass launch -c 2 -d 5G -m 4G -n primary
> sudo multipass shell primary
> sudo multipass stop primary
> sudo multipass delete primary # delete
> sudo multipass purge primary # purge
> sudo multipass delete -p primary # delete and purge
> sudo multipass info --all # 显示vm信息
> sudo multipass mount 主机目录 primary:Home
> sudo multipass umount primary:Home
总结
multipass
: 客户端, 类似docker
multipassd
: 服务端, 类似dockerd
docker daemon程序
文件存储位置: /var/root/Library/Application\ Support
下的multipass
, multipassd
文件夹下.
sudo cat /var/root/Library/Application\ Support/multipassd/multipassd-vm-instances.json
- 日志位置:
/Library/Logs/Multipass
问题
- 日志显示
[macos] crash on startup due to "Invalid MAC address"
可以将/var/root/Library/Application\ Support/multipassd/multipassd-vm-instances.json
文件删除或者重命名.
MacOS | Multipass 使用总结
https://fuwari.vercel.app/posts/blogs/multipass/