在win10系统上安装multipass 工具
Note: You need Windows 10 Pro/Enterprise/Education v 1803 or later, or any Windows 10 with VirtualBox
1. 准备win10系统后,具体详细信息可以参照如下连接
https://multipass.run/?_ga=2.268960689.1188883684.1632817244-1002505085.1631862823
2. 首先安装multipass 工具
安装multipass,下载地址如下:
https://multipass.run/download/windows
安装之后需要重新启动后生效,我是采用HYPER-V管理器,未安装VirtualBox;Hyper-V管理器如下:
3. 打开win10 自带的powershell 工具
4. 启动一个ubuntu LTS 历程
首先看一下multipass help 查看一下当前支持命令情况:
4.1 Launch an instance (by default you get the current Ubuntu LTS)
multipass launch --name primary
4.2 Run commands in that instance, try running bash (logout or ctrl-d to quit)
multipass exec primary -- lsb_release -a
4.3 Pass a cloud-init metadata file to an instance on launch. See using cloud-init with multipass for more details
multipass launch -n primary --cloud-init cloud-config.yaml
4.4 See your instances
multipass list
4.5 Stop and start instances
multipass stop primary
multipass start primary
4.6 Clean up what you don’t need
multipass delete primary
multipass purge
4.7 Find alternate images to launch with multipass
multipass find
4.8 Get help
multipass help
multipass help <command>
5. 以上我们也可以采用Hyper-V管理器进行操作
右键-> 【关闭】…
6. 接下来我们multipass shell 进入系统
multipass shell
7. 然后可以配置gerrit,配置环境,下载代码编译代码
8. 和win10共享C:
9. 更改内存大小
10.更改CPU个数
11.由于默认再C盘,所以需要移动的其他盘符,转移multipass到其他硬盘
右键->[移动] 按步骤移动到自己想放的地方