[libvirt-users] virtio channel socket bind error
Cristian Ciupitu
cristian.ciupitu at yahoo.com
Fri Sep 27 10:23:10 UTC 2013
On 25.09.2013 19:17, Chunduru Venkata, Ravi wrote:
> Hi All,
> My intent is to make virtio unix channel work. I could configure the
> XML and launch VM and could see the port in /dev/virtio-ports
>
> <channel type='unix'>
> <source mode='bind' path='/tmp/appl_port'/>
> <target type='virtio' name='appl_port'/>
> <address type='virtio-serial' controller='0' bus='0' port='1'/>
> </channel>
>
> When I see on the host, the unix socket is already binded and is in
> listening state.
>
> echo "test this" > /tmp/appl_port
> bash: /tmp/appl_port: No such device or address
Try this:
echo "test this" | socat - UNIX-CONNECT:/tmp/appl_port
You can't write to socket files the way you write to normal files.
Cheers,
Cristian Ciupitu
More information about the libvirt-users
mailing list