Red Hat Bugzilla – Bug 819594
VirtFS is not writeable on F17
Last modified: 2013-07-11 14:12:40 EDT
Description of problem:
Update XML definition of VF17 KVM as follows ( via VirtManager)
<filesystem type='mount' accessmode='squash'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
Start guest (spice/QXL) and mount :
[boris@fedora17 ~]$ sudo mount -t 9p -o trans=virtio host_share /mnt/host_share -oversion=9p2000.L
[boris@fedora17 ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 15G 4.0G 9.6G 30% /
devtmpfs 993M 0 993M 0% /dev
tmpfs 1003M 96K 1002M 1% /dev/shm
tmpfs 1003M 1.3M 1001M 1% /run
/dev/mapper/vg_fedora17-lv_root 15G 4.0G 9.6G 30% /
tmpfs 1003M 0 1003M 0% /sys/fs/cgroup
tmpfs 1003M 0 1003M 0% /media
/dev/vda2 497M 97M 375M 21% /boot
host_share 61G 9.4G 49G 17% /mnt/host_share
Attempt to copy :
[boris@fedora17 ~]$ sudo cp test /mnt/host_share
cp: accessing `/mnt/host_share': Permission denied
Version-Release number of selected component (if applicable): 17
Steps to Reproduce:
1. Update XML VF17 guest
2. Start VF17 and mount virtfs
3. Attempt to copy text file to virtfs
File copyed to /mnt/host_share
Option security_model=passthrough works for qemu-kvm command line, but
change accessmode (XML) to 'passthrough' doesn't help
Moving to libvirt.
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora
'version' of '17'.
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version prior to Fedora 17's end of life.
Bug Reporter: Thank you for reporting this issue and we are sorry that
we may not be able to fix it before Fedora 17 is end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged change the
'version' to a later Fedora version prior to Fedora 17's end of life.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
Apparently the passthrough model just doesn't work unless qemu is running as root, which isn't the default case when using libvirt. mapped seems to work for at least creating files.