Closed ryanhulet closed 3 months ago
Hi, @ryanhulet! Unfortunately, I couldn't reproduce the issue, as it seems to work fine in my case, so I will need more details. What are the permissions and ownership of the directory that you're sharing over NFS? Also, as a side note, I recommend mounting on a directory inside /mnt
, not on /mnt
itself, something like /mnt/multipass
.
Hi @ryanhulet!
Could you please provide the answers asked here? We will close this issue in approximately one week if we don't hear back from you. Thanks!
Hey sorry, I sort of found the solution. This is a bug in AppArmor in kernel versions <6.0
AppArmor treats regular NFS file access as network op
Trying the same operation on 23.04 works flawlessly
Describe the bug I am trying to use an NFS mount as an alternate storage location for Multipass using the libvirt driver. I followed the instructions here: Configure where Multipass stores external data and successfully got Multipass to rw to the nfs share at /mnt. I observe it downloading the img during launch, and then get
To Reproduce How, and what happened?
sudo snap connect multipass:libvirt
sudo multipass set local.driver=libvirt
sudo snap stop multipass
sudo snap connect multipass:removable-media
sudo mkdir /etc/systemd/system/snap.multipass.multipassd.service.d/
sudo tee /etc/systemd/system/snap.multipass.multipassd.service.d/override.conf <<EOF [Service] Environment=MULTIPASS_STORAGE=/mnt EOF
sudo systemctl daemon-reload
sudo cp -r /var/snap/multipass/common/data/multipassd /mnt/data
sudo cp -r /var/snap/multipass/common/cache/multipassd /mnt/cache
sudo snap start multipass
sudo multipass launch
Expected behavior Multipass should be able to download the image, and then qemu-img should be able to verify and launch it.
Logs
Additional info
multipass 1.14.0-dev.1525+g8c7a2266 multipassd 1.14.0-dev.1525+g8c7a2266
libvirt
Additional context Add any other context about the problem here.