sudo qemu-img resize multipass
硬盘扩容

sudo qemu-img resize /var/snap/multipass/common/data/multipassd/vault/instances/ubuntu/ubuntu-20.04-server-cloudimg-amd64.img +5G

Image resized.

安装multipass

sudo snap install multipass

查看版本

multipass version

multipass 1.8.0
multipassd 1.8.0

运行实例

multipass launch --name ubuntu

启动实例

multipass start ubuntu

查看状态

multipass info ubuntu

Name: ubuntu
State: Running
IPv4: 10.16.232.162
Release: Ubuntu 20.04.4 LTS
Image hash: 3d7282d3e92b (Ubuntu 20.04 LTS)
Load: 2.88 2.31 1.01
Disk usage: 4.5G out of 9.5G
Memory usage: 426.9M out of 976.8M
Mounts: --

进入实例

multipass shell ubuntu
本文链接地址:https://const.net.cn/664.html

标签: none

添加新评论