Using libvirt in Multipass
If you want more control over your VMs after they are launched, you can use the experimental
Switch to the libvirt driver
Make sure you have libvirt installed, as Multipass is using the libvirt daemon running on your host:
# use the equivalent for your distribution $ sudo apt install libvirt-daemon-system
You can then switch the driver
# you'll need to stop all the instances first $ multipass stop --all # and tell Multipass to use libvirt $ sudo multipass set local.driver=libvirt
All your existing instances will be migrated and can be used straight away.
NOTE: You can still use the
multipass client and the tray icon, and any changes you make to the configuration of the instance in libvirt will be persistent. They may not be represented in Multipass commands such as
multipass info, though.
After launching an instance, you can see it show up in
man virsh for a command reference):
$ virsh list Id Name State -------------------------------------- 1 unaffected-gyrfalcon running
You can also use the graphical virt-manager interface:
To switch back to the default, use the
# stop all instances again $ multipass stop --all # and switch back to the qemu driver $ sudo multipass set local.driver=qemu
Here, too, existing instances will be migrated.
NOTE: this will make you lose any customizations you made to the instance in libvirt.
Last updated 2 months ago.