I have bosh micro deploying a stem cell to vSphere server however the vm once provisioned doesn't seem to have an ip address assigned to it in vSphere client. I also cannot performa simple ping to the ip address that I have assigned to bosh director in my bosh yaml file. This is leading to connection timeouts whilst waiting for the agent. The vm is powered up by the bosh micro deploy process,
Here is a snippet from the deployment log...
I, [2012-11-12T02:05:39.819121 #8151] [create_vm(bm-ac986c50-ec83-424b-8752-3ede19c76f31, ...)] INFO -- : Cloning vm: <[Vim.VirtualMachine] vm-1253> to vm-689766f4-834d-44b5-9ab6-36e961390c72
I, [2012-11-12T02:06:01.560344 #8151] [create_vm(bm-ac986c50-ec83-424b-8752-3ede19c76f31, ...)] INFO -- : Setting VM env: {"vm"=>{"name"=>"vm-689766f4-834d-44b5-9ab6-36e961390c72", "id"=>"vm-1255"},
"agent_id"=>"bm-ac986c50-ec83-424b-8752-3ede19c76f31",
"networks"=>
{"bosh"=>
{"cloud_properties"=>{"name"=>"VM Network"},
"netmask"=>"255.255.255.0",
"gateway"=>"172.16.19.2",
"ip"=>"172.16.4.999",
"dns"=>[],
"type"=>nil,
"default"=>["dns", "gateway"],
"mac"=>"00:50:56:93:99:fb"}},
"disks"=>{"system"=>0, "ephemeral"=>1, "persistent"=>{}},
"blobstore"=>
{"plugin"=>"local",
"properties"=>{"blobstore_path"=>"/var/vcap/micro_bosh/data/cache"}},
"env"=>{"bosh"=>{"password"=>"mypassword"}}}
and here is my yaml...
name: micro_bosh
network:
ip: 172.16.4.999
netmask: 255.255.255.0
gateway: 172.16.19.2
cloud_properties:
name: VM Network
loglevel: debug
env:
bosh:
password: mypassword
resources:
persistent_disk: 16384
cloud:
plugin: vsphere
properties:
agent:
ntp:
vcenters:
- host: 172.16.4.121
user: root
password: vmware
datacenters:
- name: bosh-datacenter
vm_folder: BOSH_VMs
template_folder: BOSH_Templates
disk_path: BOSH_Deployer
datastore_pattern: datastore1
persistent_datastore_pattern: datastore1
allow_mixed_datastores: true
clusters:
- bosh-cluster:
resource_pool: bosh-resource-pool
It may also be worth pointing out that I cannot log into the director vm with the credentials logged in the snippet "env"=>{"bosh"=>{"password"=>"mypassword"}}}. Are these the correct credentials to use?