Comments (6)
hi,
I have encountered a similar problem to the issue you describe. Did you determine a solution to the problem?
I am attempting to run the vagrant vSphere provider 0.1.0 with vagrant 1.3.4 on Centos 6.3. I can not determine the cause of a problem reported as
ERROR warden: Error occurred: uninitialized constant VagrantPlugins::VSphere::Action::Clone::Error
My account does have privileges to the clone template. My esx server is not setup to use resource pools so I have left that blank. Are these fields required?
If I clone the template using VMWare vsphere client, the client will request the location of the VM and the datastore prior to creating the clone but I do not set this anywhere in my vragrant file. Can I set these values?
Has anyone seen these problems and solved them? The debug log file when running vagrant up --provider=vsphere is below Any help would be greatly appreciated.
my vagrant file contains the following
config.vm.box = 'vSphere'
config.vm.box_url = './example_box/dummy.box'
config.vm.provider :vsphere do |vsphere|
vsphere.host = '192.168.3.1'
vsphere.compute_resource_name = ''
vsphere.resource_pool_name = ''
vsphere.template_name = 'CentosTemplate'
vsphere.name = 'NewCentosVM'
vsphere.user = 'domain\username'
vsphere.password = 'password'
vsphere.insecure = true
end
end
daon@localhost example_box]$ VAGRANT_LOG=debug vagrant up --provider=vsphere
INFO global: Vagrant version: 1.3.4
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/hosts/fedora/plugin.rb
INFO manager: Registered plugin: Fedora host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/hosts/gentoo/plugin.rb
INFO manager: Registered plugin: Gentoo host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/hosts/windows/plugin.rb
INFO manager: Registered plugin: Windows host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/hosts/linux/plugin.rb
INFO manager: Registered plugin: Linux host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/hosts/bsd/plugin.rb
INFO manager: Registered plugin: BSD host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/hosts/slackware/plugin.rb
INFO manager: Registered plugin: Slackware host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/hosts/arch/plugin.rb
INFO manager: Registered plugin: Arch host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/hosts/opensuse/plugin.rb
INFO manager: Registered plugin: OpenSUSE host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/hosts/freebsd/plugin.rb
INFO manager: Registered plugin: FreeBSD host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/commands/status/plugin.rb
INFO manager: Registered plugin: status command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/commands/halt/plugin.rb
INFO manager: Registered plugin: halt command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/commands/ssh/plugin.rb
INFO manager: Registered plugin: ssh command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/commands/package/plugin.rb
INFO manager: Registered plugin: package command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/commands/resume/plugin.rb
INFO manager: Registered plugin: resume command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/commands/plugin/plugin.rb
INFO manager: Registered plugin: plugin command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/commands/suspend/plugin.rb
INFO manager: Registered plugin: suspend command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/commands/init/plugin.rb
INFO manager: Registered plugin: init command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/commands/provision/plugin.rb
INFO manager: Registered plugin: provision command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/commands/box/plugin.rb
INFO manager: Registered plugin: box command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/commands/destroy/plugin.rb
INFO manager: Registered plugin: destroy command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/commands/help/plugin.rb
INFO manager: Registered plugin: help command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/commands/reload/plugin.rb
INFO manager: Registered plugin: reload command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/commands/up/plugin.rb
INFO manager: Registered plugin: up command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/commands/ssh_config/plugin.rb
INFO manager: Registered plugin: ssh-config command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/communicators/ssh/plugin.rb
INFO manager: Registered plugin: ssh communicator
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/provisioners/puppet/plugin.rb
INFO manager: Registered plugin: puppet
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/provisioners/shell/plugin.rb
INFO manager: Registered plugin: shell
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/provisioners/chef/plugin.rb
INFO manager: Registered plugin: chef
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/provisioners/file/plugin.rb
INFO manager: Registered plugin: file
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/provisioners/ansible/plugin.rb
INFO manager: Registered plugin: ansible
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/provisioners/cfengine/plugin.rb
INFO manager: Registered plugin: CFEngine Provisioner
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/provisioners/salt/plugin.rb
INFO manager: Registered plugin: salt
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/kernel_v2/plugin.rb
INFO manager: Registered plugin: kernel
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/providers/virtualbox/plugin.rb
INFO manager: Registered plugin: VirtualBox provider
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/guests/fedora/plugin.rb
INFO manager: Registered plugin: Fedora guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/guests/gentoo/plugin.rb
INFO manager: Registered plugin: Gentoo guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/guests/redhat/plugin.rb
INFO manager: Registered plugin: RedHat guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/guests/solaris11/plugin.rb
INFO manager: Registered plugin: Solaris 11 guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/guests/ubuntu/plugin.rb
INFO manager: Registered plugin: Ubuntu guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/guests/omnios/plugin.rb
INFO manager: Registered plugin: OmniOS guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/guests/solaris/plugin.rb
INFO manager: Registered plugin: Solaris guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/guests/coreos/plugin.rb
INFO manager: Registered plugin: CoreOS guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/guests/linux/plugin.rb
INFO manager: Registered plugin: Linux guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/guests/debian/plugin.rb
INFO manager: Registered plugin: Debian guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/guests/suse/plugin.rb
INFO manager: Registered plugin: SUSE guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/guests/pld/plugin.rb
INFO manager: Registered plugin: PLD Linux guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/guests/arch/plugin.rb
INFO manager: Registered plugin: Arch guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/guests/darwin/plugin.rb
INFO manager: Registered plugin: Darwin guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/guests/openbsd/plugin.rb
INFO manager: Registered plugin: OpenBSD guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/guests/freebsd/plugin.rb
INFO manager: Registered plugin: FreeBSD guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/kernel_v1/plugin.rb
INFO manager: Registered plugin: kernel
INFO vagrant: vagrant
invoked: ["up", "--provider=vsphere"]
DEBUG vagrant: Creating Vagrant environment
INFO environment: Environment initialized (#Vagrant::Environment:0x00000000918818)
INFO environment: - cwd: /home/daon/Documents/vagrant-vsphere-master/example_box
INFO environment: Home path: /home/daon/.vagrant.d
INFO environment: Local data path: /home/daon/Documents/vagrant-vsphere-master/example_box/.vagrant
DEBUG environment: Creating: /home/daon/Documents/vagrant-vsphere-master/example_box/.vagrant
DEBUG environment: Loading plugins from: /home/daon/.vagrant.d/plugins.json
INFO environment: Loading plugin from JSON: vagrant-aws
INFO manager: Registered plugin: AWS
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"
DEBUG loader: Populating proc cache for "/opt/vagrant/embedded/gems/gems/vagrant-1.3.4/config/default.rb"
DEBUG loader: Load procs for pathname: /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/config/default.rb
INFO loader: Set :root = #Pathname:/home/daon/Documents/vagrant-vsphere-master/example_box/Vagrantfile
DEBUG loader: Populating proc cache for #Pathname:/home/daon/Documents/vagrant-vsphere-master/example_box/Vagrantfile
DEBUG loader: Load procs for pathname: /home/daon/Documents/vagrant-vsphere-master/example_box/Vagrantfile
INFO loader: Loading configuration in order: [:default, :home, :root]
DEBUG loader: Loading from: default (evaluating)
DEBUG loader: Loading from: root (evaluating)
DEBUG loader: Configuration loaded successfully, finalizing and returning
DEBUG hosts: Host path search classes: [VagrantPlugins::HostFreeBSD::Host, VagrantPlugins::HostOpenSUSE::Host, VagrantPlugins::HostArch::Host, VagrantPlugins::HostSlackware::Host, VagrantPlugins::HostWindows::Host, VagrantPlugins::HostGentoo::Host, VagrantPlugins::HostFedora::Host, VagrantPlugins::HostLinux::Host, VagrantPlugins::HostBSD::Host]
INFO hosts: Host class: VagrantPlugins::HostFedora::Host
INFO runner: Running action: #Vagrant::Action::Builder:0x00000000b33ee0
INFO cli: CLI: [] "up" ["--provider=vsphere"]
DEBUG cli: Invoking command class: VagrantPlugins::CommandUp::Command ["--provider=vsphere"]
DEBUG command: 'Up' each target VM...
DEBUG command: Getting target VMs for command. Arguments:
DEBUG command: -- names: []
DEBUG command: -- options: {:provider=>"vsphere"}
DEBUG command: Loading all machines...
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]
DEBUG loader: Loading from: default (cache)
DEBUG loader: Loading from: root (cache)
DEBUG loader: Configuration loaded successfully, finalizing and returning
INFO box_collection: Searching for box: vSphere (vsphere) in /home/daon/.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/daon/Documents/vagrant-vsphere-master/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:0x000000014a2878 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:0x000000018c9208
INFO warden: Calling IN action: #Vagrant::Action::Builtin::ConfigValidate:0x0000000156a288
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::ConnectVSphere:0x0000000156a198
INFO warden: Calling IN action: #Vagrant::Action::Builtin::Call:0x0000000156a080
INFO runner: Running action: #Vagrant::Action::Builder:0x007f21a0b4d250
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::IsCreated:0x007f21a0b59cd0
INFO machine: Calling action: get_state on provider vSphere (new)
INFO runner: Running action: #Vagrant::Action::Builder:0x007f21a0be1900
INFO warden: Calling IN action: #Vagrant::Action::Builtin::ConfigValidate:0x007f21a0706fe8
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::ConnectVSphere:0x007f21a0707218
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::GetState:0x007f21a0707498
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::CloseVSphere:0x007f21a0707678
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::CloseVSphere:0x007f21a0707678
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::GetState:0x007f21a0707498
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::ConnectVSphere:0x007f21a0707218
INFO warden: Calling OUT action: #Vagrant::Action::Builtin::ConfigValidate:0x007f21a0706fe8
INFO warden: Calling OUT action: #VagrantPlugins::VSphere::Action::IsCreated:0x007f21a0b59cd0
INFO runner: Running action: #Vagrant::Action::Warden:0x007f21a027dfd0
INFO warden: Calling IN action: #VagrantPlugins::VSphere::Action::Clone:0x007f21a027de40
ERROR warden: Error occurred: uninitialized constant VagrantPlugins::VSphere::Action::Clone::Error
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
ERROR warden: Error occurred: uninitialized constant VagrantPlugins::VSphere::Action::Clone::Error
INFO warden: Beginning recovery process...
INFO warden: Calling recover: #Vagrant::Action::Builtin::Call:0x0000000156a080
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
INFO warden: Recovery complete.
An error occurred while connecting to vSphere: uninitialized constant VagrantPlugins::VSphere::Action::Clone::Error
ERROR warden: Error occurred: No error message
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
INFO environment: Running hook: environment_unload
INFO runner: Running action: #Vagrant::Action::Builder:0x007f21a0d12b80
ERROR vagrant: Vagrant experienced an error! Details:
ERROR vagrant: #<VagrantPlugins::VSphere::Errors::VSphereError: No error message>
ERROR vagrant: No error message
ERROR vagrant: /home/daon/.vagrant.d/gems/gems/vagrant-vsphere-0.1.0/lib/vSphere/action/connect_vsphere.rb:19:in rescue in call' /home/daon/.vagrant.d/gems/gems/vagrant-vsphere-0.1.0/lib/vSphere/action/connect_vsphere.rb:14:in
call'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/warden.rb:34:in call' /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/builtin/config_validate.rb:25:in
call'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/warden.rb:34:in call' /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/builder.rb:116:in
call'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/runner.rb:61:in block in run' /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/util/busy.rb:19:in
busy'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/runner.rb:61:in run' /opt/vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/machine.rb:147:in
action'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/batch_action.rb:63:in `block (2 levels) in run'
INFO interface: error: No error message
No error message
[daon@localhost example_box]$
from vagrant-vsphere.
I haven't found a solution. I am using a debian system, and picked this up again this morning. After upgrading to the latest version of this plugin and vagrant, the errors you produced are exactly the same that I receive.
from vagrant-vsphere.
ok cheers. In my case, the ruby script clone.rb appears to hit a problem att
location = RbVmomi::VIM.VirtualMachineRelocateSpec :pool => get_resource_pool(connection, machine)
so I am attempting to create a resource pool on my esx. I'll let you know if i do solve it!
from vagrant-vsphere.
hi,
in my case, the problem was that the find_vm method in clone.rb could not find the template
template = dc.find_vm config.template_name
this was due to the fact that I had created my template vm in a data store that was the 4th datastore in the list of available datastores. If you create the template in the datastore that is the first data store, it will find the template and the clone begins!
Would anyone know if there is a parameter to set the datastore within the Vagrantfile?
from vagrant-vsphere.
There isn't a way to set the datastore. You shouldn't need to specify the datastore when looking up the template; it should be available in the root folder of the datacenter regardless of where it is stored. You will need to make sure that the folder path for the template is correct and that your user has permission to access the template's datastore. Your user also needs permission to access the compute resource in order to get the resource pool.
Right now, new VMs are created on the same datastore as the template. We're planning to add the ability to specify the datastore for the new VM.
from vagrant-vsphere.
Ok cheers, I didn't add any folder path for the template_name property. Is the full path the 'data store\templatename'? I will check out if the first data store is the only store available from the root.
I do have access to the data store and resource pool as I created a resource pool.
I will probably create them in the first data store and move them after creation.
from vagrant-vsphere.
Related Issues (20)
- How to define multi-machine vagrantfile using different vm templates? HOT 2
- error-exit ["VagrantPlugins::VSphere::Errors::VSphereError", "execution expired"]
- undefined method `[]' for nil:NilClass after setting host name
- No setting for command timeout
- Is this project still maintained? HOT 1
- vagrant-vsphere install fails on vagrant 2.2.7
- Vagrant Configures with IPv6 instead of IPv4 HOT 1
- Specifying IPv4 address removes default gateway HOT 1
- Vagrantfile to manage existing VMs HOT 1
- Authentication to vCenter with 2FA TOTP
- Is there still active maintainers for this project ? HOT 1
- 400 Error when downloading vsphere-dummy box
- "can't modify frozen String" error on vagrant-vsphere 1.14.0 HOT 1
- vagant loop weird HOT 2
- Which vSphere Version?
- Cannot install in vagrant 2.3.4 from Debian HOT 2
- Prompt vsphere password programatically HOT 1
- Test issue for GH actions
- Test issue for GH actions - part two
- Test out GH actions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vagrant-vsphere.