the VM are created in system mode.

I have created another one, in session mode, in this case "virsh edit VM"   is 
not working

I don't know how to check how libvirtd is running !!!   ( system or user mode )


Internal
-----Message d'origine-----
De : Michal Prívozník <mpriv...@redhat.com>
Envoyé : lundi 11 septembre 2023 13:47
À : Laurent Coloby <laurent.col...@se.com>; Ilya Maximets <i.maxim...@ovn.org>; 
Eelco Chaudron <echau...@redhat.com>
Cc : b...@openvswitch.org
Objet : Re: [ovs-discuss] open vswitch and libvirt

[External email: Use caution with links and attachments]

________________________________



On 9/11/23 13:06, Laurent Coloby wrote:
>
> Hello Michal
>
> Please find request info
>
>
>     </controller>
>     <interface type='bridge'>
>       <mac address='52:54:00:8f:ab:4c'/>
>       <source bridge='pon'/>
>       <virtualport type='openvswitch'>
>         <parameters interfaceid='7de3210a-399d-4c45-9fc6-2328851b25c9'/>
>       </virtualport>
>       <model type='e1000e'/>
>       <address type='pci' domain='0x0000' bus='0x01' slot='0x00' 
> function='0x0'/>
>     </interface>
>     <serial type='pty'>

This looks okay.

>
>
> ######################################################################
> ############################
>
>
>
> 2023-09-08 16:08:34.470+0000: 1060: info : libvirt version: 8.0.0,
> package: 1ubuntu7.5 (Marc Deslauriers <marc.deslauri...@ubuntu.com>
> Fri, 26 May 2023 10:08:33 -0400)
> 2023-09-08 16:08:34.470+0000: 1060: info : hostname:
> coloby-ThinkPad-E15-Gen-2
> 2023-09-08 16:08:34.470+0000: 1060: error : virCommandWait:2748 :
> internal error: Child process (ovs-vsctl --timeout=5 -- --may-exist
> add-port pon vnet0 -- set Interface vnet0
> 'external-ids:attached-mac="52:54:00:93:19:c3"' -- set Interface vnet0
> 'external-ids:iface-id="e671811c-1e48-42f8-a68b-c7bb63f210ec"' -- set
> Interface vnet0
> 'external-ids:vm-id="cdd5063a-1e08-4528-a352-c16f5d73efe6"' -- set
> Interface vnet0 external-ids:iface-status=active) unexpected exit
> status 126: libvirt:  error : cannot execute binary ovs-vsctl:
> Permission denied

But this is the root cause. Something is preventing libvirt from executing 
ovs-vsctl. This can be a simple permissions issue (is this qemu:///session or 
qemu:///system, i.e. is libvirtd running as a regular user or as root?), or 
something more complicated (SELinux, AppArmor, ...).

Michal

_______________________________________________
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to