From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=46740 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Obdi8-0001r2-ND for qemu-devel@nongnu.org; Wed, 21 Jul 2010 14:08:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Obdi7-000715-22 for qemu-devel@nongnu.org; Wed, 21 Jul 2010 14:08:04 -0400 Received: from mail-gx0-f173.google.com ([209.85.161.173]:39518) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Obdi6-00070J-Vg for qemu-devel@nongnu.org; Wed, 21 Jul 2010 14:08:03 -0400 Received: by gxk19 with SMTP id 19so4085912gxk.4 for ; Wed, 21 Jul 2010 11:08:01 -0700 (PDT) MIME-Version: 1.0 Sender: camm@ualberta.ca In-Reply-To: References: Date: Wed, 21 Jul 2010 12:07:58 -0600 Message-ID: Subject: Re: [Qemu-devel] virtio-9p is not working From: Cam Macdonell Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Dallas Lee Cc: qemu-devel@nongnu.org On Wed, Jul 21, 2010 at 2:27 AM, Dallas Lee wrote: > Hi, > I have trying to use the virtio-9p for my linux in QEMU, but without > success. > Here is my option for booting my qemu: > i386-softmmu/qemu -kernel bzImage -append "console=3DttyS0 > video=3Duvesafb:ywrap,overlay:rgb16,480x800-32@60 root=3D/dev/nfs rw > nfsroot=3D10.0.2.2:/root,udp ip=3D10.0.2.16:::::eth0:none 5" -net > =A0nic,model=3Dvirtio -net user -soundhw all -usb -serial > telnet:localhost:1200,server -vga std -m 512 -L ./pc-bios -bios bios.bin > -virtfs > local,path=3D/home/dallas/nfs,security_model=3Dpassthrough,mount_tag=3Dv_= tmp > > The virtio network is working, I could mount the nfs through virio net. > And in the guest linux, I tried to mount v9fs by using following command: > mount -t 9p -o trans=3Dvirtio -o debug=3D0xFFFF v_tmp /mnt > but unfortunately I got the error: > mount: mounting v_tmp on /mnt failed: No such device > And I can't find the v_tmp neither in /sys/devices/virtio-pci/virtio1/ no= r > in /sys/bus/virtio/drivers/9pnet_virtio/virtio1/ > And before building the kernel, I enabled the=A0Plan 9 Ressource Sharing > Support under File System/Network File System, I also enabled the followi= ng > configures: > PARAVIRT_GUEST: > =A0=A0 =A0 =A0 =A0-> Processor type and features > =A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0-> Paravirtualized guest support > LGUEST_GUEST: > =A0=A0 =A0 =A0 =A0-> Processor type and features > =A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0-> Paravirtualized guest support > =A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0-> Lguest guest support > VIRTIO_PCI: > =A0=A0 =A0 =A0 =A0-> Virtualization (VIRTUALIZATION [=3Dy]) > =A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0-> PCI driver for virtio devices > VIRTIO_BLK: > =A0=A0 =A0 =A0 =A0-> Device Drivers > =A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0-> Block devices (BLK_DEV [=3Dy]) > =A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0-> Virtio block driver > VIRTIO_NET: > =A0=A0 =A0 =A0 =A0-> Device Drivers > =A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0-> Network device support (NETDEVICES [= =3Dy]) > =A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0-> Virtio network drive= r > Would you please help me to find out the problem why I couldn't mount the > v9fs? > Thank you very much! > BR, > Dallas Hi Dallas, what does 'lspci -vv' in the guest show? Is there a device for virtio_9p? do you have CONFIG_NET_9P_VIRTIO=3Dy in your kernel's .config? Cam