Output for the commands you have suggested
mongodb-snap ⯠multipass launch --name multipass-mount-problem xenial
One quick question before we launch ⊠Would you like to help
the Multipass developers, by sending anonymous usage data?
This includes your operating system, which images you use,
the number of instances, their properties and how long you use them.
Weâd also like to measure Multipassâs speed.
Send usage data (yes/no/Later)? yes
Thank you!
Launched: multipass-mount-problem
mongodb-snap ⯠multipass exec multipass-mount-problem -- mkdir /home/ubuntu/mountpoint
mongodb-snap ⯠multipass mount --verbose --uid-map "$(id --user)":1000 --gid-map "$(id --group)":1000 . multipass-mount-problem:/home/ubuntu/mountpoint
[2020-10-15T15:15:41.314] [warning] [apparmor] Failed to load AppArmor policy
#include <tunables/global>
profile multipass.multipass-mount-problem.787a5936.sshfs_server flags=(attach_disconnected) {
#include <abstractions/base>
#include <abstractions/nameservice>
# Sshfs_server requires broad filesystem altering permissions, but only for the
# host directory the user has specified to be shared with the VM.
# Required for reading and searching host directories
capability dac_override,
capability dac_read_search,
# Enables modifying of file ownership and permissions
capability chown,
capability fsetid,
capability fowner,
# Multipass allows user to specify arbitrary uid/gid mappings
capability setuid,
capability setgid,
# Allow multipassd send sshfs_server signals
signal (receive) peer=snap.multipass.multipassd,
# sshfs gathers some info about system resources
/sys/devices/system/node/ r,
/sys/devices/system/node/node[0-9]*/meminfo r,
# binary and its libs
/snap/multipass/2604/bin/sshfs_server ixr,
/snap/multipass/2604/{usr/,}lib/** rm,
# CLASSIC ONLY: need to specify required libs from core snap
/{,var/lib/snapd/}snap/core18/*/{,usr/}lib/@{multiarch}/{,**/}*.so* rm,
# allow full access just to this user-specified source directory on the host
/home/bharatkalluri/Projects/mongodb-snap/ rw,
/home/bharatkalluri/Projects/mongodb-snap/** rwlk,
}
: errno=10 ()
\[2020-10-15T15:15:41.565] [warning] [sshfs-mounts] Mount '/home/ubuntu/mountpoint' in instance "multipass-mount-problem" has stopped unexpectedly: Process returned exit code: 9
Enabling support for mounting \[2020-10-15T15:16:19.106] [warning] [apparmor] Failed to load AppArmor policy
#include <tunables/global>
profile multipass.multipass-mount-problem.787a5936.sshfs_server flags=(attach_disconnected) {
#include <abstractions/base>
#include <abstractions/nameservice>
# Sshfs_server requires broad filesystem altering permissions, but only for the
# host directory the user has specified to be shared with the VM.
# Required for reading and searching host directories
capability dac_override,
capability dac_read_search,
# Enables modifying of file ownership and permissions
capability chown,
capability fsetid,
capability fowner,
# Multipass allows user to specify arbitrary uid/gid mappings
capability setuid,
capability setgid,
# Allow multipassd send sshfs_server signals
signal (receive) peer=snap.multipass.multipassd,
# sshfs gathers some info about system resources
/sys/devices/system/node/ r,
/sys/devices/system/node/node[0-9]*/meminfo r,
# binary and its libs
/snap/multipass/2604/bin/sshfs_server ixr,
/snap/multipass/2604/{usr/,}lib/** rm,
# CLASSIC ONLY: need to specify required libs from core snap
/{,var/lib/snapd/}snap/core18/*/{,usr/}lib/@{multiarch}/{,**/}*.so* rm,
# allow full access just to this user-specified source directory on the host
/home/bharatkalluri/Projects/mongodb-snap/ rw,
/home/bharatkalluri/Projects/mongodb-snap/** rwlk,
}
: errno=10 ()
mongodb-snap ⯠multipass exec multipass-mount-problem -- ls /home/ubuntu/mountpoint
snap
mongodb-snap ⯠multipass delete --purge multipass-mount-problem
Iâm not sure if this worked, I did get a warning and later it printed C code (I think so?)⊠It does say Failed to load AppArmor policy
. Although I did not modify/change it.