DPDK usage discussions
 help / color / mirror / Atom feed
From: David Christensen <drc@linux.vnet.ibm.com>
To: "users@dpdk.org" <users@dpdk.org>
Subject: [dpdk-users] Connecting VM to example/vhost Application Fails with "Failed to unlink"
Date: Wed, 3 Mar 2021 14:19:41 -0800
Message-ID: <e88e615e-9b0a-d176-3a53-3ae38304a63c@linux.vnet.ibm.com> (raw)

Trying to connect a VM to the example/vhost switch application.  The 
dpdk-vhost command line and output as follows:

$ sudo ./build/examples/dpdk-vhost -l 120-127 -n 4 --socket-mem 
0,0,0,0,0,0,0,0,2048 --no-pci  -- -p 1 --socket-file /tmp/sock0
EAL: Detected 160 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: No available hugepages reported in hugepages-2048kB
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: No legacy callbacks, legacy socket not created
Specified port number(1) exceeds total system port number(0)
VHOST_DATA: Procesing on Core 121 started
VHOST_DATA: Procesing on Core 122 started
VHOST_DATA: Procesing on Core 126 started
VHOST_DATA: Procesing on Core 125 started
VHOST_DATA: Procesing on Core 123 started
VHOST_DATA: Procesing on Core 127 started
VHOST_CONFIG: vhost-user server: socket created, fd: 48
VHOST_DATA: Procesing on Core 124 started
VHOST_CONFIG: bind to /tmp/sock0

VM configuration in the libvirt XML as follows:

     <interface type='vhostuser'>
       <mac address='52:54:00:f8:1a:b4'/>
       <source type='unix' path='/tmp/sock0' mode='server'/>
       <model type='virtio'/>
       <driver queues='4' rx_queue_size='1024' tx_queue_size='1024'>
         <host csum='on' gso='on'/>
         <guest csum='on' tso4='on' tso6='on' ecn='on'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' 

VM fails to start with the following error:

$ sudo virsh start --console dpdk-server-0
error: Failed to start domain dpdk-server-0
error: internal error: process exited while connecting to monitor: 
2021-03-03T22:16:20.767940Z qemu-system-ppc64: -chardev 
socket,id=charnet0,path=/tmp/sock0,server: Failed to unlink socket 
/tmp/sock0: Operation not permitted

I'm able to start the VM with OVS/DPDK (2.15.0/20.11) and testpmd from 
DPDK, but not the vhost switch application.  Any suggestions?


                 reply	other threads:[~2021-03-03 22:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e88e615e-9b0a-d176-3a53-3ae38304a63c@linux.vnet.ibm.com \
    --to=drc@linux.vnet.ibm.com \
    --cc=users@dpdk.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

DPDK usage discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/users/0 users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 users users/ https://inbox.dpdk.org/users \
	public-inbox-index users

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git