Hello,
I’m setting up a 3-node MicroCloud cluster and having issues with OVN uplink network configuration for VMs.
My Setup:
- 3 nodes: microcloud-01, microcloud-02, microcloud-03
- Uplink network: 192.168.90.0/24 connected via VLAN 90
- Physical interface:
enp10s0(no IP assigned directly) - VLAN interface:
enp10s0.90(has IP 192.168.90.11/24) - Server management IP is on the VLAN interface, not the physical interface
Network Configuration:
yaml
ethernets:
enp10s0:
dhcp4: false
dhcp6: false
# No IP - used as trunk
vlans:
enp10s0.90:
id: 90
link: enp10s0
addresses: [192.168.90.11/24]
routes:
- to: default
via: 192.168.90.1
Current MicroCloud Configuration: During microcloud init, I specified:
- OVN uplink interface:
enp10s0(physical interface without IP) - IPv4 gateway: 192.168.90.1/24
This created an UPLINK network with type: physical.
The Problem: When I try to create a VM and assign it a NIC from the UPLINK network:
bash
lxc config device add myvm eth0 nic network=UPLINK name=eth0
I get this error:
Failed setting up device via monitor: Failed setting up device "eth0":
Failed adding NIC device: vfio 0000:0a:00.0: group 15 is not viable
My Questions:
- Should I create an OVS bridge (like
uplink-br) withenp10s0as a port and use that as the OVN uplink interface instead of the physical interface directly? - What should be the correct network type for UPLINK - physical, bridge, or OVN?
- How should I configure the uplink interface when using VLANs? Should I:
- Use the physical interface (
enp10s0) without IP? - Create an OVS bridge first?
- Is there a proper way to configure OVN uplink for both containers and VMs to work with the same network definition?