frapposelli / vagrant-vcenter

A Vagrant provider for VMware vCenter®
MIT License
106 stars 36 forks source link

SSH (IPV6) Problem with 'vagrant up' #8

Closed hsmanninen closed 9 years ago

hsmanninen commented 9 years ago

Hello, trying to use the latest version of vagrant-vcenter plugin with vSphere 5.1. OVF template uploading and VMcreation works but after starting up the VM it seems that it gets some IPV6 address from VC and fails.. It takes a while for the VM to get the IPV4 address. Running "vagrant ssh" and status works fine afterwards.

INFO interface: info: Powering on VM... INFO interface: info: ==> test-vm1: Powering on VM... ==> test-vm1: Powering on VM... DEBUG ssh: Checking whether SSH is ready... INFO machine: Calling action: read_ssh_info on provider vCenter (4234a21f-2aee-0bc7-9da7-05ac40787d7e) INFO runner: Preparing hooks for middleware sequence... INFO runner: 3 hooks defined. INFO runner: Running action: #Vagrant::Action::Builder:0x007fa940a15c98 INFO warden: Calling IN action: #Vagrant::Action::Builtin::ConfigValidate:0x007fa940a74db0 INFO warden: Calling IN action: #VagrantPlugins::VCenter::Action::ConnectvCenter:0x007fa940a74c48 INFO warden: Calling IN action: #VagrantPlugins::VCenter::Action::ReadSSHInfo:0x007fa940b3b0f0 DEBUG read_ssh_info: could not find booted guest ipaddress INFO warden: Calling OUT action: #VagrantPlugins::VCenter::Action::ReadSSHInfo:0x007fa940b3b0f0 INFO warden: Calling OUT action: #VagrantPlugins::VCenter::Action::ConnectvCenter:0x007fa940a74c48 INFO warden: Calling OUT action: #Vagrant::Action::Builtin::ConfigValidate:0x007fa940a74db0 INFO ssh: SSH not up: #<Vagrant::Errors::SSHNotReady: The provider for this Vagrant-managed machine is reporting that it is not yet ready for SSH. Depending on your provider this can carry different meanings. Make sure your machine is created and running and try again. Additionally, check the output of vagrant status to verify that the machine is in the state that you expect. If you continue to get this error message, please view the documentation for the provider you're using.> DEBUG ssh: Checking whether SSH is ready... INFO machine: Calling action: read_ssh_info on provider vCenter (4234a21f-2aee-0bc7-9da7-05ac40787d7e) INFO runner: Preparing hooks for middleware sequence... INFO runner: 3 hooks defined. INFO runner: Running action: #Vagrant::Action::Builder:0x007fa940e222f0 INFO warden: Calling IN action: #Vagrant::Action::Builtin::ConfigValidate:0x007fa940e27e80 INFO warden: Calling IN action: #VagrantPlugins::VCenter::Action::ConnectvCenter:0x007fa940e27e30 INFO warden: Calling IN action: #VagrantPlugins::VCenter::Action::ReadSSHInfo:0x007fa940e3d910 INFO warden: Calling OUT action: #VagrantPlugins::VCenter::Action::ReadSSHInfo:0x007fa940e3d910 INFO warden: Calling OUT action: #VagrantPlugins::VCenter::Action::ConnectvCenter:0x007fa940e27e30 INFO warden: Calling OUT action: #Vagrant::Action::Builtin::ConfigValidate:0x007fa940e27e80 DEBUG ssh: Checking key permissions: /.../.vagrant.d/insecure_private_key INFO ssh: Attempting SSH connnection... INFO ssh: Attempting to connect to SSH... INFO ssh: - Host: xxxx::xxx:xxxx:xxxx:xxxx INFO ssh: - Port: 22 INFO ssh: - Username: vagrant INFO ssh: - Password? false INFO ssh: - Key Path: ["/.../.vagrant.d/insecure_private_key"] DEBUG ssh: == Net-SSH connection debug-level log START == DEBUG ssh: D, [2014-08-27T15:59:09.687761 #31207] DEBUG -- net.ssh.transport.session[1f752f0]: establishing connection to xxxx::xxx:xxxx:xxxx:xxxx:22

