Try to use multipass

2024-03-04
2021-11-16

On macOS, you can use the virtual environment of the different OS using Multipass.

Installation

terminal

$ brew install --cask multipass

Create the virtual environment

  • CPU Core: 2
  • RAM: 8GB
  • ROM: 20GB

terminal

$ multipass launch -c 2 -m 8G -d 20G -n <environment's name>

If you don't use these options, the default option below is used.

  • CPU Core: 1
  • RAM: 1GB
  • ROM: 5GB

Status of the virtual environment

terminal

$ multipass info <environment's name>
Name:           <environment's name>
State:          Running
IPv4:           192.168.64.3
Release:        Ubuntu 20.04.3 LTS
Image hash:     939be728cbc7 (Ubuntu 20.04 LTS)
Load:           0.24 0.07 0.02
Disk usage:     1.3G out of 19.2G
Memory usage:   157.7M out of 7.8G
Mounts:         --

Usage for the console

terminal

$ multipass shell <environment's name>