All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Landley <rob@landley.net>
To: qemu-devel@nongnu.org, aneesh.kumar@linux.vnet.ibm.com
Subject: [Qemu-devel] Playing with virtfs.
Date: Sun, 23 Jan 2011 13:33:14 -0600	[thread overview]
Message-ID: <4D3C827A.8080207@landley.net> (raw)

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

             reply	other threads:[~2011-01-23 19:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-23 19:33 Rob Landley [this message]
2011-01-24 16:15 ` [Qemu-devel] Playing with virtfs Aneesh Kumar K. V
2011-01-24 18:35   ` Rob Landley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D3C827A.8080207@landley.net \
    --to=rob@landley.net \
    --cc=aneesh.kumar@linux.vnet.ibm.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.