DEBUG ssh: == Net-SSH connection debug-level log END == ERROR warden: Error occurred: Invalid argument - connect(2) INFO warden: Beginning recovery process... INFO warden: Recovery complete. ERROR warden: Error occurred: Invalid argument - connect(2) INFO warden: Beginning recovery process... INFO warden: Recovery complete. ERROR warden: Error occurred: Invalid argument - connect(2) INFO warden: Beginning recovery process... INFO warden: Calling recover: #Vagrant::Action::Builtin::Call:0x000000041494f8 INFO warden: Beginning recovery process... INFO warden: Recovery complete. INFO warden: Recovery complete. ERROR warden: Error occurred: Invalid argument - connect(2) INFO warden: Beginning recovery process... INFO warden: Recovery complete. ERROR warden: Error occurred: Invalid argument - connect(2) INFO warden: Beginning recovery process... INFO warden: Calling recover: #Vagrant::Action::Builtin::Call:0x00000003e1f228 INFO warden: Beginning recovery process... INFO warden: Recovery complete. INFO warden: Calling recover: #Vagrant::Action::Builtin::Call:0x00000003d66610 INFO warden: Beginning recovery process... INFO warden: Recovery complete. INFO warden: Calling recover: #Vagrant::Action::Builtin::Call:0x00000003327488 INFO warden: Beginning recovery process... INFO warden: Recovery complete. INFO warden: Recovery complete. INFO warden: Beginning recovery process... INFO warden: Recovery complete. INFO warden: Beginning recovery process... INFO warden: Recovery complete. ERROR warden: Error occurred: Invalid argument - connect(2) INFO warden: Beginning recovery process... INFO warden: Recovery complete. INFO warden: Beginning recovery process... INFO warden: Recovery complete. ERROR warden: Error occurred: Invalid argument - connect(2) INFO warden: Beginning recovery process... INFO warden: Recovery complete. INFO warden: Beginning recovery process... INFO warden: Recovery complete. INFO warden: Beginning recovery process... INFO warden: Recovery complete. INFO warden: Beginning recovery process... INFO warden: Recovery complete. ERROR warden: Error occurred: Invalid argument - connect(2) INFO warden: Beginning recovery process... INFO warden: Recovery complete. INFO warden: Beginning recovery process... INFO warden: Recovery complete. ERROR warden: Error occurred: Invalid argument - connect(2) INFO warden: Beginning recovery process... INFO warden: Recovery complete. INFO warden: Beginning recovery process... INFO warden: Recovery complete. INFO warden: Beginning recovery process... INFO warden: Recovery complete. INFO environment: Released process lock: machine-action-82b3ca4ee03afa4921d3fd8b8512905c INFO environment: Running hook: environment_unload INFO runner: Preparing hooks for middleware sequence... INFO runner: 3 hooks defined. INFO runner: Running action: #Vagrant::Action::Builder:0x00000003f2dc00 /opt/vagrant/embedded/gems/gems/net-ssh-2.9.1/lib/net/ssh/transport/session.rb:70:in initialize': Invalid argument - connect(2) (Errno::EINVAL) from /opt/vagrant/embedded/gems/gems/net-ssh-2.9.1/lib/net/ssh/transport/session.rb:70:inopen' from /opt/vagrant/embedded/gems/gems/net-ssh-2.9.1/lib/net/ssh/transport/session.rb:70:in block in initialize' from /opt/vagrant/embedded/lib/ruby/2.0.0/timeout.rb:66:intimeout' from /opt/vagrant/embedded/lib/ruby/2.0.0/timeout.rb:97:in timeout' from /opt/vagrant/embedded/gems/gems/net-ssh-2.9.1/lib/net/ssh/transport/session.rb:67:ininitialize' from /opt/vagrant/embedded/gems/gems/net-ssh-2.9.1/lib/net/ssh.rb:202:in new' from /opt/vagrant/embedded/gems/gems/net-ssh-2.9.1/lib/net/ssh.rb:202:instart' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/communicators/ssh/communicator.rb:352:in block (2 levels) in connect' from /opt/vagrant/embedded/lib/ruby/2.0.0/timeout.rb:66:intimeout' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/communicators/ssh/communicator.rb:331:in block in connect' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/retryable.rb:17:inretryable' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/communicators/ssh/communicator.rb:330:in connect' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/communicators/ssh/communicator.rb:116:inready?' from /.../.vagrant.d/gems/gems/vagrant-vcenter-0.2.1/lib/vagrant-vcenter/action/power_on.rb:24:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:in block in finalize_action' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in block in run' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:inbusy' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in run' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/call.rb:53:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:inblock in finalize_action' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:inblock in run' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:in busy' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:inrun' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/call.rb:53:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall' from /.../.vagrant.d/gems/gems/vagrant-vcenter-0.2.1/lib/vagrant-vcenter/action/connect_vcenter.rb:32:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/config_validate.rb:25:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:in block in finalize_action' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /.../.vagrant.d/gems/gems/vagrant-vcenter-0.2.1/lib/vagrant-vcenter/action/build_vm.rb:194:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:inblock in finalize_action' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:inblock in run' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:in busy' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:inrun' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/call.rb:53:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall' from /.../.vagrant.d/gems/gems/vagrant-vcenter-0.2.1/lib/vagrant-vcenter/action/inventory_check.rb:22:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall' from /.../.vagrant.d/gems/gems/vagrant-vcenter-0.2.1/lib/vagrant-vcenter/action/connect_vcenter.rb:32:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:in block in finalize_action' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/handle_box.rb:56:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:inblock in finalize_action' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:inblock in run' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:in busy' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:inrun' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/call.rb:53:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/config_validate.rb:25:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:inblock in run' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:in busy' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:inrun' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:196:in action_raw' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:173:inblock in action' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/environment.rb:434:in lock' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:161:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:161:in action' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/batch_action.rb:82:inblock (2 levels) in run'

hsmanninen commented 9 years ago

Oh and forgot to mention that this is on the "gosddc/centos65-x64" box.

frapposelli commented 9 years ago

tracking as gosddc/packer-templates/issues/3