All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: qemu-devel@nongnu.org,
	"Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Subject: Re: [Qemu-devel] 9pfs troubles (was Re: [PATCH 1/4] hw/9pfs: fix error handing in local_ioc_getversion())
Date: Tue, 04 Feb 2014 12:51:25 +0530	[thread overview]
Message-ID: <87vbwv2vii.fsf@linux.vnet.ibm.com> (raw)
In-Reply-To: <20140203110354.GA19825@redhat.com>

"Michael S. Tsirkin" <mst@redhat.com> writes:

> On Mon, Feb 03, 2014 at 03:05:10PM +0530, Aneesh Kumar K.V wrote:
>> "Michael S. Tsirkin" <mst@redhat.com> writes:
>> 
>> > Haven't used 9pfs in a while.
>> > I thought these patches are a good time to play with it some more.
>> > I have encountered two issues.
>> >
>> > What I'm doing:
>> > host: qemu a75143eda2ddf581b51e96c000974bcdfe2cbd10.
>> >
>> > /scm/qemu/x86_64-softmmu/qemu-system-x86_64 -enable-kvm -m 1g -cpu kvm64
>> > -smp 2  f20-x64.qcow2  -netdev user,id=foo -redir tcp:8022::22 -device
>> > virtio-net,netdev=foo  -serial stdio -fsdev
>> > local,security_model=none,id=fsdev0,path=/lib/modules/ -device
>> > virtio-9p-pci,id=fs0,fsdev=fsdev0,mount_tag=libmodulesshare -fsdev
>> > local,security_model=none,id=fsdev1,path=/boot -device
>> > virtio-9p-pci,id=fs1,fsdev=fsdev0,mount_tag=bootshare -no-reboot
>> > -snapshot
>> >
>> > guest: Fedora 20
>> >
>> > added this in /etc/fstab:
>> >
>> > bootshare       /share/boot     9p      trans=virtio,version=9p2000.L 0 0
>> > libmodulesshare /share/lib/modules      9p trans=virtio,version=9p2000.L 0 0
>> >
>> >
>> > I have encountered two issues:
>> >
>> > 1. mount failure on boot
>> > If I try to mount on boot through fstab, I get:
>> > [    2.270157] 9pnet: Could not find request transport: virtio
>> > [    2.270158] 9pnet: Could not find request transport: virtio
>> 
>> 
>> Missing 9pnet_virtio.ko module ? 
>
> Maybe it's loaded too late. But when I get to plymouth prompt
> it's loaded fine.
>
>> >
>> > If I then re-try mount, it succeeds immediately!
>> >
>> > Some kind of dependency issue?
>> >
>> > 2. files immediately in the mounted directory aren't visible on the
>> > guest under /share/boot.
>> > For example, files under /boot on host are not visible
>> > on guest, files under child directories seem visible.
>> 
>> 
>> can you share more details on this ? /boot permissions. ls -al output on
>> host etc.
>> 
>> -aneesh
>
> for /boot:
> dr-xr-xr-x. 7 root root 12288 Feb  2 23:41 /boot/
>
> $ ls -la
> total 739740
> dr-xr-xr-x.  7 root root    12288 Feb  2 23:41 .
> dr-xr-xr-x. 22 root root     4096 Feb  2 19:16 ..
> -rw-r--r--.  1 root root   138741 Dec 23 19:19 config-3.12.6-200.fc19.i686
> -rw-r--r--.  1 root root   138724 Jan 10 18:06 config-3.12.7-200.fc19.i686
> -rw-r--r--.  1 root root   138724 Jan 16 06:43
> config-3.12.8-200.fc19.i686


Related to SELinux errors ? can you double check you don't selinux
errors.

Can you also share the file listing on the guest ?  Also are you able to
reproduce this when running qemu as root user ?

-aneesh

  reply	other threads:[~2014-02-04  7:21 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-28 15:08 [Qemu-devel] [PATCH 1/4] hw/9pfs: fix error handing in local_ioc_getversion() Kirill A. Shutemov
2014-01-28 15:08 ` [Qemu-devel] [PATCH 2/4] hw/9pfs: handle undefined FS_IOC_GETVERSION case in handle_ioc_getversion() Kirill A. Shutemov
2014-02-02 16:20   ` Aneesh Kumar K.V
2014-01-28 15:08 ` [Qemu-devel] [PATCH 3/4] hw/9pfs: make get_st_gen() return ENOTTY error on special files Kirill A. Shutemov
2014-02-02 16:28   ` Aneesh Kumar K.V
2014-01-28 15:08 ` [Qemu-devel] [PATCH 4/4] hw/9pfs: fix P9_STATS_GEN handling Kirill A. Shutemov
2014-02-02 16:27   ` Aneesh Kumar K.V
2014-02-02 16:20 ` [Qemu-devel] [PATCH 1/4] hw/9pfs: fix error handing in local_ioc_getversion() Aneesh Kumar K.V
     [not found] ` <878utx5tw1.fsf@linux.vnet.ibm.com>
     [not found]   ` <87bnyp4e7k.fsf@linux.vnet.ibm.com>
2014-02-02 21:32     ` [Qemu-devel] 9pfs troubles (was Re: [PATCH 1/4] hw/9pfs: fix error handing in local_ioc_getversion()) Michael S. Tsirkin
2014-02-03  9:35       ` Aneesh Kumar K.V
2014-02-03 11:03         ` Michael S. Tsirkin
2014-02-04  7:21           ` Aneesh Kumar K.V [this message]
2014-02-05 21:31             ` Michael S. Tsirkin
2014-02-06 12:58               ` Aneesh Kumar K.V
2014-02-06 13:24                 ` Michael S. Tsirkin
2014-02-07  9:02               ` Greg Kurz
2014-02-09 12:05                 ` Michael S. Tsirkin
2014-03-12 11:34                 ` Michael S. Tsirkin
2014-03-17  9:12                   ` Greg Kurz
2015-01-20 15:36                     ` Marc-André Lureau

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=87vbwv2vii.fsf@linux.vnet.ibm.com \
    --to=aneesh.kumar@linux.vnet.ibm.com \
    --cc=kirill.shutemov@linux.intel.com \
    --cc=mst@redhat.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.