M1 Mac 适用的轻量 Linux VM
資深大佬 : gyf304 12
Apple 有一个 Virtualization.framework 可以直接启动 Linux VM 。做了一个简单的 wrapper 来启动+管理 VM,自己正在用。
见: https://github.com/gyf304/vmcli
Repo 里有安装教程,需要你已经安装了 XCode 。 用安装教程创建 Ubuntu VM 需要你已经有 ~/.ssh/id_rsa.pub,没有可以自己用 ssh-keygen 生成一个。
安装完用起来大概是这么一个效果:
[email protected] ~ % vmctl start ubuntu [email protected] ~ % vmctl ssh ubuntu Welcome to Ubuntu 20.04.1 LTS (GNU/Linux 5.4.0-60-generic aarch64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Thu Jan 14 16:42:30 UTC 2021 System load: 0.0 Processes: 96 Usage of /: 35.6% of 3.85GB Users logged in: 0 Memory usage: 17% IPv4 address for enp0s1: 192.168.64.12 Swap usage: 0% ...
大佬有話說 (15)