How correctly set up a network?

Hello.
I have some problem with a network on kmv virtual machines.
On a node (Centos7) i created bridge:

NAME=“eth0”
DEVICE=“eth0”
ONBOOT=yes
BRIDGE=br0
TYPE=Ethernet

DEVICE=“br0”
ONBOOT=yes
NETBOOT=yes
BOOTPROTO=static
TYPE=“Bridge”
IPADDR=10.10.1.10
PREFIX=22
GATEWAY=10.10.1.1
DNS1=10.10.1.2
DNS2=10.10.1.3

Via a frontend i added the virtual network with range of ip address 192.168.1.10 - 192.168.1.20:
Снимок экрана в 2020-03-24 16-24-47

And added the virtual network to my virtual machine.
But the virtual machine received a IP from dhcp the network where is the node.
Why it happened? And how correctly set up network with IPs from the virtual network? Thank you.

Hello, you need to setup contextualization on your VMs in order for OpenNebula to control it’s internal IP address assignment, among other things. The images from the marketplace already have the contextualization package installed.

1 Like

Thank you so much.