---
title: Using cloud-init with Multipass
description: This article originally appeared on Joshua Powers’ blog cloud-init +
  Multipass Multipass is a quick and easy way to launch virtual machine instances
  running Ubuntu. Cloud-init is the standard for customizing cloud instances and now
  Multipass can also make use of cloud-init to customize an instance during launch.
  Below is an example of lau […]
url: https://canonical.com/blog/using-cloud-init-with-multipass?format=md
---

1. [Blog](https://canonical.com/blog)
2. Article

---

[Joshua Powers](https://canonical.com/blog/author/powersj "More about Joshua Powers")

2 April 2018

# Using cloud-init with Multipass

[cloud-init](https://canonical.com/blog/tag/cloud-init)
[Multipass](https://canonical.com/blog/tag/multipass)
[Server](https://canonical.com/blog/tag/server)
[Virtual Machines](https://canonical.com/blog/tag/virtual-machines)
[VM](https://canonical.com/blog/tag/vm)

---

Share the article

*This article originally appeared on [Joshua Powers’ blog](https://powersj.github.io/post/cloud-init-multipass/)*

# cloud-init + Multipass

[Multipass](https://multipass.run/) is a quick and easy way to launch virtual machine instances running Ubuntu. [Cloud-init](https://cloud-init.io/) is the standard for customizing cloud instances and now Multipass can also make use of cloud-init to customize an instance during launch.

Below is an example of launching a new VM with cloud-init user-data:

```
multipass launch -n my-test-vm --cloud-init cloud-config.yaml
```

### user-data Format

Currently Multipass only supports YAML cloud-config files. Passing a script, a MIME archive, or any of the other [user-data formats](http://cloudinit.readthedocs.io/en/latest/topics/format.html) cloud-init supports will result in an error from the YAML syntax validator. Check out the cloud-init docs for [examples of YAML cloud-config](http://cloudinit.readthedocs.io/en/latest/topics/examples.html).

### YAML Syntax Validation

Multipass will validate the YAML syntax of the cloud-config file before attempting to start the VM! A nice addition to help save time when experimenting with launching instances with various cloud-configs.

### vendor-data

Multipass uses cloud-init to pass in vendor-data to setup the VM for access by the user. If the user overrides any of the required keys (e.g. packages, ssh\_authorized\_keys, users, etc.) in his or her user-data then Multipass will merge its own data so that the end-user will not lose access to the system.

If interested, a user can examine the executed user-data and vendor-data by looking at the files in `/var/lib/cloud/instances/`.

## Got Questions?

As always, you can chat with the cloud-init developers in #cloud-init on Freenode or email the [cloud-init mailing list](https://launchpad.net/~cloud-init).

The Multipass team is also on Freenode at #multipass and to view the code and report bugs check them out on [GitHub](https://github.com/CanonicalLtd/multipass).

[Get in touch

Interested in running Ubuntu in your organization?](https://ubuntu.com/about/contact-us/form)

## Sign up for our newsletter

Get the latest Canonical news and updates in your inbox.

Work email:

\*I agree to receive information about Canonical's
products and services.

By submitting this form, I confirm that I have read and agree to [Canonical's Privacy Policy](https://canonical.com/legal/dataprivacy).

Sign up

## Share on

---

## Related posts

[### A decade of Ubuntu on IBM Z and IBM LinuxONE](https://canonical.com/blog/a-decade-of-ubuntu-on-ibm-z-and-ibm-linuxone)

This year we celebrate a decade of Ubuntu Server support on the s390x architecture: marking a long-standing collaboration between Canonical and IBM that began at LinuxCon 2015....

[Pedro Lazzarotto](https://canonical.com/blog/author/pedro-lazzarotto)

12 June 2026

[### IBM LinuxONE 5 and Ubuntu Server, a great combination from day one](https://canonical.com/blog/ibm-linuxone-emperor-5-ubuntu-server-integration)

Today, IBM announced the launch of their latest server: the new IBM LinuxONE Emperor 5. This fifth generation redefines IBM’s LinuxONE system as their most secure and...

[Frank Heimes](https://canonical.com/blog/author/fheimes)

6 May 2025

[### Canonical announces first Ubuntu Desktop image for Qualcomm Dragonwing™ Platform with Ubuntu 24.04](https://canonical.com/blog/canonical-announces-first-ubuntu-desktop-image-for-qualcomm-dragonwing-platform-with-ubuntu-24-04)

This public beta enables the full Ubuntu Desktop experience on the Qualcomm Dragonwing™ QCS6490 and QCS5430 processors and complements existing Ubuntu Server support with...

[Canonical](https://canonical.com/blog/author/canonical)

30 April 2025

[### Google Authd broker: authenticate to Ubuntu Desktop/Server with your Google account](https://canonical.com/blog/google-authd-broker-ubuntu-desktop-server)

With the Authd broker for Ubuntu you can use your personal or Workspace Google account to authenticate to Ubuntu Server or Desktop

[Massimiliano Gori](https://canonical.com/blog/author/massigori)

6 March 2025
