<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif;color:rgb(11,83,148)">I am using a custom qemu to launch a vhost enabled VM. The qemu doesn't use the default "/dev/vhost-net" directory as character device. Due to this I am getting the error:</div>
<div class="gmail_default" style="font-family:georgia,serif;color:rgb(11,83,148)"><br></div><div class="gmail_default" style="font-family:georgia,serif;color:rgb(11,83,148)"><div class="gmail_default">qemu-system-x86_64: -netdev type=tap,id=net1,script=no,downscript=no,ifname=port3,vhost=on: vhost-net requested but could not be initialized</div>
<div class="gmail_default"><br></div></div><div><div class="gmail_default" style="font-family:georgia,serif;color:rgb(11,83,148)">​Is there a way to tell libvirt to ​avoid using the default /dev/vhost-net file?</div><div class="gmail_default" style="font-family:georgia,serif;color:rgb(11,83,148)">
<br></div><div class="gmail_default" style="font-family:georgia,serif;color:rgb(11,83,148)">I have tried using the pass-through arguments but libvirt still processes the command and throws the error.</div><div class="gmail_default" style="font-family:georgia,serif;color:rgb(11,83,148)">
<br></div><div class="gmail_default" style="font-family:georgia,serif;color:rgb(11,83,148)">PS: I can successfully create a vhost VM using qemu command-line, so this is a libvirt issue.</div><br></div>-- <br><div dir="ltr">
<div>Cheers, </div><div><br></div>Asadullah Hussain</div>
</div>