<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>I am assuming source mode is for the host. Bind means server and connect would mean client.</div>
<div><br>
</div>
<div>The other part is still pending.</div>
<div>On host, when I run cat  it gives no such device or address </div>
<div><br>
</div>
<div>Or a  python program to bind the socket (in my case /tmp/appl_port) it gives </div>
<div>'unable to connect to virtio-serial port. Error: %s', error(111, 'Connection refused'))</div>
<div><br>
</div>
<div>Am I missing something?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>-Ravi. </div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>"<Chunduru Venkata>", "Chunduru Venkata, Ravi" <<a href="mailto:schunduruvenkata@paypal.com">schunduruvenkata@paypal.com</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, September 25, 2013 10:17 AM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a>" <<a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a>><br>
<span style="font-weight:bold">Subject: </span>[libvirt-users] virtio channel socket bind error<br>
</div>
<div><br>
</div>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>Hi All,</div>
<div>  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</div>
<div><br>
</div>
<div>
<div>   <channel type='unix'></div>
<div>      <source mode='bind' path='/tmp/appl_port'/></div>
<div>      <target type='virtio' name='appl_port'/></div>
<div>      <address type='virtio-serial' controller='0' bus='0' port='1'/></div>
<div>    </channel></div>
</div>
<div><br>
</div>
<div>When I see on the host, the unix socket is already binded and is in listening state.</div>
<div><br>
</div>
<div>
<div>echo "test this" > /tmp/appl_port</div>
<div>bash: /tmp/appl_port: No such device or address</div>
</div>
<div><br>
</div>
<div>
<div>netstat -nax | grep appl_port</div>
<div>unix  2      [ ACC ]     STREAM     LISTENING     15302258 /tmp/appl_port</div>
</div>
<div><br>
</div>
<div>1) Can some one please have a look and help me fix this.</div>
<div>2) if I don't set source mode to 'bind', it gets set to 'connect' in xml and VM fails to boot up. I would like to understand the different types of source mode.</div>
<div>Dmesg shows below denied message for connect mode.</div>
<div>84616.025345] type=1400 audit(1380129082.835:210): apparmor="DENIED" operation="capable" parent=1 profile="/usr/sbin/libvirtd" pid=9804 comm="libvirtd" pid=9804 comm="libvirtd" capability=29  capname="audit_write"</div>
<div><br>
</div>
<div>Thanks,</div>
<div>-Ravi.</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<br>
</div>
</div>
</span>
</body>
</html>