当前位置:网站首页>Creating virtual machines using multipass

Creating virtual machines using multipass

2021-11-25 18:19:21 Li Weiwei

Official website :https://multipass.run/

  • Show all virtual machines
multipass list 
multipass stop primary
multipass delete primary

Create a virtual machine

  • Default
multipass launch --name foo
  • Specify core and memory
multipass launch -n bar -c 4 -m 4G -d 40G
multipass launch -n vm01 -c 4 -m 4G -d 40G

Modify the configuration ( File address ):

sudo vim /var/root/Library/Application\ Support/multipassd/multipassd-vm-instances.json

/var/root/Library/Application Support/multipassd/multipassd-vm-instances.json

Use command df -h View hard disk space .

image.png

df -h, After modification :

image.png

Building mapping

multipass mount /Users/liweiwei1419/share vm01:/home/ubuntu/data

Reference material :

multipassd modify CPU Number and disk memory :https://www.atpeaz.com/change...

according to Change Multipass instance memory and CPU allocation after launch Modify the configuration :
step 1:
sudo launchctl unload /Library/LaunchDaemons/com.canonical.multipassd.plist
step 2:
sudo vi /var/root/Library/Application\ Support/multipassd/multipassd-vm-instances.json
step 3:
sudo launchctl load /Library/LaunchDaemons/com.canonical.multipassd.plist
cat /proc/cpuinfo | grep processor | wc -l

版权声明
本文为[Li Weiwei]所创,转载请带上原文链接,感谢
https://chowdera.com/2021/11/20211109101113000w.html

随机推荐