# 先停止 multipassd 服务
sudo launchctl unload /Library/LaunchDaemons/com.canonical.multipassd.plist
# 修改配置文件
sudo su
vim /var/root/Library/Application\ Support/multipassd/qemu/multipassd-vm-instances.json
# 再启动 multipassd
sudo launchctl load /Library/LaunchDaemons/com.canonical.multipassd.plist
配置文件的格式应该很容易理解:
{
"primary": {
"deleted": false,
"disk_space": "10737418240",// 10G
"mac_addr": "52:54:00:5d:ed:45",
"mem_size": "4294967296",//4096M
"metadata": {
},
"mounts": [
],
"num_cores": 2,
"ssh_username": "ubuntu",
"state": 0
}
}