在Linux上使用Bosh创建Director的时候报错,如下:
bosh create-env bosh-deployment/bosh.yml \
--state state.json \
--vars-store ./creds.yml \
-o bosh-deployment/virtualbox/cpi.yml \
-o bosh-deployment/virtualbox/outbound-network.yml \
-o bosh-deployment/bosh-lite.yml \
-o bosh-deployment/jumpbox-user.yml \
-v director_name=vbox \
-v internal_ip=192.168.50.6 \
-v internal_gw=192.168.50.1 \
-v internal_cidr=192.168.50.0/24 \
-v network_name=vboxnet0 \
-v outbound_network_name=NatNetwork
...
Deploying:
Creating instance 'bosh/0':
Waiting until instance is ready:
Post https://mbus:<redacted>@192.168.50.6:6868/agent: net/http: TLS handshake timeout
解决办法:
编辑 bosh-deployment/virtualbox/cpi.yml 文件,将其中 memory 由 4096 改成 2048。然后重新运行bosh create-env 命令。