Re: virtio channel socket bind error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users





[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux