IP not assigned to VM - alpine

I created an alpine vm and tried setting static and dhcp IP. However no IP is assigned. using one v7 See Below


Versions of the related components and OS (frontend, hypervisors, VMs):

Steps to reproduce:

Current results:

Expected results:

Welcome to OpenNebula Forum!

  • Are you using the OpenNebula’s Marketplace image? Does the VM template have the Add network contextualization option turned on?
  • What kind of Virtual Network are you using (bridged, 802.1q, VXLAN, ovswitch)?
  • The contextualization on Alpine should get an IP from a valid range on the associated virtual network. Does the Virtual Network have a valid IP range?
  • Have you tried to set up manually an IP (i.e. with an ip add add X.X.X.X/Y dev eth0) to check if the VM can reach anything on that network?

Thank you

An IP is assigned by opennebula - see screenshot below, howeverip a` does not show the IP assigned.
Static IP works fine.

For OpenNebula to set up the network by default, you need to set ContextMethod as none (Use default). Setting it up to dhcp means that you have a DHCP server on the same Virtual Network (i.e., on a 802.1q network segment).

OpenNebula does not use a DHCP server inside, the contextualization sets up the network automatically.