VM eth0 no configured

Hello community

I am new to OpenNebula and doing my first steps.
My setup is a frontend server and two compute nodes with opennebula community 6.10.0 on oracle linux 9.5
I configured the Virtual Networks with 802.1Q VLAN, my problem is, eth0 of every VM has no IP configured within the VM. I see the assigned IP in the frontend but eth0 of the VM is just not configured.
If I configure eth0 manually I can connect to the VM, so bridge/vlan setup seems to be ok.

I checked /var/run/one-context/context.sh.network on the vm over the remote console and there I see the same information as in /var/lib/one/vms/21/context.sh on the frontend server

# Context variables generated by OpenNebula
DISK_ID='1'
ETH0_DNS='192.168.101.1'
ETH0_EXTERNAL=''
ETH0_GATEWAY='192.168.101.1'
ETH0_IP='192.168.101.11'
ETH0_IP6=''
ETH0_IP6_GATEWAY=''
ETH0_IP6_METHOD=''
ETH0_IP6_METRIC=''
ETH0_IP6_PREFIX_LENGTH=''
ETH0_IP6_ULA=''
ETH0_MAC='02:00:c0:a8:65:0b'
ETH0_MASK='24'
ETH0_METHOD='static'
ETH0_METRIC=''
ETH0_MTU=''
ETH0_NETWORK='192.168.101.0'
ETH0_SEARCH_DOMAIN=''
ETH0_VLAN_ID='101'
ETH0_VROUTER_IP=''
ETH0_VROUTER_IP6=''
ETH0_VROUTER_MANAGEMENT=''
NETWORK='YES'

I am a little bit lost at the moment and I hope someone has an idea, what I did wrong or what to check.

Thank you
Michael

I found it, the problem is in the “virtual network” => Context

The subnet mask has to be in dotted decimal notation (e.g 255.255.255.0) and not as CIDR notation (e.g. 24).

After changing the subnet mask the ip is correctly configured within the vms.

Hello @Michael_Wirz,

Welcome to this forum, if the above comment is the solution, can you mark it as resolved then?
Let us know if you found other issues on your OpenNebula journey :wink:

Cheers,