<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif;color:rgb(11,83,148)"><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 24 July 2014 15:52, Daniel P. Berrange <span dir="ltr"><<a href="mailto:berrange@redhat.com" target="_blank">berrange@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="">On Thu, Jul 24, 2014 at 03:48:06PM +0500, Asadullah Hussain wrote:<br>

> Let me clarify my question, I am using unmodified stock qemu (1.4.0) and<br>
> only the location of vhost file descriptor is different from default (I<br>
> don't remove the default /dev/vhost-net directory)<br>
><br>
> The VHOST file descriptor is present in "/dev/vhost-0" directory instead of<br>
> the default "/dev/vhost-net". When I try to give vhostfd in the XML I get a<br>
> different error:<br>
<br>
</div>Well I suggest you make your system use the expected device<br>
name for /dev/vhost-net. Just as libvirt only targets mainline<br>
QEMU, we only target mainline kernel / standard device layout<br>
<div class=""><div class="h5"><br></div></div></blockquote><div class="gmail_default" style="font-family:georgia,serif;color:rgb(11,83,148)">​I was able to change my device name to /dev/vhost-net but still I get the error, the error itself isn't telling much about the problem:</div>
<div style="font-family:arial,sans-serif;font-size:13px"><font color="#0b5394" face="georgia, serif">2014-07-24 10:41:35.970+0000: 3183: error : qemuMonitorOpenUnix:293 : failed to connect to monitor socket: No such process</font></div>
<div style="font-family:arial,sans-serif;font-size:13px"><font color="#0b5394" face="georgia, serif">2014-07-24 10:41:35.970+0000: 3183: error : qemuProcessWaitForMonitor:1806 : internal error process exited while connecting to monitor: qemu-system-x86_64: -netdev type=tap,id=net1,script=no,downscript=no,ifname=port4,vhost=on: vhost-net requested but could not be initialized</font></div>
<div class="gmail_default" style="font-family:georgia,serif;color:rgb(11,83,148)"><span style="font-size:13px">qemu-system-x86_64: -netdev type=tap,id=net1,script=no,</span><span style="font-size:13px">downscript=no,ifname=port4,</span><span style="font-size:13px">vhost=on: Device 'tap' could not be initialized</span>​</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5">
Regards,<br>
Daniel<br>
--<br>
|: <a href="http://berrange.com" target="_blank">http://berrange.com</a>      -o-    <a href="http://www.flickr.com/photos/dberrange/" target="_blank">http://www.flickr.com/photos/dberrange/</a> :|<br>
|: <a href="http://libvirt.org" target="_blank">http://libvirt.org</a>              -o-             <a href="http://virt-manager.org" target="_blank">http://virt-manager.org</a> :|<br>
|: <a href="http://autobuild.org" target="_blank">http://autobuild.org</a>       -o-         <a href="http://search.cpan.org/~danberr/" target="_blank">http://search.cpan.org/~danberr/</a> :|<br>
|: <a href="http://entangle-photo.org" target="_blank">http://entangle-photo.org</a>       -o-       <a href="http://live.gnome.org/gtk-vnc" target="_blank">http://live.gnome.org/gtk-vnc</a> :|<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div>Cheers, </div><div><br></div>Asadullah Hussain</div>
</div></div>