From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manuel Reimer Subject: Re: How to allow guest to write on 9p/virtfs shared folder? Date: Wed, 18 Sep 2013 20:34:33 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from plane.gmane.org ([80.91.229.3]:37811 "EHLO plane.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751608Ab3IRSel (ORCPT ); Wed, 18 Sep 2013 14:34:41 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VMMaG-00073F-No for kvm@vger.kernel.org; Wed, 18 Sep 2013 20:34:40 +0200 Received: from p54947fe5.dip0.t-ipconnect.de ([84.148.127.229]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Sep 2013 20:34:40 +0200 Received: from Manuel.Spam by p54947fe5.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Sep 2013 20:34:40 +0200 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: Hello, I have to add another problem: I changed "security_model=passthrough" to "security_model=mapped". This seems to give me back write permissions. I would prefer "passthrough", just as I did before, but this works as a workaround. Now, If I try to execute a script from the mounted virtfs, then I get the following: -bash: ./test.pl: /usr/bin/perl: bad interpreter: Numerical result out of range If I call the same with "perl ./test.pl", then anything works. If I copy the script to somewhere outside of the mounted virtfs, then I can also call the script with "./test.pl". What's going on here? Thanks in advance Yours Manuel On 09/18/2013 08:20 PM, Manuel Reimer wrote: > Hello, > > today, I upgraded my kernel and I seem to have gotten a new kvm backend > with this. > > Now my guest systems are no longer able to write to the host filesystem. > > I share the filesystem using the following command to qemu: > > -virtfs > local,id=fsdev0,path=$SHARED,security_model=passthrough,mount_tag=vmshared > > and on guest side (fstab): > > vmshared /mnt/vmshared 9p > rw,comment=systemd.automount,trans=virtio,access=any 0 0 > > Versions: > > $ uname -a > Linux manuelspc 3.11.1-1-ARCH #1 SMP PREEMPT Sat Sep 14 19:30:21 CEST > 2013 x86_64 GNU/Linux > $ qemu-system-x86_64 --version > QEMU emulator version 1.5.2, Copyright (c) 2003-2008 Fabrice Bellard > > Can someone please help me to get back my writing permissions? > > Thank you in advance > > Yours > > Manuel > > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >