# When I create a virtual machine he status is forever "pending"

**URL:** <https://forum.opennebula.io/t/when-i-create-a-virtual-machine-he-status-is-forever-pending/828>\
**Category:** Product Support\
**Created:** [June 6, 2015, 4:05pm UTC](https://forum.opennebula.io/t/when-i-create-a-virtual-machine-he-status-is-forever-pending/828 "2015-06-06T16:05:13Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![cesarufmt](https://avatars.discourse-cdn.com/v4/letter/c/58f4c7/32.png) [@cesarufmt](https://forum.opennebula.io/u/cesarufmt)\
**Post date:** [June 6, 2015, 4:05pm UTC](https://forum.opennebula.io/t/when-i-create-a-virtual-machine-he-status-is-forever-pending/828/1 "2015-06-06T16:05:13Z")

</div>

Hello everybody.  
Okay !?

I am Brazilian and I apologize if I write something wrong.  
I need a help to implement OpenNebula with academic objective (master).

I have a virtual machine (4GB RAM, 100 GB HD) as frontend using Centos7 and have two physical hosts (8GB RAM, 500GB HD) using Centos7 well.

I’m using version 4.8 OpenNebula.

Managed to create network, cluster, datastore, insert images and create templates …

I’m having problems when creating virtual machines, the status is forever “pending” and can not get more information in the logs. I’ve tried to create other datastores, use other images and the problem continues.

Could anyone help?

From already thank you very much.

---

<div class="post-metadata">

**Author:** ![VURoland](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/vuroland/32/7682_2.png) [@VURoland](https://forum.opennebula.io/u/VURoland)\
**Post date:** [June 7, 2015, 1:21pm UTC](https://forum.opennebula.io/t/when-i-create-a-virtual-machine-he-status-is-forever-pending/828/2 "2015-06-07T13:21:11Z")

</div>

hi Cesar,

the reason for the VM not being deployed can be found in /var/log/one/sched.log  
This is where opennebula logs what happens when deploying a VM and deciding where it will deploy it. If you need more help, please post the log of a VM and the relevant part of the log from sched.log, so we can take a look at what happens.

hope this helps !

---

<div class="post-metadata">

**Author:** ![cesarufmt](https://avatars.discourse-cdn.com/v4/letter/c/58f4c7/32.png) [@cesarufmt](https://forum.opennebula.io/u/cesarufmt)\
**Post date:** [June 11, 2015, 2:05am UTC](https://forum.opennebula.io/t/when-i-create-a-virtual-machine-he-status-is-forever-pending/828/3 "2015-06-11T02:05:51Z")

</div>

It’s solved. I copy again SSH key to host remote and restarted the nodes.

Thanks!!!

---

<div class="post-metadata">

**Author:** ![UAnton](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/uanton/32/6309_2.png) [@UAnton](https://forum.opennebula.io/u/UAnton)\
**Post date:** [January 18, 2016, 1:21pm UTC](https://forum.opennebula.io/t/when-i-create-a-virtual-machine-he-status-is-forever-pending/828/4 "2016-01-18T13:21:36Z")

</div>

Hi! I have some problem. My VM only in PENDING state.

sched.log

Mon Jan 18 15:18:27 2016 [Z0][VM][D]: Found 1 pending/rescheduling VMs.  
Mon Jan 18 15:18:27 2016 [Z0][HOST][D]: Discovered 3 enabled hosts.  
Mon Jan 18 15:18:27 2016 [Z0][SCHED][D]: Dispatching VMs to hosts:  
VMID Host System DS  
-------------------------

---

<div class="post-metadata">

**Author:** ![atodorov\_storpool](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/atodorov_storpool/32/5327_2.png) [@atodorov\_storpool](https://forum.opennebula.io/u/atodorov_storpool)\
**Post date:** [January 18, 2016, 9:27pm UTC](https://forum.opennebula.io/t/when-i-create-a-virtual-machine-he-status-is-forever-pending/828/5 "2016-01-18T21:27:18Z")

</div>

Hi Anton Zubkov,

In general, speaking with my experience with OpenNebula, a VM is in PENDING state when it is waiting for a resource to be available. It could be datastore, hypervisor host, CPU, MEMORY, etc.

So lets clear out issues one by one.

Please provide some more info about your setup - OpenNebula’s version, setup, configuration, resources, etc.

Kind Regards,  
Anton Todorov

---

<div class="post-metadata">

**Author:** ![akshaygupta](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/akshaygupta/32/4699_2.png) [@akshaygupta](https://forum.opennebula.io/u/akshaygupta)\
**Post date:** [June 20, 2016, 8:26am UTC](https://forum.opennebula.io/t/when-i-create-a-virtual-machine-he-status-is-forever-pending/828/6 "2016-06-20T08:26:41Z")

</div>

i am also having the same problem  
vm is in pending state since a long time  
here are my logs

Mon Jun 20 13:55:10 2016 [Z0][SCHED][I]: Dispatching VMs to hosts. Total time: 3.1571e-05s  
Mon Jun 20 13:55:40 2016 [Z0][SCHED][I]: Getting scheduled actions information. Total time: 0.00312423s  
Mon Jun 20 13:55:40 2016 [Z0][VM][D]: Found 1 pending/rescheduling VMs.  
Mon Jun 20 13:55:40 2016 [Z0][HOST][D]: Discovered 2 enabled hosts.  
Mon Jun 20 13:55:40 2016 [Z0][SCHED][I]: Getting VM and Host information. Total time: 0.00549406s  
Mon Jun 20 13:55:40 2016 [Z0][SCHED][D]: Match-making results for VM 44:  
Cannot schedule VM, there is no suitable host.

Mon Jun 20 13:55:40 2016 [Z0][SCHED][D]: Match Making statistics:  
Number of VMs: 1  
Total time: 0s  
Total Match time: 2.29699e-06s  
Total Ranking Time: 0s  
Mon Jun 20 13:55:40 2016 [Z0][SCHED][D]: Dispatching VMs to hosts:  
VMID Host System DS  
-------------------------

Mon Jun 20 13:55:40 2016 [Z0][SCHED][I]: Dispatching VMs to hosts. Total time: 3.146e-05s

please help me

---

<div class="post-metadata">

**Author:** ![amira](https://avatars.discourse-cdn.com/v4/letter/a/d6d6ee/32.png) [@amira](https://forum.opennebula.io/u/amira)\
**Post date:** [May 25, 2017, 10:54pm UTC](https://forum.opennebula.io/t/when-i-create-a-virtual-machine-he-status-is-forever-pending/828/7 "2017-05-25T22:54:35Z")

</div>

i have also the same problem i install opennebula 5.2 on ubuntu server 16.04  
sched.log

Wed May 24 01:43:44 2017 [Z0][VM][D] : Found 4 pending/rescheduling VMs.  
Wed May 24 01:43:44 2017 [Z0][HOST][D] : Discovered 1 enabled hosts.  
Wed May 24 01:43:44 2017 [Z0][SCHED][D] : Match-making results for VM 13: Cannot schedule VM, there is no suitable host.  
please help me

---

<div class="post-metadata">

**Author:** ![UAnton](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/uanton/32/6309_2.png) [@UAnton](https://forum.opennebula.io/u/UAnton)\
**Post date:** [May 26, 2017, 9:58am UTC](https://forum.opennebula.io/t/when-i-create-a-virtual-machine-he-status-is-forever-pending/828/8 "2017-05-26T09:58:36Z")

</div>

Hello,  
What in “onehost list”?

---

<div class="post-metadata">

**Author:** ![amira](https://avatars.discourse-cdn.com/v4/letter/a/d6d6ee/32.png) [@amira](https://forum.opennebula.io/u/amira)\
**Post date:** [May 28, 2017, 10:29am UTC](https://forum.opennebula.io/t/when-i-create-a-virtual-machine-he-status-is-forever-pending/828/9 "2017-05-28T10:29:55Z")

</div>

Thank you for answering me soon enough, I have this as answer ![](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/9/9eea1889e6dde579aba1e60577a2519d64463663.PNG)
