check the documentation of the plugin, it wont take a local box
you need the dummy box and a source vm like this:
# The template we're going to clone
#vsphere.template_name = 'ubuntu.template.dc.sw10.net'
Alvaro
On Fri, Dec 15, 2017 at 10:09 PM, cally725 via Vagrant <
[email protected]> wrote:
> Hi,
>
> I am on Windows 10, with vmware workstation 14.0 installed, using packer
> 1.1.1 to build my box using type vmware.iso.
>
> My box gets created and complete with the following lines
>
> Build 'vmware-iso' finished.
> ==> Builds finished. The artifacts of successful builds are:
> --> vmware-iso: 'vmware' provider box: xtract-vmware-rhel-7.3.box
>
>
> When I try to do the vagrant up, using vagrant 1.9.6, I am getting the
> ERROR:
> Provider expected: vsphere
> Provider of box: vmware_desktop
>
> My vagrant file is:
> HOSTNAME = "exfo." + ENV['USERNAME'] + "-" +
> File.basename(File.expand_path("..",
> Dir.pwd)).tr(" ", "").tr("_", "").tr(".", "")
> BOXNAME = "xtract-vmware-rhel-7.3"
> BOXURL = "file:///c:/Test/Xtract/Packer/xtract-rhel-esxi/" + BOXNAME +
> ".box"
> Vagrant.configure("2") do |config|
> config.ssh.insert_key = false
> config.vm.box = BOXNAME
> config.vm.box_url = BOXURL
> config.vm.network "public_network", ip: "xxx.xxx.xxx.xxx", netmask:
> "255.255.254.0", gateway: "xxx.xxx.xxx.xxx"
> config.vm.synced_folder('.', '/Vagrant', type: 'rsync')
> config.vm.provider :vsphere do |vsphere|
>
> # The host we're going to connect to
> vsphere.host = 'Vcenter01.xxx.com'
> # The host for the new VM
> vsphere.compute_resource_name = 'xxx.xxx.xxx.xxx'
> # The resource pool for the new VM
> vsphere.resource_pool_name = 'Shared'
> # The template we're going to clone
> #vsphere.template_name = 'ubuntu.template.dc.sw10.net'
> # The name of the new machine
> vsphere.name = 'myvm'
> # vSphere login
> vsphere.user = 'xxxxxx'
> # vSphere password
> vsphere.password = 'xxxxxx'
> # If you don't have SSL configured correctly, set this to 'true'
> vsphere.insecure = true
> end
>
> config.vm.provision "shell", path: "scripts/xtract-start.sh", run:
> 'always'
> end
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/vagrant/issues
> IRC: #vagrant on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/vagrant-up/9e93e168-a9f1-4620-b7ee-4842fd897f31%40googlegroups.com
> <https://groups.google.com/d/msgid/vagrant-up/9e93e168-a9f1-4620-b7ee-4842fd897f31%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
Alvaro
--
This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of
those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vagrant-up/CAHqq0eyC%3DkF7V_GJzLDOD9oE16KBGqg%2B75Snry-zMDo6G2ex5g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.