hello if i understood correctly.
you are building packer + vmware workstation and you want to use vagrant on vsphere is this correct? are couple of vmware vagrant plugins, which one are you using? then if packer is copying the box vsphere and the box or template is there then, in the documentation of the plugin they show you how to use a dummy box, right? if thats the case then you need to update your vagrant file per plugin instructions. packer i think is fine, so is more a vagrant question, right? Alvaro On Fri, Dec 15, 2017 at 10:12 PM, cally725 via Packer < [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/packer/issues > IRC: #packer-tool on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Packer" 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/packer-tool/cc85e06d-5f33-4a3d-98da-1e274dc17e4b%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/cc85e06d-5f33-4a3d-98da-1e274dc17e4b%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/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" 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/packer-tool/CAHqq0eza%3DYGhPNusTN4aTK9ZQDOXQjQfr%2BJO-DqEpF%2B%3D%3DFQr8A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
