How to manage VMs (deb/2.9/UI)

2.9 3.0 3.1
DEB CLI ~ UI CLI ~ UI CLI ~ UI
SNAP CLI ~ UI CLI ~ UI CLI ~ UI

If you have already created a VM host, you will want to create and delete virtual machines (VMs); this article will explain:

How to add a VM

While on VM host’s details view, select ‘Compose’ from the ‘Take action’ drop-down menu to compose a machine.

You can choose which storage pool to use from a drop-down list.

Click the ‘Compose machine’ button when you’re finished. MAAS will present the VM host detail view. In a few moments, your new machine will be auto-commissioned. The ‘Machines’ page will reflect this as well.

MAAS will deduct the new machine’s resources from the VM host’s resources:

How to delete a VM

To delete a VM, delete it as you would any other MAAS machine. Select the desired machine from the list of machines and select ‘Delete’ from the ‘Take Action’ menu.

What exactly happens when we delete a VM? Is the VM actually removed from the host? Or it only disappears from MAAS? What happens to the used storage?

1 Like

good question. i will test this myself and update the docs with the reality.