Skip to content

Multipass snap cannot store data in mounted folder #2184

@shabiel

Description

@shabiel

Describe the bug
Followed the instruction here: #1789 to change where multipass stores its virtual machines. However, the snap cannot access the directory that I want it to use.

To Reproduce
How, and what happened?

snap stop multipass
snap connect multipass:removable-media  
snap connect multipass:all-home
mkdir -p /extra/multipass-files/
mkdir /etc/systemd/system/snap.multipass.multipassd.service.d/
tee /etc/systemd/system/snap.multipass.multipassd.service.d/override.conf <<EOF
[Service]
Environment=MULTIPASS_STORAGE=/extra/multipass-files/
EOF
systemctl daemon-reload
snap start multipass
exit # root

Expected behavior
Multipass doesn't work.

Logs

Caught an unhandled exception: unable to create directory '/extra/multipass-files/cache'

Additional info

  • OS: Ubuntu 20.04.2 LTS
  • multipass 1.7.0
  • Multipass currently inoperative; cannot give you info --all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions