Canonical released multipass 1.0, a toolkit for deploying Ubuntu in virtual machines.

Canonical introduced the first stable release of the toolkit multipass 1.0, designed to simplify the installation of various versions of Ubuntu in virtual machines running on Linux, Windows, and macOS virtualization systems. Multipass allows developers to launch the desired version of Ubuntu in a virtual machine with a single command and without additional configuration, making it ideal for experiments or testing their applications. To run the virtual machine on Linux, KVM is used; on Windows, Hyper-V; and on macOS, HyperKit. It is also possible to use VirtualBox to run virtual machines. The project's code is written in C++ and is distributed is licensed under GPLv3. For quick installation of multipass in Ubuntu, a snap package.

Multipass automatically retrieves the necessary operating system image and keeps it up to date. cloud-init can be used for configuration. There is an option to mount external disk partitions into the virtual environment (the multipass mount command), as well as tools for transferring individual files between the host system and the virtual machine (multipass transfer). The user's home directory is automatically mounted in the virtual machine as ~/Home. Full integration with the main desktop is supported (application icons, system menus, and notifications are added).

Example session in multipass:

Searching for available images:

$ multipass find
Image Aliases Version Description
core core16 20190424 Ubuntu Core 16
core18 20190213 Ubuntu Core 18
16.04 xenial 20190628 Ubuntu 16.04 LTS
18.04 bionic,lts 20190627.1 Ubuntu 18.04 LTS
18.10 cosmic 20190628 Ubuntu 18.10
19.04 disco 20190628 Ubuntu 19.04
daily:19.10 devel,eoan 20190623 Ubuntu 19.10

Launching the current Ubuntu LTS release in VM:

$ multipass launch ubuntu
Launching dancing-chipmunk…
Downloading Ubuntu 18.04 LTS……….
Launched: dancing chipmunk

Viewing the list of running VMs:

$ multipass list
Name State IPv4 Release
dancing-chipmunk RUNNING 10.125.174.247 Ubuntu 18.04 LTS
live-naiad RUNNING 10.125.174.243 Ubuntu 18.04 LTS
snapcraft-asciinema STOPPED — Ubuntu Snapcraft builder for Core 18

Getting detailed information about the running VM

$ multipass info dancing-chipmunk
Name: dancing-chipmunk
State: RUNNING
IPv4: 10.125.174.247
Release: Ubuntu 18.04.1 LTS
Image hash: 19e9853d8267 (Ubuntu 18.04 LTS)
Load: 0.97 0.30 0.10
Disk usage: 1.1G out of 4.7G
Memory usage: 85.1M out of 985.4M

Connecting to a shell command in the VM

$ multipass shell dancing-chipmunk
Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-42-generic x86_64)
#

Running the command "lsb_release -a" in the VM environment:

$ multipass exec dancing-chipmunk — lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic

Stopping the VM:

$ multipass stop dancing-chipmunk

Removing the VM:

$ multipass delete dancing-chipmunk

Name State IPv4 Release
snapcraft-asciinema STOPPED — Ubuntu Snapcraft builder for Core 18
dancing-chipmunk DELETED — Not Available

Cleaning up remote VMs from disk

$ multipass purge

Source: opennet.ru

Buy reliable website hosting with DDoS protection, VPS VDS servers 🔥 Buy reliable website hosting with DDoS protection, VPS VDS servers | ProHoster