Re: [Bug 1445386] Re: virtual machine cannot access p9 filesystem

2015-05-01 Thread Serge Hallyn
Oh, interesting - I was thinking a wiki page or ubuntu server guide.
But yes virt-manager would also be good

 affects: virt-manager


** Also affects: virt-manager
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1445386

Title:
  virtual machine cannot access p9 filesystem

To manage notifications about this bug go to:
https://bugs.launchpad.net/virt-manager/+bug/1445386/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1445386] Re: virtual machine cannot access p9 filesystem

2015-05-01 Thread Muelli
hm, maybe next to the source path (see attached screenshot). Something
like "The directory you're about to share is not owned by
$necessary_user:group. This may cause problems when writing from the
guest.".

** Attachment added: "Screenshot from 2015-05-01 12:04:51.png"
   
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1445386/+attachment/4388994/+files/Screenshot%20from%202015-05-01%2012%3A04%3A51.png

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1445386

Title:
  virtual machine cannot access p9 filesystem

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1445386/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 1445386] Re: virtual machine cannot access p9 filesystem

2015-05-01 Thread Serge Hallyn
Quoting Muelli (tobias...@gnome.org):
> when the directory is chgrp()ed to kvm then I can indeed write to it from the 
> guest.

Thanks for confirming.

> I think it'd be good to show that information somewhere in virt-
manager when creating the filesystem share.

Do you have any suggestions about where to add this?  Where did you
look when you were looking for info?

> it's a bit unfortunate, though.  The user need to be either in the kvm
> or in the libvirt-qemu group. At least the latter seems to be a non
> standard requirement.

Agreed.  Perhaps libvirt should try to add an ACL for the libvirt-qemu
user.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1445386

Title:
  virtual machine cannot access p9 filesystem

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1445386/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1445386] Re: virtual machine cannot access p9 filesystem

2015-05-01 Thread Muelli
when the directory is chgrp()ed to kvm then I can indeed write to it from the 
guest.
I think it'd be good to show that information somewhere in virt-manager when 
creating the filesystem share.

it's a bit unfortunate, though.  The user need to be either in the kvm
or in the libvirt-qemu group. At least the latter seems to be a non
standard requirement.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1445386

Title:
  virtual machine cannot access p9 filesystem

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1445386/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1445386] Re: virtual machine cannot access p9 filesystem

2015-05-01 Thread Serge Hallyn
** Changed in: libvirt (Ubuntu)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1445386

Title:
  virtual machine cannot access p9 filesystem

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1445386/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1445386] Re: virtual machine cannot access p9 filesystem

2015-04-24 Thread Serge Hallyn
Can you please confirm that you are chowning the directories/files to
libvirt-qemu user?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1445386

Title:
  virtual machine cannot access p9 filesystem

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1445386/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1445386] Re: virtual machine cannot access p9 filesystem

2015-04-24 Thread Serge Hallyn
When I create ~/share1 and p9-mount it into a libvirt VM just as you
did, I was able to create and write - but only to files owned by the
libvirt-qemu user, of course (since qemu runs as that user).  When the
directory was owned by me I could not create files.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1445386

Title:
  virtual machine cannot access p9 filesystem

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1445386/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1445386] Re: virtual machine cannot access p9 filesystem

2015-04-24 Thread Muelli
on the host:

➜ tmp>echo foo > share1/bar
➜ tmp>echo foo > share2/bar
➜ tmp>ls -la share*
share1:
total 4
drwxrwxr-x 1 muelli muelli  6 Apr 24 11:22 ./
drwxrwxr-x 1 muelli muelli 30 Apr 24 11:17 ../
-rw-rw-r-- 1 muelli muelli  4 Apr 24 11:28 bar

share2:
total 4
drwxrwxr-x 1 muelli muelli  6 Apr 24 11:22 ./
drwxrwxr-x 1 muelli muelli 30 Apr 24 11:17 ../
-rw-rw-r-- 1 muelli muelli  4 Apr 24 11:28 bar
➜ tmp>pwd
/home/muelli/tmp
➜ tmp>


and then on the guest:


root@ubuntu:~# mkdir /tmp/mnt1
root@ubuntu:~# mkdir /tmp/mnt2
root@ubuntu:~# mount /hostshare1 -t 9p -o 
trans=virtio,version9p2000.L,access=any,posixacl /tmp/mnt1/
root@ubuntu:~# mount /hostshare2 -t 9p -o 
trans=virtio,version9p2000.L,access=any,posixacl /tmp/mnt2/
root@ubuntu:~# ls -la /tmp/mnt*/
/tmp/mnt1/:
total 8
drwxrwxr-x 1 foo  foo 6 Apr 24 11:22 .
drwxrwxrwt 4 root root 4096 Apr 24 11:27 ..
-rw-rw-r-- 1 foo  foo 4 Apr 24 11:28 bar

/tmp/mnt2/:
total 8
drwxrwxr-x 1 foo  foo 6 Apr 24 11:22 .
drwxrwxrwt 4 root root 4096 Apr 24 11:27 ..
-rw-rw-r-- 1 foo  foo 4 Apr 24 11:28 bar
root@ubuntu:~# cat /tmp/mnt*/bar
foo
foo
root@ubuntu:~# echo baz > /tmp/mnt1/baz
-bash: /tmp/mnt1/baz: Permission denied
root@ubuntu:~# echo baz > /tmp/mnt2/baz
-bash: /tmp/mnt2/baz: Permission denied


so reading seems to work, but writing not.  I can imagine that to be a
problem with the permissions of the folder being written to. However,
changing the group of the folders to libvirtd didn't help.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1445386

Title:
  virtual machine cannot access p9 filesystem

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1445386/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs