Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure Network is not invoked #22

Closed
ronan001 opened this issue Oct 16, 2013 · 3 comments
Closed

Configure Network is not invoked #22

ronan001 opened this issue Oct 16, 2013 · 3 comments

Comments

@ronan001
Copy link

hi,

I am using vagrant-vsphere 0.4.0 with a centos template hosted on an esx server. I have set the template ip as static and config.ssh.host in the vagrant file is this IP.

When the template is cloned the ssh connection is successful and the command "/usr/bin/rsync" is one of the last processes I see in the debug logs.

Should the configure networks invoke at this point? I do not see any information suggestion the configure network is invoked?

Should the vagrant rb files be invoked now that the vagrant-vsphere has cloned and conencted via ssh? Is this an issue? From the loggging below, it appears as though nothing is attempted.

[user@rcartytest example_box]$ VAGRANT_LOG=info vagrant up --provider=vsphere
INFO global: Vagrant version: 1.3.4
INFO manager: Registered plugin: Fedora host
INFO manager: Registered plugin: Gentoo host
INFO manager: Registered plugin: Windows host
INFO manager: Registered plugin: Linux host
INFO manager: Registered plugin: BSD host
INFO manager: Registered plugin: Slackware host
INFO manager: Registered plugin: Arch host
INFO manager: Registered plugin: OpenSUSE host
INFO manager: Registered plugin: FreeBSD host
INFO manager: Registered plugin: status command
INFO manager: Registered plugin: halt command
INFO manager: Registered plugin: ssh command
INFO manager: Registered plugin: package command
INFO manager: Registered plugin: resume command
INFO manager: Registered plugin: plugin command
INFO manager: Registered plugin: suspend command
INFO manager: Registered plugin: init command
INFO manager: Registered plugin: provision command
INFO manager: Registered plugin: box command
INFO manager: Registered plugin: destroy command
INFO manager: Registered plugin: help command
INFO manager: Registered plugin: reload command
INFO manager: Registered plugin: up command
INFO manager: Registered plugin: ssh-config command
INFO manager: Registered plugin: ssh communicator
INFO manager: Registered plugin: puppet
INFO manager: Registered plugin: shell
INFO manager: Registered plugin: chef
INFO manager: Registered plugin: file
INFO manager: Registered plugin: ansible
INFO manager: Registered plugin: CFEngine Provisioner
INFO manager: Registered plugin: salt
INFO manager: Registered plugin: kernel
INFO manager: Registered plugin: VirtualBox provider
INFO manager: Registered plugin: Fedora guest
INFO manager: Registered plugin: Gentoo guest
INFO manager: Registered plugin: RedHat guest
INFO manager: Registered plugin: Solaris 11 guest.
INFO manager: Registered plugin: Ubuntu guest
INFO manager: Registered plugin: OmniOS guest.
INFO manager: Registered plugin: Solaris guest.
INFO manager: Registered plugin: CoreOS guest
INFO manager: Registered plugin: Linux guest.
INFO manager: Registered plugin: Debian guest
INFO manager: Registered plugin: SUSE guest
INFO manager: Registered plugin: PLD Linux guest
INFO manager: Registered plugin: Arch guest
INFO manager: Registered plugin: Darwin guest
INFO manager: Registered plugin: OpenBSD guest
INFO manager: Registered plugin: FreeBSD guest
INFO manager: Registered plugin: kernel
INFO vagrant: vagrant invoked: ["up", "--provider=vsphere"]
INFO environment: Environment initialized (#Vagrant::Environment:0x00000001fd6bb8)
INFO environment: - cwd: /home/user/vagrant-vsphere-master/FromGit/vagrant-vsphere/example_box
INFO environment: Home path: /home/user/.vagrant.d
INFO environment: Local data path: /home/user/vagrant-vsphere-master/FromGit/vagrant-vsphere/example_box/.vagrant
INFO environment: Loading plugin from JSON: vagrant-vsphere
INFO manager: Registered plugin: vsphere
INFO environment: Running hook: environment_load
INFO environment: Initializing config...
INFO loader: Set :default = "/opt/vagrant/embedded/gems/gems/vagrant-1.3.4/config/default.rb"
INFO loader: Set :root = #Pathname:/home/user/vagrant-vsphere-master/FromGit/vagrant-vsphere/example_box/Vagrantfile
INFO loader: Loading configuration in order: [:default, :home, :root]
INFO hosts: Host class: VagrantPlugins::HostFedora::Host
INFO runner: Running action: #Vagrant::Action::Builder:0x00000002593740
INFO cli: CLI: [] "up" ["--provider=vsphere"]
INFO environment: Getting machine: default (vsphere)
INFO environment: Uncached load of machine.
INFO loader: Set :vm_default = []
INFO loader: Loading configuration in order: [:default, :home, :root, :vm_default]
INFO box_collection: Searching for box: vSphere (vsphere) in /home/user/.vagrant.d/boxes/vSphere/vsphere/metadata.json
INFO box_collection: Box not found: vSphere (vsphere)
INFO machine: Initializing machine: default
INFO machine: - Provider: VagrantPlugins::VSphere::Provider
INFO machine: - Box:
INFO machine: - Data dir: /home/user/vagrant-vsphere-master/FromGit/vagrant-vsphere/example_box/.vagrant/machines/default/vsphere
INFO command: With machine: default (vSphere (new))
INFO interface: info: Bringing machine 'default' up with 'vsphere' provider...
Bringing machine 'default' up with 'vsphere' provider...
INFO batch_action: Enabling parallelization by default.
INFO batch_action: Disabling parallelization because provider doesn't support it: vsphere
INFO batch_action: Batch action will parallelize: false
INFO batch_action: Starting action: #Vagrant::Machine:0x00000002bde1e0 up {:destroy_on_error=>true, :parallel=>true, :provision_ignore_sentinel=>false, :provision_types=>nil, :provider=>"vsphere"}
INFO machine: Calling action: up on provider vSphere (new)
WARNING: Nokogiri was built against LibXML version 2.7.6, but has dynamically loaded 2.8.0
INFO runner: Running action: #Vagrant::Action::Builder:0x007f754009f210
INFO warden: Calling IN action: #Vagrant::Action::Builtin::ConfigValidate:0x007f7540fd7c78
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::ConnectVSphere:0x007f7540fd7c50
INFO warden: Calling IN action: #Vagrant::Action::Builtin::Call:0x007f7540fd7c28
INFO runner: Running action: #Vagrant::Action::Builder:0x007f7540554cd8
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::IsCreated:0x007f75405518d0
INFO machine: Calling action: get_state on provider vSphere (new)
INFO runner: Running action: #Vagrant::Action::Builder:0x007f75401bb770
INFO warden: Calling IN action: #Vagrant::Action::Builtin::ConfigValidate:0x007f7540008018
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::ConnectVSphere:0x007f7540007fc8
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::GetState:0x007f7540007f50
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::CloseVSphere:0x007f7540007f00
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::CloseVSphere:0x007f7540007f00
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::GetState:0x007f7540007f50
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::ConnectVSphere:0x007f7540007fc8
INFO warden: Calling OUT action: #Vagrant::Action::Builtin::ConfigValidate:0x007f7540008018
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::IsCreated:0x007f75405518d0
INFO runner: Running action: #Vagrant::Action::Warden:0x007f7540c8e800
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::Clone:0x007f7540c8e6c0
INFO interface: info: Calling vSphere CloneVM with the following settings:
[default] Calling vSphere CloneVM with the following settings:
INFO interface: info: -- Template VM: MxCosTemplate243
[default] -- Template VM: MxCosTemplate243
INFO interface: info: -- Name: MxCosSRP1
[default] -- Name: MxCosSRP1
INFO machine: New machine ID: "4221687f-05ab-381a-56ec-a7290cb3177b"
INFO interface: info: Waiting for SSH to become available...
[default] Waiting for SSH to become available...
INFO machine: Calling action: get_ssh_info on provider vSphere (4221687f-05ab-381a-56ec-a7290cb3177b)
INFO runner: Running action: #Vagrant::Action::Builder:0x007f75403380f8
INFO warden: Calling IN action: #Vagrant::Action::Builtin::ConfigValidate:0x007f75403edc78
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::ConnectVSphere:0x007f75403edb88
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::GetSshInfo:0x007f75403edb10
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::CloseVSphere:0x007f75403edac0
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::CloseVSphere:0x007f75403edac0
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::GetSshInfo:0x007f75403edb10
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::ConnectVSphere:0x007f75403edb88
INFO warden: Calling OUT action: #Vagrant::Action::Builtin::ConfigValidate:0x007f75403edc78
INFO ssh: Attempting SSH connnection...
INFO ssh: Attempting to connect to SSH...
INFO ssh: - Host: 192.168.81.243
INFO ssh: - Port: 22
INFO ssh: - Username: vagrant
INFO ssh: - Key Path: /home/user/.ssh/id_rsa
INFO retryable: Retryable exception raised: #<Timeout::Error: execution expired>
INFO ssh: Attempting to connect to SSH...
INFO ssh: - Host: 192.168.81.243
INFO ssh: - Port: 22
INFO ssh: - Username: vagrant
INFO ssh: - Key Path: /home/user/.ssh/id_rsa
INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
INFO ssh: Attempting to connect to SSH...
INFO ssh: - Host: 192.168.81.243
INFO ssh: - Port: 22
INFO ssh: - Username: vagrant
INFO ssh: - Key Path: /home/user/.ssh/id_rsa
INFO ssh: SSH is ready!
INFO interface: info: New virtual machine successfully cloned and started
[default] New virtual machine successfully cloned and started
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::Clone:0x007f7540c8e6c0
INFO warden: Calling IN action: #Vagrant::Action::Builtin::Call:0x007f7540fd7bd8
INFO runner: Running action: #Vagrant::Action::Builder:0x00000002b06650
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::IsRunning:0x00000002b91908
INFO machine: Calling action: get_state on provider vSphere (4221687f-05ab-381a-56ec-a7290cb3177b)
INFO runner: Running action: #Vagrant::Action::Builder:0x007f75400331c8
INFO warden: Calling IN action: #Vagrant::Action::Builtin::ConfigValidate:0x007f754008e960
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::ConnectVSphere:0x007f754008e898
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::GetState:0x007f754008e730
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::CloseVSphere:0x007f754008e640
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::CloseVSphere:0x007f754008e640
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::GetState:0x007f754008e730
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::ConnectVSphere:0x007f754008e898
INFO warden: Calling OUT action: #Vagrant::Action::Builtin::ConfigValidate:0x007f754008e960
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::IsRunning:0x00000002b91908
INFO runner: Running action: #Vagrant::Action::Warden:0x007f7540418478
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::CloseVSphere:0x007f7540fd7b88
INFO warden: Calling IN action: #Vagrant::Action::Builtin::Provision:0x007f7540fd7b60
INFO provision: Checking provisioner sentinel if we should run...
INFO provision: Sentinel not found.
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::SyncFolders:0x007f7540fe4568
INFO machine: Calling action: get_ssh_info on provider vSphere (4221687f-05ab-381a-56ec-a7290cb3177b)
INFO runner: Running action: #Vagrant::Action::Builder:0x007f7540f39b40
INFO warden: Calling IN action: #Vagrant::Action::Builtin::ConfigValidate:0x007f7540f3e140
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::ConnectVSphere:0x007f7540f3e0f0
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::GetSshInfo:0x007f7540f3e078
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::CloseVSphere:0x007f7540f3e000
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::CloseVSphere:0x007f7540f3e000
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::GetSshInfo:0x007f7540f3e078
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::ConnectVSphere:0x007f7540f3e0f0
INFO warden: Calling OUT action: #Vagrant::Action::Builtin::ConfigValidate:0x007f7540f3e140
INFO interface: info: Rsyncing folder: /home/user/vagrant-vsphere-master/FromGit/vagrant-vsphere/example_box/ => /vagrant
[default] Rsyncing folder: /home/user/vagrant-vsphere-master/FromGit/vagrant-vsphere/example_box/ => /vagrant
INFO ssh: Execute: mkdir -p '/vagrant' (sudo=true)
INFO machine: Calling action: get_ssh_info on provider vSphere (4221687f-05ab-381a-56ec-a7290cb3177b)
INFO runner: Running action: #Vagrant::Action::Builder:0x007f7540fa3630
INFO warden: Calling IN action: #Vagrant::Action::Builtin::ConfigValidate:0x007f7540fa1dd0
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::ConnectVSphere:0x007f7540fa1da8
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::GetSshInfo:0x007f7540fa1d80
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::CloseVSphere:0x007f7540fa1d30
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::CloseVSphere:0x007f7540fa1d30
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::GetSshInfo:0x007f7540fa1d80
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::ConnectVSphere:0x007f7540fa1da8
INFO warden: Calling OUT action: #Vagrant::Action::Builtin::ConfigValidate:0x007f7540fa1dd0
INFO ssh: Execute: echo; printf $SSH_AUTH_SOCK (sudo=false)
INFO machine: Calling action: get_ssh_info on provider vSphere (4221687f-05ab-381a-56ec-a7290cb3177b)
INFO runner: Running action: #Vagrant::Action::Builder:0x007f7540479f20
INFO warden: Calling IN action: #Vagrant::Action::Builtin::ConfigValidate:0x007f75405a5458
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::ConnectVSphere:0x007f75405a5408
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::GetSshInfo:0x007f75405a53b8
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::CloseVSphere:0x007f75405a5368
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::CloseVSphere:0x007f75405a5368
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::GetSshInfo:0x007f75405a53b8
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::ConnectVSphere:0x007f75405a5408
INFO warden: Calling OUT action: #Vagrant::Action::Builtin::ConfigValidate:0x007f75405a5458
INFO ssh: Setting SSH_AUTH_SOCK remotely: /tmp/ssh-oRsCkf2147/agent.2147
INFO ssh: Execute: chown vagrant '/vagrant' (sudo=true)
INFO machine: Calling action: get_ssh_info on provider vSphere (4221687f-05ab-381a-56ec-a7290cb3177b)
INFO runner: Running action: #Vagrant::Action::Builder:0x007f7540e1f7a0
INFO warden: Calling IN action: #Vagrant::Action::Builtin::ConfigValidate:0x007f7540a516a0
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::ConnectVSphere:0x007f7540a515d8
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::GetSshInfo:0x007f7540a51498
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::CloseVSphere:0x007f7540a513f8
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::CloseVSphere:0x007f7540a513f8
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::GetSshInfo:0x007f7540a51498
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::ConnectVSphere:0x007f7540a515d8
INFO warden: Calling OUT action: #Vagrant::Action::Builtin::ConfigValidate:0x007f7540a516a0
INFO ssh: Execute: echo; printf $SSH_AUTH_SOCK (sudo=false)
INFO machine: Calling action: get_ssh_info on provider vSphere (4221687f-05ab-381a-56ec-a7290cb3177b)
INFO runner: Running action: #Vagrant::Action::Builder:0x007f7541008440
INFO warden: Calling IN action: #Vagrant::Action::Builtin::ConfigValidate:0x007f7541006b90
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::ConnectVSphere:0x007f7541006b68
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::GetSshInfo:0x007f7541006b40
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::CloseVSphere:0x007f7541006b18
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::CloseVSphere:0x007f7541006b18
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::GetSshInfo:0x007f7541006b40
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::ConnectVSphere:0x007f7541006b68
INFO warden: Calling OUT action: #Vagrant::Action::Builtin::ConfigValidate:0x007f7541006b90
INFO ssh: Setting SSH_AUTH_SOCK remotely: /tmp/ssh-oRsCkf2147/agent.2147
INFO subprocess: Starting process: ["/usr/bin/rsync", "--verbose", "--archive", "-z", "--exclude", ".vagrant/", "-e", "ssh -p 22 -o StrictHostKeyChecking=no -i '/home/user/.ssh/id_rsa'", "/home/user/vagrant-vsphere-master/FromGit/vagrant-vsphere/example_box/", "vagrant@192.168.81.243:/vagrant"]
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::SyncFolders:0x007f7540fe4568
INFO warden: Calling OUT action: #Vagrant::Action::Builtin::Provision:0x007f7540fd7b60
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::CloseVSphere:0x007f7540fd7b88
INFO warden: Calling OUT action: #Vagrant::Action::Builtin::Call:0x007f7540fd7bd8
INFO warden: Calling OUT action: #Vagrant::Action::Builtin::Call:0x007f7540fd7c28
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::ConnectVSphere:0x007f7540fd7c50
INFO warden: Calling OUT action: #Vagrant::Action::Builtin::ConfigValidate:0x007f7540fd7c78
INFO environment: Running hook: environment_unload
INFO runner: Running action: #Vagrant::Action::Builder:0x000000025a8d20
[user@rcartytest example_box]$ pwd

@niyue
Copy link
Contributor

niyue commented Oct 16, 2013

Hi Ronan,

I don't think network configuration work in vagrant-vsphere 0.4.0. I tried that previously, and I have to create a guest OS customization specification in vSphere and use that customization spec in vagrant-vsphere (added in v 0.3).

You can check out this issue #19 for some more details.

@ronan001
Copy link
Author

Hi,

Thanks a lot for the mail. I have been trying to get this working for a
couple of days and I had hit a brick wall. This is unfortunate as network
configuration for static ips is a requirement for me. I will comment on
your issue in github.

ronan

On Wed, Oct 16, 2013 at 11:06 AM, Yue notifications@github.com wrote:

Hi Ronan,

I don't think network configuration work in vagrant-vsphere 0.4.0. I tried
that previously, and I have to create a guest OS customization
specification in vSphere and use that customization spec in vagrant-vsphere
(added in v 0.3).

You can check out this issue #19https://github.com/nsidc/vagrant-vsphere/issues/19for some more details.


Reply to this email directly or view it on GitHubhttps://github.com//issues/22#issuecomment-26406028
.

@agrauch
Copy link
Contributor

agrauch commented Oct 17, 2013

The changes to set the static IP have been merged. Hopefully this will work for you now.

@agrauch agrauch closed this as completed Oct 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants