Vagrant and Vcenter: direct workflow

19 views
Skip to first unread message

Mariusz

unread,
Feb 11, 2020, 11:12:17 PM2/11/20
to Vagrant
Hi guys,

I've been searching around if it is possible to provision VMs using Vagrant directly connected to Vcenter and not underlying ESXi?
Has anyone done this or seen some docs?
I have ESXi HA cluster of 3 hosts and would like to provision VMs  using Packer and Vagrant. 

I'd be grateful for any directions.
Thanks


dragon788

unread,
Feb 12, 2020, 4:25:40 PM2/12/20
to Vagrant
I believe the vSphere provider supports this, you may still use a connector labeled ESXi but it can be given the cluster address instead of a node address.

Mariusz

unread,
Feb 12, 2020, 4:34:23 PM2/12/20
to Vagrant
Nice! Thanks a lot, just searched for this and looks like your are right. In the documentation it says:

"ESXi is not supported. Make sure to connect to a vCenter server and not directly to an ESXi host. ESXi vs vCenter"

I will give it a try then and will use https://github.com/nsidc/vagrant-vsphere.

JP Toto

unread,
Feb 12, 2020, 8:58:39 PM2/12/20
to vagra...@googlegroups.com
If you're trying to create instances on a remote server, like ESXi, Packer would be a better tool as it's purpose-built for the task. This https://nickcharlton.net/posts/using-packer-esxi-6.html is a good blog post for configuring ESXi to accept Packer commands and there is a link to a Github repo with a good example. 

--
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 vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/1a240397-d419-46ae-a7f9-984820579e78%40googlegroups.com.


--
JP Toto   |   james....@gmail.com   |   http://jptoto.jp   |   @jptoto
Reply all
Reply to author
Forward
0 new messages