Mastering virtual machine management with MAAS
If you have already taken the first step of setting up a VM host on MAAS, you're ready to delve into the art of managing your virtual machines (VMs). Whether it's adding, deleting, or configuring VMs, we've got you covered. Below are detailed guides for both UI and CLI methods, tailored to various MAAS versions.
Creating a VM via the MAAS UI is straightforward. Here's a step-by-step guide:
Navigate to KVM >
Choose the VM host by clicking on its name.
Click on Add VM.
If you wish, input a VM name.
Choose between Use any available core(s) or Pin VM to specific core(s). If choosing the latter, specify core identities.
Input the amount of RAM needed.
For advanced settings like Domain, Zone, Resource pool, or Architecture, click on Show advanced and make your modifications.
Optionally, you can Define interfaces.
Add disks if necessary by selecting Add disks.
Finally, click Compose machine to spawn your VM.
You'll find the newly composed VM in the 'Machines' tab after a brief period, during which it undergoes auto-commissioning. Resources are automatically deducted from the selected VM host.
From the VM host's details view, locate the 'Take action' drop-down menu and select 'Compose'.
Choose your preferred storage pool from the provided drop-down list.
Note: When adding multiple disks, the last disk in the list will function as the boot disk.
Your new machine will be auto-commissioned, and its resources will be deducted from the VM host. The 'Machines' tab will update to reflect these changes.
Deleting a VM in MAAS is as straightforward as deleting any other machine:
Choose the machine from the machine list.
Select 'Delete' from the 'Take Action' drop-down menu.
Hopefully, this documentation provides a comprehensive guide on VM management in MAAS. Would you like to know more? Feel free to ask questions.