Open staffhorn opened 4 years ago
Hi @staffhorn, with Multipass going confined in v1.3.0, we currently can only support mounts from under /home
. A bind mount is a potential workaround while we work on bringing back mounts from anywhere in the system.
As for copy-files
, you can pipe the contents in via:
$ cat <source> | multipass copy-files - instance:<target>
Thanks for the explanation @Saviq . Knowing the reason, I can work around it until you have a solution.
Following up, it seems this is still a problem with the snap installation. Does the issue go away if I build multipass and install on Ubuntu from the github repo?
Following up, it seems this is still a problem with the snap installation. Does the issue go away if I build multipass and install on Ubuntu from the github repo?
Hey, if you want to maintain it yourself, sure. It is snap confinement that (by design) prevents this.
I'll pass, thanks for the caveat.
Describe the bug multipass mount and multipass copy-files fail for certain source paths.
To Reproduce How, and what happened?
Expected behavior What did you expect to happen? The host directory should mount on the instance. This works:
Logs
Additional info
multipass info --all
Name: tatooine2 State: Running IPv4: 10.180.176.131 Release: Ubuntu 20.04 LTS Image hash: fa1a86cdcf79 (Ubuntu 20.04 LTS) Load: 0.07 0.08 0.03 Disk usage: 1.5G out of 4.7G Memory usage: 257.4M out of 3.8G
Name: tatooine3 State: Running IPv4: 10.180.176.240 Release: Ubuntu 20.04 LTS Image hash: fa1a86cdcf79 (Ubuntu 20.04 LTS) Load: 0.07 0.02 0.00 Disk usage: 1.4G out of 4.7G Memory usage: 237.1M out of 3.8G