qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Playing with virtfs.


From: Rob Landley
Subject: [Qemu-devel] Playing with virtfs.
Date: Sun, 23 Jan 2011 13:33:14 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7

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:

  address@hidden:~# mount -t 9p -o trans=virtio,version=9p2000.L kvm woot
  address@hidden:~# ls -l woot
  total 80
  -rw-r--r-- 1 1000 1000 77874 Jan 22 23:33 config-linux
  address@hidden:~# cd woot
  address@hidden:~/woot# touch fred
  touch: setting times of `fred': No such file or directory
  address@hidden:~/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 via email to

[Prev in Thread] Current Thread [Next in Thread]