From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAaKH-0000Cm-Rb for qemu-devel@nongnu.org; Tue, 04 Feb 2014 02:21:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WAaK8-0008Fc-Tq for qemu-devel@nongnu.org; Tue, 04 Feb 2014 02:21:45 -0500 Received: from e28smtp04.in.ibm.com ([122.248.162.4]:46600) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAaK7-0008FA-KV for qemu-devel@nongnu.org; Tue, 04 Feb 2014 02:21:36 -0500 Received: from /spool/local by e28smtp04.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 4 Feb 2014 12:51:30 +0530 Received: from d28relay04.in.ibm.com (d28relay04.in.ibm.com [9.184.220.61]) by d28dlp02.in.ibm.com (Postfix) with ESMTP id 147A1394004E for ; Tue, 4 Feb 2014 12:51:28 +0530 (IST) Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63]) by d28relay04.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s147LRwO23396482 for ; Tue, 4 Feb 2014 12:51:27 +0530 Received: from d28av01.in.ibm.com (localhost [127.0.0.1]) by d28av01.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s147LPHw015545 for ; Tue, 4 Feb 2014 12:51:25 +0530 From: "Aneesh Kumar K.V" In-Reply-To: <20140203110354.GA19825@redhat.com> References: <1390921707-15109-1-git-send-email-kirill.shutemov@linux.intel.com> <878utx5tw1.fsf@linux.vnet.ibm.com> <87bnyp4e7k.fsf@linux.vnet.ibm.com> <20140202213202.GA2442@redhat.com> <871tzk4jzl.fsf@linux.vnet.ibm.com> <20140203110354.GA19825@redhat.com> Date: Tue, 04 Feb 2014 12:51:25 +0530 Message-ID: <87vbwv2vii.fsf@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] 9pfs troubles (was Re: [PATCH 1/4] hw/9pfs: fix error handing in local_ioc_getversion()) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: qemu-devel@nongnu.org, "Kirill A. Shutemov" "Michael S. Tsirkin" writes: > On Mon, Feb 03, 2014 at 03:05:10PM +0530, Aneesh Kumar K.V wrote: >> "Michael S. Tsirkin" 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