Skip to main content

Your submission was sent successfully! Close

Thank you for signing up for our newsletter!
In these regular emails you will find the latest updates from Canonical and upcoming events where you can meet our team.Close

Thank you for contacting us. A member of our team will be in touch shortly. Close

Configure Multipass's default logging level

See also: Logging levels

This document demonstrates how to configure the default logging level of the Multipass service. Changing the logging level can be useful, for example, if you want to decrease the size of logging files or get more detailed information about what the daemon is doing. Logging levels can be set to one of the following: error, warning, info, debug, or trace, with case sensitivity.

Changing the default logging level

First, stop the Multipass daemon:

sudo snap stop multipass

After that, create the override config file, replacing <level> with your desired logging level:

sudo mkdir /etc/systemd/system/snap.multipass.multipassd.service.d/
sudo tee /etc/systemd/system/snap.multipass.multipassd.service.d/override.conf <<EOF
[Service]
ExecStart=
ExecStart=/usr/bin/snap run multipass.multipassd --verbosity <level>
EOF
sudo systemctl daemon-reload

Finally, start the Multipass daemon:

sudo snap start multipass

First, become root:

sudo su

Stop the Multipass daemon:

launchctl unload /Library/LaunchDaemons/com.canonical.multipassd.plist

Then, open /Library/LaunchDaemons/com.canonical.multipassd.plist in your favorite text editor and edit the path /dict/array/string[2] from debug to the logging level of your choice.

Finally, start the Multipass daemon:

launchctl load /Library/LaunchDaemons/com.canonical.multipassd.plist

First, open an administrator privileged PowerShell prompt.

Stop the Multipass service:

Stop-Service Multipass

Then, edit the Multipass service registry key with the following command:

Set-ItemProperty -path HKLM:\System\CurrentControlSet\Services\Multipass -Name ImagePath -Value "'C:\Program Files\Multipass\bin\multipassd.exe' /svc --verbosity <level>"

Replacing <level> with your desired logging level.

Finally, start the Multipass service:

Start-Service Multipass

Errors or typos? Topics missing? Hard to read? Let us know or open an issue on GitHub.

Last updated 3 months ago. Help improve this document in the forum.