Parallels Desktop 虚拟机软件命令行

Parallels Desktop 是一款 mac os 平台的虚拟机软件

prlctl 命令

# 列出所有虚拟机
prlctl list -a

# 启停名为 Alpine 的虚拟机
prlctl start Alpine
prlctl stop Alpine 
prlctl stop Debian --kill   # 强制关机

# 列出名为 Alpine 的虚拟机的详细信息
prlctl list Alpine -i

# 设置名为 Alpine 的虚拟机开机启动 需要在系统‘完全磁盘访问权限’,给 `prl_client_app` 添加权限
prlctl set Alpine --autostart on

# 自动分配cpu与内存,默认256M
prlctl set "Alpine" --cpus auto  
prlctl set "Alpine" --memsize 256
prlctl set "Alpine" --memsize auto