I've created an Ubuntu VM inside my Ubuntu using Virtual Machine Manager. I'm trying to mount a host directory in guest OS but it's not working. I used the instructions provided here: http://troglobit.com/blog/2013/07/05/file-system-pass-through-in-kvm-slash-qemu-slash-libvirt/. I have shared the host directory as "myshare".

The mount command completes silently:

mount -t 9p -o trans=virtio,version=9p2000.L,rw myshare /mnt/host

mount output looking promising:

myshare on /mnt/host type 9p (rw, trans=virtio,version=9p2000.L)

However, attempting to list the directory produces:

cd /mnt
ls: cannot access host: Permission denied
total 0
d???????? ? ? ?         ? host
  • Are the directory/file permissions all right on the host? – Sami Laine Apr 13 '14 at 4:43
  • Yes. I even did chmod 777 on the shared directory. – Ya. Apr 13 '14 at 19:35
  • Shameless bump. Any help would still be appreciated. – Ya. Apr 16 '14 at 21:18

The answer can be found here:


The person was right - it was an apparmor issue. Now I need to figure out how to configure apparmor in libvirt to allow sholder sharing but that's a whole other issue.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.