Re: How to install BOSH Director on virtualbox?
Eric Malm <emalm@...>
Hi,
You might try setting up your hand-rolled BOSH-Lite with the
bosh-deployment repo (https://github.com/cloudfoundry/bosh-deployment) and
the v2 BOSH CLI (https://github.com/cloudfoundry/bosh-cli). I was able to
create one a few weeks ago as follows:
bosh interpolate \
$BOSH_DEPLOYMENT_DIR/bosh.yml \
--ops-file $BOSH_DEPLOYMENT_DIR/virtualbox/cpi.yml \
--ops-file $BOSH_DEPLOYMENT_DIR/bosh-lite.yml \
--vars-store $DEPLOYMENT_DIR/creds.yml \
-v director_name="Bosh Lite Director" \
-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 \
--var-errs \
--var-errs-unused \
> $DEPLOYMENT_DIR/bosh-lite.yml
bosh create-env \
$DEPLOYMENT_DIR/bosh-lite.yml \
--state $DEPLOYMENT_DIR/state.json \
--vars-store $DEPLOYMENT_DIR/creds.yml
The env vars above are BOSH_DEPLOYMENT_DIR, the path to your local copy of
bosh-deployment repo, and DEPLOYMENT_DIR, the path to a directory for the
BOSH-Lite deployment manifest and state.
Note that this does not set up the Virtualbox VM with NAT. I had to make a
few extra changes with a separate ops-file to put the VM on a Virtualbox
NAT network, which time permitting I'll PR into the bosh-deployment repo
soon.
Best,
Eric
On Sun, Jan 8, 2017 at 11:03 AM, zr alt <zralt1(a)gmail.com> wrote:
You might try setting up your hand-rolled BOSH-Lite with the
bosh-deployment repo (https://github.com/cloudfoundry/bosh-deployment) and
the v2 BOSH CLI (https://github.com/cloudfoundry/bosh-cli). I was able to
create one a few weeks ago as follows:
bosh interpolate \
$BOSH_DEPLOYMENT_DIR/bosh.yml \
--ops-file $BOSH_DEPLOYMENT_DIR/virtualbox/cpi.yml \
--ops-file $BOSH_DEPLOYMENT_DIR/bosh-lite.yml \
--vars-store $DEPLOYMENT_DIR/creds.yml \
-v director_name="Bosh Lite Director" \
-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 \
--var-errs \
--var-errs-unused \
> $DEPLOYMENT_DIR/bosh-lite.yml
bosh create-env \
$DEPLOYMENT_DIR/bosh-lite.yml \
--state $DEPLOYMENT_DIR/state.json \
--vars-store $DEPLOYMENT_DIR/creds.yml
The env vars above are BOSH_DEPLOYMENT_DIR, the path to your local copy of
bosh-deployment repo, and DEPLOYMENT_DIR, the path to a directory for the
BOSH-Lite deployment manifest and state.
Note that this does not set up the Virtualbox VM with NAT. I had to make a
few extra changes with a separate ops-file to put the VM on a Virtualbox
NAT network, which time permitting I'll PR into the bosh-deployment repo
soon.
Best,
Eric
On Sun, Jan 8, 2017 at 11:03 AM, zr alt <zralt1(a)gmail.com> wrote:
I compiled garden-linux (as it had a makefile, garden-runc suggests that I
use BOSH, which I'm trying to install, and no steps how to create it
'manually'), so that the create_vm can succeed. It brought up a VM for the
warden, but now it hangs with ' Waiting for the agent on VM'. Some process
got stuck in it after connecting to the container, and now it just waits.
Any ideas how to get this done from scratch? Am I even walking on the
right path messing with this, or just I'm missing something really obvious?