Ubuntu25.04轻量虚拟机Multipass使用Shell脚本自动创建并启动不同版本Ubuntu并复制文件
1. 安装multipass
sudo snap install multipass
2.创建虚拟机实例
18.04
multipass launch bionic --name ubuntu1804_bionic --cpus 4 --memory 8G --disk 120G
20.04
multipass launch focal --name ubuntu2004focal --cpus 4 --memory 8G --disk 120G
22.04
multipass launch jammy --name ubuntu2204jammy --cpus 4 --memory 8G --disk 120G
查看所有适用镜像
在镜像中安装基础工具
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get insta