Docker Community Forums

Share and learn in the Docker community.

Docker-machine vmwarevsphere "Error in driver during machine creation" Go exception


(Mjiderhamn) #1

Using docker-machine version 0.7.0, build a650a40 on Windows, running
docker-machine create --driver vmwarevsphere --vmwarevsphere-vcenter=vcenter.foo.bar --vmwarevsphere-username="username" --vmwarevsphere-password=password --vmwarevsphere-datacenter=NameOfDatacenter --vmwarevsphere-hostsystem="NameOfCluster/vmhost.foo.bar" --vmwarevsphere-datastore="NameOfDatastore" --vmwarevsphere-pool="NameOfCluster/Resources/NameOfParentResourcePool/NameOfResourcePool" --vmwarevsphere-network=LAN NameOfMyNewVm

results in this exception:

Running pre-create checks... Creating machine... (NameOfMyNewVm) Copying C:\Users\username\.docker\machine\cache\boot2docker.iso to C:\Users\username\.docker\machine\machines\NameOfMyNewVm\boot2docker.iso... (NameOfMyNewVm) Generating SSH Keypair... (NameOfMyNewVm) Creating VM... (NameOfMyNewVm) Uploading Boot2docker ISO ... Error creating machine: Error in driver during machine creation: Panic in the driver: interface conversion: interface is nil, not types.ManagedObjectReference goroutine 66 [running]: runtime/debug.Stack(0x0, 0x0, 0x0) /usr/local/go/src/runtime/debug/stack.go:24 +0x87 github.com/docker/machine/libmachine/drivers/rpc.(*StandardStack).Stack(0x26e9198, 0x0, 0x0, 0x0) /go/src/github.com/docker/machine/libmachine/drivers/rpc/server_driver.go:23 +0x30 github.com/docker/machine/libmachine/drivers/rpc.trapPanic(0xc08233da08) /go/src/github.com/docker/machine/libmachine/drivers/rpc/server_driver.go:129 +0x9d panic(0x167cdc0, 0xc0823f7240) /usr/local/go/src/runtime/panic.go:426 +0x4f7 github.com/docker/machine/drivers/vmwarevsphere.(*Driver).Create(0xc082144380, 0x0, 0x0) /go/src/github.com/docker/machine/drivers/vmwarevsphere/vsphere.go:444 +0x10b8 github.com/docker/machine/libmachine/drivers/rpc.(*RPCServerDriver).Create(0xc0820b7c40, 0x26e9198, 0x26e9198, 0x0, 0x0) /go/src/github.com/docker/machine/libmachine/drivers/rpc/server_driver.go:140 +0x83 reflect.Value.call(0x14beac0, 0x1954bc8, 0x13, 0x1997a18, 0x4, 0xc08233deb8, 0x3, 0x3, 0x0, 0x0, ...) /usr/local/go/src/reflect/value.go:435 +0x1214 reflect.Value.Call(0x14beac0, 0x1954bc8, 0x13, 0xc08233deb8, 0x3, 0x3, 0x0, 0x0, 0x0) /usr/local/go/src/reflect/value.go:303 +0xb8 net/rpc.(*service).call(0xc082141ac0, 0xc082106040, 0xc0822000c0, 0xc08213d680, 0xc082204780, 0x11b2ba0, 0x26e9198, 0x16, 0x11b2ba0, 0x26e9198, ...) /usr/local/go/src/net/rpc/server.go:383 +0x1c9 created by net/rpc.(*Server).ServeCodec /usr/local/go/src/net/rpc/server.go:477 +0x4a4

How can I debug this to find out whether the problem is with the vCenter/parameters I’ve supplied, or a bug in Docker Machine?

Thanks in advance.


(Mjiderhamn) #2

The cause seems be a folder permission issue; see #1556