<div dir="ltr"><div><div><div>Spot on! The script qemu-ifup was indeed the cause of the problem. It's a dummy script that only does "exit 0" and it was apparently needed in the past with old versions of libvirt. I see examples on the net  where it is used to configure interfaces with shell commands. I don't need it.<br><br>I see that everything works fine without the <script path="/opt/oa/etc/qemu-ifup"/> line, for vhostuser and ethernet interfaces. Are there any side effects or can I safely remove that line?<br><br></div>Thanks again!<br></div><br></div>Riccardo<br><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On 22 February 2018 at 20:55, Laine Stump <span dir="ltr"><<a href="mailto:laine@redhat.com" target="_blank">laine@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail-HOEnZb"><div class="gmail-h5">[...]<br>
>     <interface type="vhostuser"><br>
>       <script path="/opt/oa/etc/qemu-ifup"/><br>
<br>
</div></div>^^^^^^^^^^^^^^^^ Why do you have this line?<br>
<span class="gmail-"><br>Spo> $ virsh create vm.xml<br>
> error: Failed to create domain from vm.xml<br>
> error: unsupported configuration: scripts are not supported on<br>
> interfaces of type vhostuser<br>
<br>
</span>This error message tells you exactly what is wrong. The <script> element<br>
is only supported for interfaces of type='ethernet' - these are<br>
interfaces for which a tap device is created, but it's not connected to<br>
anything; the purpose of the script is to connect the tap to device to<br>
[something user-defined]. Other types of interface (e.g. vhost-user)<br>
should have enough intelligence built into the code to perform all<br>
necessary setup.<br>
<br>
Do you actually have something in this qemu-ifup file?<br>
<div><div class="gmail-h5"><br>
<br>
><br>
><br>
> The logs from libvirtd.log say:<br>
> 2018-02-22 09:18:24.982+0000: 2033: warning :<br>
> qemuProcessStartWarnShmem:4539 : Detected vhost-user interface without<br>
> any shared memory, the interface might not be operational<br>
> 2018-02-22 09:18:24.982+0000: 2033: error : qemuBuildHostNetStr:3894 :<br>
> unsupported configuration: scripts are not supported on interfaces of<br>
> type vhostuser<br>
><br>
> The logs from qemu simply say:<br>
> 2018-02-22 09:26:15.857+0000: shutting down, reason=failed<br>
><br>
> And finally, ovs-vswitchd.log:<br>
> 2018-02-22T09:18:24.715Z|<wbr>00328|dpdk|INFO|VHOST_CONFIG: vhost-user<br>
> client: socket created, fd: 51<br>
> 2018-02-22T09:18:24.716Z|<wbr>00329|netdev_dpdk|INFO|vHost User device '0.vm'<br>
> created in 'client' mode, using client socket '/opt/oa/vhost/0.vm.sock'<br>
> 2018-02-22T09:18:24.718Z|<wbr>00330|dpdk|WARN|VHOST_CONFIG: failed to connect<br>
> to /opt/oa/vhost/0.vm.sock: No such file or directory<br>
> 2018-02-22T09:18:24.718Z|<wbr>00331|dpdk|INFO|VHOST_CONFIG:<br>
> /opt/oa/vhost/0.vm.sock: reconnecting...<br>
> 2018-02-22T09:18:24.718Z|<wbr>00332|bridge|INFO|bridge switch1: added<br>
> interface 0.vm on port 5<br>
><br>
><br>
> Am I missing something on the openvswitch or on the libvirt side?<br>
><br>
> It looks like openvswitch can't find /opt/oa/vhost/0.vm.sock, but isn't<br>
> either openvswitch or libvirt in charge of creating it?<br>
> Then, I'm not too sure about the error messages in libvirtd.log...<br>
><br>
> My software versions are: libvirt 3.10.0, qemu 2.10.2, openvswitch 2.8.1<br>
> and DPDK 17.11.<br>
><br>
> Thanks a lot!<br>
><br>
> Riccardo<br>
><br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> libvirt-users mailing list<br>
> <a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/libvirt-users" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/libvirt-users</a><br>
><br>
<br>
</blockquote></div><br></div></div></div></div></div></div>