Install multipass on MacOS.
Launch a terminal and run below commands.
% multipass list
No instances found.
% multipass find
Image Aliases Version Description
snapcraft:core18 18.04 20201111 Snapcraft builder for Core 18
snapcraft:core20 20.04 20210921 Snapcraft builder for Core 20
snapcraft:core22 22.04 20220426 Snapcraft builder for Core 22
18.04 bionic 20221207 Ubuntu 18.04 LTS
20.04 focal 20221201 Ubuntu 20.04 LTS
22.04 jammy,lts 20221201 Ubuntu 22.04 LTS
...
% multipass launch jammy
Launched: cleansing-willet
% multipass list
Name State IPv4 Image
cleansing-willet Running 192.168.64.2 Ubuntu 22.04 LTS
% multipass shell cleansing-willet
Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-56-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Mon Dec 12 00:10:36 IST 2022
System load: 0.189453125 Processes: 103
Usage of /: 30.4% of 4.67GB Users logged in: 0
Memory usage: 22% IPv4 address for enp0s2: 192.168.64.2
Swap usage: 0%
0 updates can be applied immediately.
The list of available updates is more than a week old.
To check for new updates run: sudo apt update
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
ubuntu@cleansing-willet:~$ sudo apt update
...
ubuntu@cleansing-willet:~$ sudo apt install ubuntu-desktop xrdp
...
ubuntu@cleansing-willet:~$ exit
logout
% multipass stop cleansing-willet
% multipass list
Name State IPv4 Image
cleansing-willet Stopped -- Ubuntu 22.04 LTS