# I can't spin up VM on the second host of my cluster

**URL:** <https://forum.opennebula.io/t/i-cant-spin-up-vm-on-the-second-host-of-my-cluster/13367>\
**Category:** Product Support\
**Created:** [December 12, 2024, 1:37pm UTC](https://forum.opennebula.io/t/i-cant-spin-up-vm-on-the-second-host-of-my-cluster/13367 "2024-12-12T13:37:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chaoyi.zhang](https://avatars.discourse-cdn.com/v4/letter/c/f1d935/32.png) [@chaoyi.zhang](https://forum.opennebula.io/u/chaoyi.zhang)\
**Post date:** [December 12, 2024, 1:37pm UTC](https://forum.opennebula.io/t/i-cant-spin-up-vm-on-the-second-host-of-my-cluster/13367/1 "2024-12-12T13:37:57Z")

</div>

Please, describe the problem here and provide additional information below (if applicable) …

I’ve added two hosts (host id = 1 and 3) into my cluster (cluster id = 100). The network settings of the two hosts are exactly the same. I can spin up vm on the first host without any issue. But while instantiating vm on the second host, I always got the error.  
Cannot dispatch VM: No host meets capacity and SCHED\_REQUIREMENTS: (CLUSTER\_ID = 0 | CLUSTER\_ID = 100) & !(PUBLIC\_CLOUD = YES) & !(PIN\_POLICY = PINNED) & ( (HYPERVISOR=kvm) & (HOST\_ID = 3) ).  
The SCHED\_REQUIREMENTS (before HYPERVISOR = kvm) were added automatically by OpenNebula which I can’t delete.

Also when I use onecluster to display the resource of this cluster, I see the total CPU/memory is the sum of both hosts.  
By the way, I’ve setup the image datastore as ‘shared’ (NFS). And the rest two datastores (system and files) are ssh (local storage).

Could someone guide me how I can spin up vm on the second host?

Appreciate it! Thanks!

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

**Steps to reproduce:**

**Current results:**

**Expected results:**

---

<div class="post-metadata">

**Author:** ![kemcfarl](https://avatars.discourse-cdn.com/v4/letter/k/d78d45/32.png) [@kemcfarl](https://forum.opennebula.io/u/kemcfarl)\
**Post date:** [December 12, 2024, 4:13pm UTC](https://forum.opennebula.io/t/i-cant-spin-up-vm-on-the-second-host-of-my-cluster/13367/2 "2024-12-12T16:13:26Z")

</div>

Hi, It feels good to be at the point that I can now help someone else 🙂  
Please see the last post to this item:

> [@Onprem Cannot schedule VM, there is no suitable host -](https://forum.opennebula.io/t/onprem-cannot-schedule-vm-there-is-no-suitable-host/13209/6):
>
> After some significant debugging and reviewing the Scheduler.cc code I found the issue/WebUI bug. This works: (HYPERVISOR=kvm) & (ID = 20) WebUI give this by default: (HYPERVISOR=undefined) & (HOST\_ID = 20) It was somewhat obvious to change “undefined” to “kvm” but the HOST ID… well that took a few days to figure out. === Debugging Details Workaround # was to put HOST\_ID as an attribute on each host, but that wasn’t the best fix. The HOST have an “ID” value, but needed to have “HOST\_ID”…

bottom-line Sunstone Web UI issue.  
change this part of the rule give incorrectly by the UI.

from: (HOST\_ID = 3)  
to: (ID = 3)

---

<div class="post-metadata">

**Author:** ![chaoyi.zhang](https://avatars.discourse-cdn.com/v4/letter/c/f1d935/32.png) [@chaoyi.zhang](https://forum.opennebula.io/u/chaoyi.zhang)\
**Post date:** [December 18, 2024, 10:31am UTC](https://forum.opennebula.io/t/i-cant-spin-up-vm-on-the-second-host-of-my-cluster/13367/3 "2024-12-18T10:31:43Z")

</div>

Wow! you are a genius! By simply changing the HOST\_ID into ID, it’s working now! It took me a lot of time to investigate and play the SCHED\_REQUIREMENTS… But I didn’t know that this is the issue…  
Also I find that there are some parameters which might be changed in the latest 6.10 version. I am still struggling to let the VM take the EXTRA\_ROUTING from the context of virtual networks after creating it. All the other network parameters pre-defined in the Virtual Networks have become effective, but not the EXTRA\_ROUTING. Maybe you have any tips?  
Again, thanks very much for your response!

---

<div class="post-metadata">

**Author:** ![kemcfarl](https://avatars.discourse-cdn.com/v4/letter/k/d78d45/32.png) [@kemcfarl](https://forum.opennebula.io/u/kemcfarl)\
**Post date:** [December 18, 2024, 10:48am UTC](https://forum.opennebula.io/t/i-cant-spin-up-vm-on-the-second-host-of-my-cluster/13367/4 "2024-12-18T10:48:06Z")

</div>

You are very welcome. I lost a few days on that one. I’m not familiar with the routing features you mentioned. I’m a rather new Open Nebula users.

I’d suggest a new post to the appropriate sub category.

Only TIP, I’ve found helpful for config/create issues with 1st release of new Web UI Sunstone, is to look at the same item on orig UI which is still active on release v6.10.0 but on port 80 URL. I figured out a few confusing issues this way.

Good Luck!
