vmware-archive / vagrant-vmware-appcatalyst

Vagrant provider for VMware AppCatalyst®
Apache License 2.0
73 stars 16 forks source link

Can't "vagrant up" vmware/photon: Missing capability "change_host_name" #3

Closed tehranian closed 9 years ago

tehranian commented 9 years ago

I'm using the Vagrantfile that @lamw posted at the following URL, minus the shared folder that points to /Users/lamw: http://www.virtuallyghetto.com/2015/06/quickly-getting-started-with-vmware-appcatalyst-appcatalyst-vagrant-plugin.html

Unfortunately vagrant up fails with:

==> gantry-test-2: Waiting for machine to boot. This may take a few minutes...
    gantry-test-2: SSH address: 172.17.42.1:22
    gantry-test-1: SSH address: 172.17.42.1:22
    gantry-test-2: SSH username: vagrant
    gantry-test-1: SSH username: vagrant
    gantry-test-2: SSH auth method: private key
    gantry-test-1: SSH auth method: private key
    gantry-test-2: Warning: Connection timeout. Retrying...
    gantry-test-1: Warning: Connection timeout. Retrying...
    gantry-test-2: Warning: Connection timeout. Retrying...
    gantry-test-1: Warning: Connection timeout. Retrying...
    gantry-test-1:
    gantry-test-1: Vagrant insecure key detected. Vagrant will automatically replace
    gantry-test-1: this with a newly generated keypair for better security.
    gantry-test-2:
    gantry-test-2: Vagrant insecure key detected. Vagrant will automatically replace
    gantry-test-2: this with a newly generated keypair for better security.
    gantry-test-2:
    gantry-test-2: Inserting generated public key within guest...
    gantry-test-1:
    gantry-test-1: Inserting generated public key within guest...
    gantry-test-1: Removing insecure key from the guest if its present...
    gantry-test-2: Removing insecure key from the guest if its present...
    gantry-test-1: Key inserted! Disconnecting and reconnecting using new SSH key...
    gantry-test-2: Key inserted! Disconnecting and reconnecting using new SSH key...
==> gantry-test-2: Machine booted and ready!
==> gantry-test-1: Machine booted and ready!
==> gantry-test-2: Setting hostname...
==> gantry-test-1: Setting hostname...
==> gantry-test-1: An error occurred. The error will be shown after all tasks complete.
==> gantry-test-2: An error occurred. The error will be shown after all tasks complete.
An error occurred while executing multiple actions in parallel.
Any errors that occurred are shown below.

An error occurred while executing the action on the 'gantry-test-1'
machine. Please handle this error then try again:

Vagrant attempted to execute the capability 'change_host_name'
on the detect guest OS 'linux', but the guest doesn't
support that capability. This capability is required for your
configuration of Vagrant. Please either reconfigure Vagrant to
avoid this capability or fix the issue by creating the capability.

An error occurred while executing the action on the 'gantry-test-2'
machine. Please handle this error then try again:

Vagrant attempted to execute the capability 'change_host_name'
on the detect guest OS 'linux', but the guest doesn't
support that capability. This capability is required for your
configuration of Vagrant. Please either reconfigure Vagrant to
avoid this capability or fix the issue by creating the capability.

Here's the log output w/ --debug: https://gist.github.com/tehranian/e08c749b3bbbd80e5615

tehranian commented 9 years ago

FYI @lamw - If I remove the following line about setting the hostname, then vagrant up completes successfully.

     #  node_config.vm.hostname = node[:hostname]
frapposelli commented 9 years ago

Seems like a problem with the guest os you're trying to bring up, not the provider, if you're using the vmwae/photon box make sure you have the vagrant-guests-photon plugin installed (vagrant plugin install vagrant-guests-photon) or a Vagrant version compiled from master.

lamw commented 9 years ago

@frapposelli I can confirm by installing the Vagrant Photon plugin, hostnames are properly configured. Thanks for the tip and I've updated my article with this info + updated screenshot :)

tehranian commented 9 years ago

Ah I was not aware that I needed to vagrant plugin install vagrant-guests-photon. I suppose you could close this as a documentation issue.

Thanks!