Re: cannot access director, trying 4 more times...


Matthew Sykes <matthew.sykes@...>
 

Resending due to mailman issues:

Looks like you may not be doing what you think you're doing.

$ vagrant init hashicorp/precise64 (I tried both 32 and 64)
$ vagrant up --provider=virtualbox
I'm not sure where you got those commands from but they are unrelated to
bosh-lite. You're basically bringing up an Ubuntu 12.04 base box as created
by Hashicorp. The bosh-lite code isn't part of it; no director runs in
there.

You may have more luck with

$ vagrant init cloudfoundry/bosh-lite
$ vagrant up --provider virtualbox

Then you'll need to add the routes via the add-route script and use
the bosh cli
to target the director in that box.

On Fri, Aug 7, 2015 at 8:21 PM, Qing Gong <qinggong(a)gmail.com> wrote:

I am very new to CF. Trying to set up one using the directions here:
https://github.com/cloudfoundry/bosh-lite

After running the following commands:

$ vagrant init hashicorp/precise64 (I tried both 32 and 64)
$ vagrant up --provider=virtualbox

The console shows:
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'hashicorp/precise64' is up to date...
==> default: Setting the name of the VM: xxxxxx_default_1438889867528_29074
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 => 2222 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
default:
default: Vagrant insecure key detected. Vagrant will automatically
replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH
key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
default: The guest additions on this VM do not match the installed
version of
default: VirtualBox! In most cases this is fine, but in rare cases it
can
default: prevent things such as shared folders from working properly.
If you see
default: shared folder errors, please make sure the guest additions
within the
default: virtual machine match the version of VirtualBox you have
installed on
default: your host and reload your VM.
default:
default: Guest Additions Version: 4.2.0
default: VirtualBox Version: 5.0
==> default: Mounting shared folders...
default: /vagrant => /local/install/users/xxxxxx

Then, I tried to set the target for the bosh director but it was
unsuccessful. I am not sure what's wrong. Searched around online and still
could not figure out why.

I followed what's said below:
Target the BOSH Director and login with admin/admin.
# if behind a proxy, exclude both the VM's private IP and xip.io by
setting no_proxy (xip.io is introduced later)
$ export no_proxy=192.168.50.4,xip.io
(or export no_proxy=192.168.50.4.xip.io)

$ bosh target 192.168.50.4 lite
I always got the message shown in the subject,

cannot access director, trying 4 more times...
cannot access director, trying 3 more times...
cannot access director, trying 2 more times...

I wonder if the IP was not right. I tried 192.168.50.4 and a few other
IP. I also tried to customize the IP in the Vagrantfile file.

How can I debug what's going wrong? Really appreciate any help or
guidance.

TIA!

Qing


--
Matthew Sykes
matthew.sykes(a)gmail.com

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.