From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=51172 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ph5ge-0004as-QD for qemu-devel@nongnu.org; Sun, 23 Jan 2011 14:33:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ph5gd-00028l-CN for qemu-devel@nongnu.org; Sun, 23 Jan 2011 14:33:20 -0500 Received: from mail-iy0-f173.google.com ([209.85.210.173]:37087) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ph5gd-00028Z-80 for qemu-devel@nongnu.org; Sun, 23 Jan 2011 14:33:19 -0500 Received: by iye19 with SMTP id 19so3453292iye.4 for ; Sun, 23 Jan 2011 11:33:18 -0800 (PST) Message-ID: <4D3C827A.8080207@landley.net> Date: Sun, 23 Jan 2011 13:33:14 -0600 From: Rob Landley MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Playing with virtfs. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, aneesh.kumar@linux.vnet.ibm.com Using yesterday's -git, following the instructions in http://wiki.qemu.org/Documentation/9psetup (which is missing a kernel symbol, you need to add CONFIG_VIRTIO_PCI to your kernel too), I managed to mount a read-only virtfs filesystem, adding this to the qemu-system-x86_64 command line: -virtfs local,security_model=passthrough,mount_tag=kvm,path=/home/landley/9ptest And then in the emulated Linux: root@kvm:~# mount -t 9p -o trans=virtio,version=9p2000.L kvm woot root@kvm:~# ls -l woot total 80 -rw-r--r-- 1 1000 1000 77874 Jan 22 23:33 config-linux root@kvm:~# cd woot root@kvm:~/woot# touch fred touch: setting times of `fred': No such file or directory root@kvm:~/woot# I.E. It seems to work fine read only, but changes are discarded. Am I doing something wrong, or is this expected? (If so, when is write support likely to go in?) Rob