Re: KubeVirt with libvirt 9.0.0: Requested operation is not valid: The tap0 interface already exists

2023-01-23 Thread Michal Prívozník
On 1/19/23 11:25, Vasily Ulyanov wrote: > Hi All, > > I am now trying to run our downstream KubeVirt build with a recent libvirt > 9.0.0 > and I see a problem that libvirt refuses to start a VM if it is configured to > use a pre-created tap device: > > virError(Code=55, Domain=0,

Re: KubeVirt with libvirt 9.0.0: Requested operation is not valid: The tap0 interface already exists

2023-01-19 Thread Martin Kletzander
On Thu, Jan 19, 2023 at 01:36:55PM +0100, Vasily Ulyanov wrote: Looking at the code now. src/util/virnetdevtap.c (qemuInterfaceEthernetConnect): if (net->managed_tap == VIR_TRISTATE_BOOL_NO) { ... } else { ... tap_create_flags |= VIR_NETDEV_TAP_CREATE_ALLOW_EXISTING;

Re: KubeVirt with libvirt 9.0.0: Requested operation is not valid: The tap0 interface already exists

2023-01-19 Thread Vasily Ulyanov
Looking at the code now. src/util/virnetdevtap.c (qemuInterfaceEthernetConnect): if (net->managed_tap == VIR_TRISTATE_BOOL_NO) { ... } else { ... tap_create_flags |= VIR_NETDEV_TAP_CREATE_ALLOW_EXISTING; ... } Shouldn't it be the other way around?

KubeVirt with libvirt 9.0.0: Requested operation is not valid: The tap0 interface already exists

2023-01-19 Thread Vasily Ulyanov
Hi All, I am now trying to run our downstream KubeVirt build with a recent libvirt 9.0.0 and I see a problem that libvirt refuses to start a VM if it is configured to use a pre-created tap device: virError(Code=55, Domain=0, Message='Requested operation is not valid: The tap0 interface already