Error: Failed add validation for device “eth1”: Instance DNS name conflict between “eth1” and “eth0” because both are connected to same network

Hi everyone,

I want to add two network interface to any container but cant achieve this instead I changed the dns.mode=none. What is the best way to do this? Or what could be the best practical approach.

Here is the error message.

Error: Failed add validation for device “eth1”: Instance DNS name “keya” conflict between “eth1” and “eth0” because both are connected to same network.
Regards.

dns.mode=none is the main way to achieve that, otherwise dnsmasq is going to get confused having the same instance attached twice

Thanks @stgraber , I want to setup keepalive service to make a HA, are there any restrictions for incus containers and should pay attention to?

Regards.

I don’t think so, basic VIP management shouldn’t need extra privileges.

Sorry to open this thread again, I think that the dns.mode does not exist on the OVN. Here is my network configuration, how can I setup configuration like this? Regards.

[indiana@fedora ~]$ incus network show projectx
config:
  bridge.mtu: "1500"
  ipv4.address: 10.146.175.1/24
  ipv4.dhcp: "true"
  ipv4.nat: "true"
  ipv6.address: fd42:f173:c7d9:a0cb::1/64
  ipv6.dhcp: "true"
  ipv6.nat: "true"
  network: UPLINK
  volatile.network.ipv4.address: 172.16.100.11
description: ""
name: projectx

Can you file a feature request at GitHub · Where software is built for dns.mode to be implemented in the OVN driver?

It shouldn’t be too difficult to implement dns.mode=none at least, effectively not providing a DNS record to OVN.

Thanks Stephane, the request entered to the GitHub. https://github.com/lxc/incus/issues/2479

Regards.