* [Qemu-devel] virtio-9p is not working
@ 2010-07-21 8:27 Dallas Lee
2010-07-21 18:07 ` Cam Macdonell
2010-07-22 15:11 ` Aneesh Kumar K. V
0 siblings, 2 replies; 4+ messages in thread
From: Dallas Lee @ 2010-07-21 8:27 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 1853 bytes --]
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=ttyS0
video=uvesafb:ywrap,overlay:rgb16,480x800-32@60 root=/dev/nfs rw
nfsroot=10.0.2.2:/root,udp ip=10.0.2.16:::::eth0:none 5" -net
nic,model=virtio -net user -soundhw all -usb -serial
telnet:localhost:1200,server -vga std -m 512 -L ./pc-bios -bios bios.bin
-virtfs
local,path=/home/dallas/nfs,security_model=passthrough,mount_tag=v_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=virtio -o debug=0xFFFF 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/ nor
in /sys/bus/virtio/drivers/9pnet_virtio/virtio1/
And before building the kernel, I enabled the Plan 9 Ressource Sharing
Support under File System/Network File System, I also enabled the following
configures:
PARAVIRT_GUEST:
-> Processor type and features
-> Paravirtualized guest support
LGUEST_GUEST:
-> Processor type and features
-> Paravirtualized guest support
-> Lguest guest support
VIRTIO_PCI:
-> Virtualization (VIRTUALIZATION [=y])
-> PCI driver for virtio devices
VIRTIO_BLK:
-> Device Drivers
-> Block devices (BLK_DEV [=y])
-> Virtio block driver
VIRTIO_NET:
-> Device Drivers
-> Network device support (NETDEVICES [=y])
-> Virtio network driver
Would you please help me to find out the problem why I couldn't mount the
v9fs?
Thank you very much!
BR,
Dallas
[-- Attachment #2: Type: text/html, Size: 2653 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] virtio-9p is not working
2010-07-21 8:27 [Qemu-devel] virtio-9p is not working Dallas Lee
@ 2010-07-21 18:07 ` Cam Macdonell
2010-07-21 19:22 ` Venkateswararao Jujjuri (JV)
2010-07-22 15:11 ` Aneesh Kumar K. V
1 sibling, 1 reply; 4+ messages in thread
From: Cam Macdonell @ 2010-07-21 18:07 UTC (permalink / raw)
To: Dallas Lee; +Cc: qemu-devel
On Wed, Jul 21, 2010 at 2:27 AM, Dallas Lee <mswplsdk@gmail.com> 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=ttyS0
> video=uvesafb:ywrap,overlay:rgb16,480x800-32@60 root=/dev/nfs rw
> nfsroot=10.0.2.2:/root,udp ip=10.0.2.16:::::eth0:none 5" -net
> nic,model=virtio -net user -soundhw all -usb -serial
> telnet:localhost:1200,server -vga std -m 512 -L ./pc-bios -bios bios.bin
> -virtfs
> local,path=/home/dallas/nfs,security_model=passthrough,mount_tag=v_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=virtio -o debug=0xFFFF 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/ nor
> in /sys/bus/virtio/drivers/9pnet_virtio/virtio1/
> And before building the kernel, I enabled the Plan 9 Ressource Sharing
> Support under File System/Network File System, I also enabled the following
> configures:
> PARAVIRT_GUEST:
> -> Processor type and features
> -> Paravirtualized guest support
> LGUEST_GUEST:
> -> Processor type and features
> -> Paravirtualized guest support
> -> Lguest guest support
> VIRTIO_PCI:
> -> Virtualization (VIRTUALIZATION [=y])
> -> PCI driver for virtio devices
> VIRTIO_BLK:
> -> Device Drivers
> -> Block devices (BLK_DEV [=y])
> -> Virtio block driver
> VIRTIO_NET:
> -> Device Drivers
> -> Network device support (NETDEVICES [=y])
> -> Virtio network driver
> 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=y
in your kernel's .config?
Cam
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] virtio-9p is not working
2010-07-21 18:07 ` Cam Macdonell
@ 2010-07-21 19:22 ` Venkateswararao Jujjuri (JV)
0 siblings, 0 replies; 4+ messages in thread
From: Venkateswararao Jujjuri (JV) @ 2010-07-21 19:22 UTC (permalink / raw)
To: Cam Macdonell; +Cc: Dallas Lee, qemu-devel
Cam Macdonell wrote:
> On Wed, Jul 21, 2010 at 2:27 AM, Dallas Lee <mswplsdk@gmail.com> 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=ttyS0
>> video=uvesafb:ywrap,overlay:rgb16,480x800-32@60 root=/dev/nfs rw
>> nfsroot=10.0.2.2:/root,udp ip=10.0.2.16:::::eth0:none 5" -net
>> nic,model=virtio -net user -soundhw all -usb -serial
>> telnet:localhost:1200,server -vga std -m 512 -L ./pc-bios -bios bios.bin
>> -virtfs
>> local,path=/home/dallas/nfs,security_model=passthrough,mount_tag=v_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=virtio -o debug=0xFFFF 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/ nor
>> in /sys/bus/virtio/drivers/9pnet_virtio/virtio1/
>> And before building the kernel, I enabled the Plan 9 Ressource Sharing
>> Support under File System/Network File System, I also enabled the following
>> configures:
>> PARAVIRT_GUEST:
>> -> Processor type and features
>> -> Paravirtualized guest support
>> LGUEST_GUEST:
>> -> Processor type and features
>> -> Paravirtualized guest support
>> -> Lguest guest support
>> VIRTIO_PCI:
>> -> Virtualization (VIRTUALIZATION [=y])
>> -> PCI driver for virtio devices
>> VIRTIO_BLK:
>> -> Device Drivers
>> -> Block devices (BLK_DEV [=y])
>> -> Virtio block driver
>> VIRTIO_NET:
>> -> Device Drivers
>> -> Network device support (NETDEVICES [=y])
>> -> Virtio network driver
>> 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=y
>
> in your kernel's .config?
Can you please check if /proc/filesystems has 9P in it?
Check if you have '9' in any of the following files
cat /sys/devices/virtio-pci/virtio*/device
Also in that directory you will have a "mount_tag" file.
If any of the above are missing, please make sure that you have following
options enabled
in the guest kernel config.
CONFIG_NET_9P=y
CONFIG_NET_9P_VIRTIO=y
CONFIG_NET_9P_DEBUG=y
CONFIG_9P_FS=y
Thanks,
JV
>
> Cam
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] virtio-9p is not working
2010-07-21 8:27 [Qemu-devel] virtio-9p is not working Dallas Lee
2010-07-21 18:07 ` Cam Macdonell
@ 2010-07-22 15:11 ` Aneesh Kumar K. V
1 sibling, 0 replies; 4+ messages in thread
From: Aneesh Kumar K. V @ 2010-07-22 15:11 UTC (permalink / raw)
To: Dallas Lee, qemu-devel
On Wed, 21 Jul 2010 17:27:47 +0900, Dallas Lee <mswplsdk@gmail.com> 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=ttyS0
> video=uvesafb:ywrap,overlay:rgb16,480x800-32@60 root=/dev/nfs rw
> nfsroot=10.0.2.2:/root,udp ip=10.0.2.16:::::eth0:none 5" -net
> nic,model=virtio -net user -soundhw all -usb -serial
> telnet:localhost:1200,server -vga std -m 512 -L ./pc-bios -bios bios.bin
> -virtfs
> local,path=/home/dallas/nfs,security_model=passthrough,mount_tag=v_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=virtio -o debug=0xFFFF 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/ nor
> in /sys/bus/virtio/drivers/9pnet_virtio/virtio1/
You need to have libattr dev package to get virtio enabled
-aneesh
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-07-22 15:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-21 8:27 [Qemu-devel] virtio-9p is not working Dallas Lee
2010-07-21 18:07 ` Cam Macdonell
2010-07-21 19:22 ` Venkateswararao Jujjuri (JV)
2010-07-22 15:11 ` Aneesh Kumar K. V
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).