Nmmapper.com

Menu

Last update on .

Multipass orchestrates virtual Ubuntu instances

Multipass is a mini-cloud on your workstation using native hypervisors of all the supported plaforms (Windows, macOS and Linux).

Multipass is a mini-cloud on your workstation using native hypervisors of all the supported plaforms (Windows, macOS and Linux), it will give you an Ubuntu command line in just a click (“Open shell”) or a simple multipass shell command, or even a keyboard shortcut. Find what images are available with multipass find and create new instances with multipass launch.

 

You can initialize instances through cloud-init as you normally would on all the clouds Ubuntu is supported on, just pass the configuration to multipass launch --cloud-init.

 

Accessing files from your host machine is supported through the multipass mount command, and to move files between the host and instances, you can use multipass transfer.

How to Install Multipass on Linux(Debian, Ubuntu and more)

Multipass for Linux is published as a snap package, available on the Snap Store. Thanks to that it’s available for most major Linux distributions. Once you have snaps running on your distribution installing Multipass is as easy as:

$ snap install multipass --classic

For architectures other than amd64, you’ll need the beta channel at the moment.

You can also use the edge channel to get the latest development build:

$ snap install multipass --edge --classic

Make sure you’re part of the group that Multipass gives write access to its socket (sudo in this case, but it may also be adm or admin, depending on your distribution):

$ ls -l /var/snap/multipass/common/multipass_socket
srw-rw---- 1 root sudo 0 Dec 19 09:47 /var/snap/multipass/common/multipass_socket
$ groups | grep sudo
adm cdrom sudo dip plugdev lpadmin

You can check some details about the snap with the snap info command:

$ snap info multipass
name:      multipass
summary:   Ubuntu at your fingertips
publisher: Canonical✓
license:   unset
description: |
  Multipass gives you Ubuntu VMs in seconds. Just run `multipass launch` and it'll do all the setup
  for you. Check out `multipass find` for a list of available images. More details you can find
  under `multipass help`.
commands:
  - multipass
  - multipass.virsh
services:
  multipass.libvirt-bin: simple, enabled, inactive
  multipass.multipassd:  simple, enabled, active
snap-id:      mA11087v6dR3IEcQLgICQVjuvhUUBUKM
tracking:     beta
refresh-date: today at 10:45 CEST
channels:                                     
  stable:    –                                
  candidate: –                                
  beta:      2018.10.1            (461) 104MB classic
  edge:      2018.10.1-3-g3dd85ff (464) 105MB classic
installed:   2018.10.1            (461) 104MB classic

Once installed, you can use multipass launch to create your first instance. Have a look at Working with instances to get started!.

How to Install Multipass on macOS

Prerequisites on mascOS

Hypervisor.framework / hyperkit

The default backend on macOS is hyperkit, wrapping Apple’s Hypervisor.framework. You need macOS Yosemite, version 10.10.3 or later installed on a 2010 or newer Mac.

VirtualBox

Multipass also supports using VirtualBox as a virtualization provider. You can download the latest version and check the requirements on the VirtualBox website.

Installation

To install Multipass on macOS, you have two options: the installer package or brew:

Installer

Download the latest installer from our GitHub releases page - it’s the .pkg package.

If you want Tab completion on the command line, install bash-completion from brew first.

Activate the downloaded installer and it will guide you through the steps necessary. You will need an account with Administrator privileges to complete the installation.

 

There’s a script to uninstall:

$ sudo sh "/Library/Application Support/com.canonical.multipass/uninstall.sh"

Brew

Have a look at brew.sh on instructions to install Brew itself. Then, it’s a simple:

$ brew cask install multipass

To uninstall:

$ brew cask uninstall multipass
# or
$ brew cask zap multipass # to destroy all data, too

First run

Once installed, open the Terminal app and you can use multipass launch to create your first instance.

If you’d like to use VirtualBox, run:

$ sudo multipass set local.driver=virtualbox

With multipass version you can check which version you have running:

$ multipass version
multipass 1.0.0+mac
multipassd 1.0.0+mac

 

How to Install Multipass for Windows

Downloading

To get Multipass for Windows, download the latest installer from our GitHub releases page - it’s the .exe file.

Prerequisites

Hyper-V

Only Windows 10 Pro or Enterprise, version 1803 (“April 2018 Update”) or later is currently supported. It’s due to the right version of Hyper-V only being available on those versions.

VirtualBox

Multipass also supports using VirtualBox as a virtualization provider. You can download the latest version here.

Installation

Make sure the network you’re connected to is marked Private (which really means Trusted), otherwise Windows will prevent Multipass from starting. We’re working on resolving that issue.

Run the installer and it will guide you through the steps necessary. You will need to allow the installer to gain Administrator privileges.

You will need either Hyper-V enabled (only Windows 10 Professional or Enterprise), or VirtualBox installed.

First run

Multipass defaults to using Hyper-V as it’s virtualization provider. If you’d like to use VirtualBox, start either Command Prompt (cmd.exe) or PowerShell as Administrator and run:

C:\WINDOWS\system32> multipass set local.driver=virtualbox

Now, to run normal Multipass commands, open either Command Prompt (cmd.exe) or PowerShell as your regular user and you can use multipass launch to create your first instance.

With multipass version you can check which version you have running:

$ multipass version
multipass  v1.0.0+win
multipassd v1.0.0+win

 

 

From our friends

Similar entries

Comments

Comments are closed.