From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=53630 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OofZ8-00067Z-Qc for qemu-devel@nongnu.org; Thu, 26 Aug 2010 12:44:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OofZ7-0008Bn-IH for qemu-devel@nongnu.org; Thu, 26 Aug 2010 12:44:38 -0400 Received: from e8.ny.us.ibm.com ([32.97.182.138]:60878) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OofZ7-0008Bi-Eh for qemu-devel@nongnu.org; Thu, 26 Aug 2010 12:44:37 -0400 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by e8.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id o7QGQc8F008131 for ; Thu, 26 Aug 2010 12:26:38 -0400 Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o7QGiYfG090134 for ; Thu, 26 Aug 2010 12:44:34 -0400 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o7QGiX1x011479 for ; Thu, 26 Aug 2010 10:44:34 -0600 Message-ID: <4C7699F0.3050600@linux.vnet.ibm.com> Date: Thu, 26 Aug 2010 09:44:32 -0700 From: "Venkateswararao Jujjuri (JV)" MIME-Version: 1.0 References: <20100826043937.GA2777@c3sl.ufpr.br> In-Reply-To: <20100826043937.GA2777@c3sl.ufpr.br> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: virtio-9p error List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bruno Cesar Ribas Cc: V9FS Developers , Qemu-development List , kvm-devel Bruno Cesar Ribas wrote: > Hi, > > Every time I try to rsync something to my 9p fs mounted I get the following > message on guest kernel: > > 8<-------------------- > [ 45.866789] 9pnet_virtio virtio2: requests:id 0 is not a head! > 8<-------------------- > > I'm "sending" the FS with the following argument via qemu-kvm (commit head > 422476cc422 of August 12): > -virtfs local,path=/home/outras/montecristo,mount_tag=home,security_model=passthrough > > And I'm mounting on the guest with: > mount -t 9p -o trans=virtio home /home > > My guest is running kernel 2.6.34. I tested with the latest kernel, 2.6.35-rc6+ .. rsync -avz guest:/pmnt/rsync_dir/ /tmp/rsync_dir/ rsync /pmnt/rsync_dir/ /tmp/rsync_dir/ rsync -aHx --progress host:/tmp/rsync_dir/ /pmnt/rsync_dir/ This quick test is with QEMU patches that are on mailing lists but not merged into mainline. Being said that, I don't think they really affect this. > > After I start the rsync (a second later) i get the message i showed above > and the the virtio fs crashes and i have to reboot the virtual machine. > > Another 'interesting' thing is that the filesystem wont show in 'df'. But > appears correct in /proc/mounts This works only on 9P2000.L protocol. (Need "-o version=9p2000.L" option on the mount) But please note that, all the 9P2000.L protocol patches are not yet merged into QEMU. Thanks, JV > > 8<-------------------- > montecristo-nova:/home# mount|tail -1 > home on /home type 9p (rw,sync,dirsync,relatime,trans=virtio) > 8<-------------------- > > > Here is a little of my rsync output: > > 8<-------------------- > montecristo-nova:/home# cd nobackup/ > montecristo-nova:/home/nobackup# rsync -aHx --progress xadrezlivre:/ xadrezlivre/ > receiving incremental file list > rsync: symlink "/home/nobackup/xadrezlivre/cdrom" -> "media/cdrom" > failed: No such file or directory (2) > rsync: symlink "/home/nobackup/xadrezlivre/initrd.img" -> > "boot/initrd.img-2.6.26-1-486" failed: No such file or directory (2) > rsync: symlink "/home/nobackup/xadrezlivre/initrd.img.old" -> > "boot/initrd.img-2.6.18-6-486" failed: No such file or directory (2) > rsync: symlink "/home/nobackup/xadrezlivre/vmlinuz" -> > "boot/vmlinuz-2.6.26-1-486" failed: No such file or directory (2) > rsync: symlink "/home/nobackup/xadrezlivre/vmlinuz.old" -> > "boot/vmlinuz-2.6.18-6-486" failed: No such file or directory (2) > rsync: symlink "/home/nobackup/xadrezlivre/bin/nc" -> > "/etc/alternatives/nc" failed: No such file or directory (2) > rsync: symlink "/home/nobackup/xadrezlivre/bin/netcat" -> > "/etc/alternatives/netcat" failed: No such file or directory (2) > rsync: symlink "/home/nobackup/xadrezlivre/bin/pidof" -> > "../sbin/killall5" failed: No such file or directory (2) > rsync: symlink "/home/nobackup/xadrezlivre/bin/rnano" -> "nano" > failed: No such file or directory (2) > 8<-------------------- > > If anyone knows what it is or what else should I send to understand better > the problem, please tell me > > Thanks in advance >