0

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
ls: cannot access host: Permission denied
total 0
d???????? ? ? ?         ? host
3
  • Are the directory/file permissions all right on the host?
    – user260419
    Apr 13, 2014 at 4:43
  • Yes. I even did chmod 777 on the shared directory.
    – Ya.
    Apr 13, 2014 at 19:35
  • Shameless bump. Any help would still be appreciated.
    – Ya.
    Apr 16, 2014 at 21:18

1 Answer 1

0

The answer can be found here:

https://askubuntu.com/questions/445193/kvm-virtual-machine-manager-sharing-folders-not-working

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .