# IP not assigned to VM - alpine

**URL:** <https://forum.opennebula.io/t/ip-not-assigned-to-vm-alpine/13999>\
**Category:** Operations\
**Created:** [July 18, 2025, 8:12am UTC](https://forum.opennebula.io/t/ip-not-assigned-to-vm-alpine/13999 "2025-07-18T08:12:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hoosain](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/hoosain/32/8554_2.png) [@hoosain](https://forum.opennebula.io/u/hoosain)\
**Post date:** [July 18, 2025, 8:12am UTC](https://forum.opennebula.io/t/ip-not-assigned-to-vm-alpine/13999/1 "2025-07-18T08:12:16Z")

</div>

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

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/0/019d5475679fe59a4b10e157b871f9f8832a799e.png)

* * *

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

**Steps to reproduce:**

**Current results:**

**Expected results:**

---

<div class="post-metadata">

**Author:** ![brunorro](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/brunorro/32/7590_2.png) [@brunorro](https://forum.opennebula.io/u/brunorro)\
**Post date:** [July 18, 2025, 2:13pm UTC](https://forum.opennebula.io/t/ip-not-assigned-to-vm-alpine/13999/2 "2025-07-18T14:13:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![hoosain](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/hoosain/32/8554_2.png) [@hoosain](https://forum.opennebula.io/u/hoosain)\
**Post date:** [July 19, 2025, 5:22am UTC](https://forum.opennebula.io/t/ip-not-assigned-to-vm-alpine/13999/3 "2025-07-19T05:22:04Z")

</div>

> [@brunorro](#):
>
> `Add network contextualization` option

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

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/a/a051c153d459a9516ff521531e6fe480ab1c7e9e.png)

---

<div class="post-metadata">

**Author:** ![brunorro](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/brunorro/32/7590_2.png) [@brunorro](https://forum.opennebula.io/u/brunorro)\
**Post date:** [July 21, 2025, 1:53pm UTC](https://forum.opennebula.io/t/ip-not-assigned-to-vm-alpine/13999/4 "2025-07-21T13:53:58Z")

</div>

For OpenNebula to set up the network by default, you need to set `Context` → `Method` 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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/1/14d66f1130b9cd292905f575da9b68a9f574dd03.png) [@system](https://forum.opennebula.io/u/system)\
**Post date:** [August 20, 2025, 1:54pm UTC](https://forum.opennebula.io/t/ip-not-assigned-to-vm-alpine/13999/5 "2025-08-20T13:54:49Z")

</div>

Closed on August 20, 2025, 1:54pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
