# Failed to create VM

**URL:** https://forum.opennebula.io/t/failed-to-create-vm/767
**Category:** Product Support
**Created:** [May 22, 2015, 5:23pm UTC](https://forum.opennebula.io/t/failed-to-create-vm/767 "2015-05-22T17:23:42Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Ramy](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/ramy/32/4373_2.png) [@Ramy](https://forum.opennebula.io/u/Ramy)
#### Post date: [May 22, 2015, 5:23pm UTC](https://forum.opennebula.io/t/failed-to-create-vm/767/1 "2015-05-22T17:23:42Z")

</div>

I’m trying to instantiate a virtual machine from the OpenNebula sunstone. The frontend is a CentOS machine with the sandbox installed. The two hosts are ubuntu 12.04 32 bits machines, and they can all connect each other with SSH without any password being asked.  
I first downloaded the ubuntu 12.04 server image (i386), then I added an image from the sunstone. Then I create a VM template using the previously loaded image, and finally I created a VM, but I got “status: error”.  
Here you can see the details about the template and the image, and the log file: [https://onedrive.live.com/redir?resid=768CF89E7CF13325!4429&authkey=!APi2Q9p-3i96l4U&ithint=folder%2C](https://onedrive.live.com/redir?resid=768CF89E7CF13325!4429&authkey=!APi2Q9p-3i96l4U&ithint=folder%2c)

I’ll also paste the contents of the log file here:

## Thu May 21 19:10:52 2015 [Z0][SCHED][I]: Init Scheduler Log system Thu May 21 19:10:52 2015 [Z0][SCHED][I]: Starting Scheduler Daemon

```
 Scheduler Configuration File       

```

* * *

## DEFAULT\_DS\_SCHED=POLICY=1 DEFAULT\_SCHED=POLICY=1 LIVE\_RESCHEDS=0 LOG=DEBUG\_LEVEL=3,SYSTEM=file MAX\_DISPATCH=30 MAX\_HOST=1 MAX\_VM=5000 MESSAGE\_SIZE=1073741824 ONED\_PORT=2633 SCHED\_INTERVAL=30

Thu May 21 19:10:52 2015 [Z0][SCHED][I]: XML-RPC client using 1073741824 bytes for response buffer.

Thu May 21 19:10:52 2015 [Z0][SCHED][E]: Cannot contact oned, will retry… Error: Unable to transport XML to server and get XML response back. HTTP POST to URL ‘[http://localhost:2633/RPC2](http://localhost:2633/RPC2)’ failed. libcurl failed even to execute the HTTP transaction, explaining: couldn’t connect to host  
Thu May 21 19:10:54 2015 [Z0][SCHED][I]: oned successfully contacted.  
Thu May 21 19:10:54 2015 [Z0][SCHED][I]: Configuring scheduler for Zone ID: 0  
Thu May 21 19:10:54 2015 [Z0][SCHED][I]: Starting scheduler loop…  
Thu May 21 19:10:54 2015 [Z0][SCHED][I]: Scheduler loop started.  
Thu May 21 19:42:25 2015 [Z0][SCHED][I]: Stopping the scheduler…  
Thu May 21 19:42:25 2015 [Z0][SCHED][I]: Scheduler loop stopped.

---

<div class="post-metadata">

### Author: ![ruben](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/ruben/32/19_2.png) [@ruben](https://forum.opennebula.io/u/ruben)
#### Post date: [May 25, 2015, 8:14am UTC](https://forum.opennebula.io/t/failed-to-create-vm/767/2 "2015-05-25T08:14:47Z")

</div>

You are probably using a proxy so the secheduler cannot access the oned  
URL. Unset the proxy variable before starting the scheduler. Also, if you  
are not using a proxy, check that oned is accessible from the machine  
running the scheduler (with oneadmin credentials)

---

<div class="post-metadata">

### Author: ![dekloper](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@dekloper](https://forum.opennebula.io/u/dekloper)
#### Post date: [August 19, 2015, 5:37am UTC](https://forum.opennebula.io/t/failed-to-create-vm/767/3 "2015-08-19T05:37:12Z")

</div>

I have a problem, as described above, too. I have not set variables, but… problems with xml-rpc…  
Even if it says that the HTTP POST method is empty (because I have no idea of what parameters I should pass), from the response message I get that the HTTP server is reachable.  
I tried to connect to [http://localhost:2633/RPC2](http://localhost:2633/RPC2) via terminal:

```
curl --data "" http://localhost:2633/RPC2

<HTML><HEAD><TITLE>Error 400</TITLE></HEAD><BODY><H1>Error 400</H1><P>According to your content-length HTTP header, your request is empty (zero length)</P><p><HR><b><i><a href="http://xmlrpc-c.sourceforge.net">ABYSS Web Server for XML-RPC For C/C++</a></i></b> version 1.40.0<br></p></BODY></HTML>

```

I enabled logging rpc messages in oned.conf  
We see in /var/log/one/one\_xmlrpc.log:

```
127.0.0.1:40946 - no_user - [19/Aug/2015:10:43:33 -0600] "POST /RPC2 HTTP/1.1" 200 467
127.0.0.1:40948 - no_user - [19/Aug/2015:10:43:33 -0600] "POST /RPC2 HTTP/1.1" 200 9983
127.0.0.1:40950 - no_user - [19/Aug/2015:10:44:03 -0600] "POST /RPC2 HTTP/1.1" 200 3593
127.0.0.1:40950 - no_user - [19/Aug/2015:10:44:03 -0600] "POST /RPC2 HTTP/1.1" 200 3593
127.0.0.1:40952 - no_user - [19/Aug/2015:10:44:03 -0600] "POST /RPC2 HTTP/1.1" 200 467
127.0.0.1:40954 - no_user - [19/Aug/2015:10:44:29 -0600] "HEAD / HTTP/1.1" 404 533
127.0.0.1:40956 - no_user - [19/Aug/2015:10:44:33 -0600] "POST /RPC2 HTTP/1.1" 200 3593
127.0.0.1:40956 - no_user - [19/Aug/2015:10:44:33 -0600] "POST /RPC2 HTTP/1.1" 200 3593
127.0.0.1:40958 - no_user - [19/Aug/2015:10:44:33 -0600] "POST /RPC2 HTTP/1.1" 200 467
127.0.0.1:40960 - no_user - [19/Aug/2015:10:44:43 -0600] "POST /RPC2 HTTP/1.1" 400 437
192.168.221.22:59502 - no_user - [19/Aug/2015:10:45:02 -0600] "POST /RPC2 HTTP/1.1" 400 437
127.0.0.1:40964 - no_user - [19/Aug/2015:10:45:02 -0600] "POST /RPC2 HTTP/1.1" 200 3593
127.0.0.1:40964 - no_user - [19/Aug/2015:10:45:03 -0600] "POST /RPC2 HTTP/1.1" 200 3593

```

Please, help fix the problem!
