GithubHelp home page GithubHelp logo

Comments (11)

marnovdm avatar marnovdm commented on July 19, 2024

Could you post the Vagrantfile you're using when you get this error?

from vagrant-vsphere.

jischebeck avatar jischebeck commented on July 19, 2024

I get the error using the following Vagrantfile:

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
  config.vm.box = 'dummy'
  config.vm.box_url = './example_box/dummy.box'

  config.vm.provider :vsphere do |vsphere|
    vsphere.host = 'replaced'
    vsphere.data_center_name = 'ha-datacenter'
    vsphere.template_name = '_template_centos65_vagrant'
    vsphere.name = 'ji_centos'
    vsphere.user = '<user>'
    vsphere.password = '<password>'
    vsphere.insecure = 'true'
     vsphere.clone_from_vm = true
  end
end

from vagrant-vsphere.

regenrek avatar regenrek commented on July 19, 2024

Is there anything planned for the future to support the free Version of ESXI?

from vagrant-vsphere.

nitrocode avatar nitrocode commented on July 19, 2024

@regenrek, wondering the same

from vagrant-vsphere.

jwbraucher avatar jwbraucher commented on July 19, 2024

The vagrant-vsphere plugin uses the vSphere API to clone VM's. The error that you are seeing, "NotSupported: The operation is not supported on the object.", is a response coming from ESXi telling you that the API call for CloneVM is not supported. This is a fairly essential operation for using vagrant to provision VM's and cannot easily be worked around by making changes to the vagrant-vsphere plugin.

from vagrant-vsphere.

nitrocode avatar nitrocode commented on July 19, 2024

@jwbraucher

It's fairly easy to clone a VM using vmfkstools which is accessible by SSHing into the ESXi server. I use the following script for my servers to do a quick clone without vcenter.

https://gist.github.com/nitrocode/007fce26f161aa0b74ec

./clone.sh ORIGNAME CLONENAME

from vagrant-vsphere.

jwbraucher avatar jwbraucher commented on July 19, 2024

@nitrocode

The vagrant-vsphere plugin only works with the vSphere API. It is unlikely that all of the same functionality could be provided by SSHing into an ESXi server and running shell commands. CloneVM is only one of many API calls needed for vagrant-sphere to function properly.

Even if it were possible to recreate the same functionality of vagrant-vsphere using SSH and shell commands this would amount to an entirely different vagrant plugin. There are no plans to take the vagrant-vsphere project in this direction.

from vagrant-vsphere.

nitrocode avatar nitrocode commented on July 19, 2024

Guess this warrants a new plugin.

Thank you.

from vagrant-vsphere.

vikas027 avatar vikas027 commented on July 19, 2024

@jwbraucher This plugin should work with at least within the trial period of 60 days of ESXi, right ?

from vagrant-vsphere.

bish0polis avatar bish0polis commented on July 19, 2024

Hmm. If you VMwareCeption an esxi box, it'll have a shiny new 60-day. I bet you could spin up a snapshotted esxi host as a host for the actual box building; then reel it back (to a powered-off state) when you're done.

from vagrant-vsphere.

jtcressy avatar jtcressy commented on July 19, 2024

This plugin will not work with any form of standalone esxi. I tested it on a standalone host with an enterprise plus license and the feature is still not supported.

from vagrant-vsphere.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.