Hi,

I was using old version of qemu which was not having support for
vhost-user. Problem solved after upgrading qemu.

I am using below command for launching qemu

 ./qemu-system-x86_64 -enable-kvm -m 1024 -bios
/home/cavium/Downloads/OVMF.fd -smp 4 -cpu host -vga none -nographic -drive
file="/home/cavium/Downloads/clear-16300-kvm.img",if=virtio,aio=threads
-chardev socket,id=char1,path=/tmp/sock1.sock -netdev
type=vhost-user,id=mynet1,chardev=char1,vhostforce -device
virtio-net-pci,mac=00:00:00:00:00:01,netdev=mynet1 -object
memory-backend-file,id=mem,size=512M,mem-path=/dev/hugepages,share=on -numa
node,mem=1024M -mem-prealloc -debugcon file:debug.log -global
isa-debugcon.iobase=0x402

and it is giving error :

qemu-system-x86_64: Failed initializing vhost-user memory map, consider
using -object memory-backend-file share=on
qemu-system-x86_64: vhost_set_mem_table failed: Resource temporarily
unavailable (11)
qemu-system-x86_64: unable to start vhost net: 11: falling back on
userspace virtio

Any ideas?

Thanks,
Divya

On Thu, Jul 6, 2017 at 5:05 PM, Luke, Chris <[email protected]> wrote:

> Google says: “-netdev type=vhost-user”. i.e., you forgot the “type=” part.
>
>
>
> Cheers,
>
> Chris.
>
>
>
>
>
> *From:* [email protected] [mailto:[email protected]] *On
> Behalf Of *Divya Vyas
> *Sent:* Thursday, July 6, 2017 6:37
> *To:* [email protected]
> *Subject:* [vpp-dev] VPP qemu error " Invalid parameter 'vhost-user "
>
>
>
> Hi All,
>
> I am creating a basic demo which showcase VPP as a bridge on ubuntu . I am
> following below link:
>
> https://wiki.fd.io/view/VPP/Use_VPP_to_connect_VMs_Using_
> Vhost-User_Interface
>
> I am able to see the interfaces
>
>  vppctl show interface
>               Name               Idx       State          Counter
> Count
> GigabitEthernet0/19/0             1         up       rx
> packets                 19740
>                                                      rx
> bytes                 3397585
>
> drops                      19719
>
> punts                         21
>
> ip4                        13789
>
> ip6                          735
> VirtualEthernet0/0/0              2         up
>
> When I am trying to launch a VM using VPP socket, getting error:
>
> sudo qemu-system-x86_64 -enable-kvm -m 512 -smp 2  -chardev
> socket,id=char0,path=/tmp/sock1.sock -netdev 
> vhost-user,id=mynet1,chardev=char0
> -device virtio-net-pci,netdev=mynet1,mac=52:54:00:02:d9:0a  -numa
> node,memdev=mem -mem-prealloc Downloads/clear-16280-kvm.img
>
> qemu-system-x86_64: -netdev vhost-user,id=mynet1,chardev=char0: Invalid
> parameter 'vhost-user'
>
> I am very new to VPP. Any idea about this error?
>
> Thanks
>
> Divya
>
>
>
_______________________________________________
vpp-dev mailing list
[email protected]
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to