Docker Machine fail with the opennebula Driver

Hi

I’m testing the docker integration with opennebula and i have deployed an environment for this on my opennebula.

I have deployed an opennebula CLI machine based on Ubuntu and there installed the docker-machine, go, godeps binaries and all the exports variables on the system.

root@ubuntu:~# docker-machine version
docker-machine version 0.6.0, build e27fb87

root@ubuntu:~# go version
go version go1.6.2 linux/amd64

root@ubuntu:~# export
declare -x GOPATH="/root/work"
declare -x ONE_XMLRPC=“http://IP:2633
declare -x PATH=”/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/root/work/bin:/usr/local/go/bin"

I have downloaded the image boot2docker from the marketplace and put on my opennebula environment with id 192 and thereis a network with id 4 for use with this image.

My problem come when i try to launch the docker image:

root@ubuntu:~# docker-machine create --driver opennebula --opennebula-network-id 4 --opennebula-image-id 192 --opennebula-data-size 10240 mydockerengine
dial tcp: missing address

And at this point i dont know how could y go on.

I have tried the docker-machine and it seems to works correctly:

root@ubuntu:~# docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS

And the ONE commands works correctly:

root@ubuntu:~# onevnet list
ID USER GROUP NAME CLUSTER BRIDGE LEASES
4 oneadmin oneadmin private - br0 21

Whats its the dial tcp:missing address??

It looks like the ONE_XMLRPC variable is not properly set. You should replace IP with the actual IP or hostname.

Hi Jaime

This was an example. The IP is my localserver IP correctly.

I can do any one CLI command from the machine and this means the XML RPC is working, true?

The problem appear with the

root@ubuntu:~# docker-machine create --driver opennebula --opennebula-network-id 4 --opennebula-image-id 192 --opennebula-data-size 10240 mydockerengine
dial tcp: missing address

Regards!!

Jose Angel Diaz Diaz
Coordinador Tecnologico

Centro de Excelencia de Fuentes Abiertas (CENATIC)
Dirección adjunta de Sistemas de Información

red.es
Edificio Cenatic
Calle Clara Campoamor s/n
06200 Almendralejo. España
Telf: 924 677 316
www.red.es
www.unblogenred.es