Esxi as a provider ( following the link above )
From MyWiki
We will try using ubuntu first
Get Ubuntu iso, upload to datastore and build vm
Perform apt update and upgrade, reboot, install open-vm-tools then reboot
Add vagrant user with password vagrant and ensure it can su password free.
Add vagrants key
- mkdir -p /home/vagrant/.ssh
- wget --no-check-certificate https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub -O /home/vagrant/.ssh/authorized_keys
Set the correct permissions on .ssh files
Ensure the ssh server is installed and working
Create Vagrantfile
Vagrant.configure("2") do |config| config.vm.box = 'vsphere' config.vm.box_url = 'https://vagrantcloud.com/ssx/boxes/vsphere-dummy/versions/1/providers/vsphere.box' config.vm.provider :vsphere do |vsphere| # The host we're going to connect to vsphere.host = '192.168.1.253' # The host for the new VM vsphere.compute_resource_name = '192.168.1.2' # The resource pool for the new VM vsphere.resource_pool_name = 'Linux' # The template we're going to clone vsphere.template_name = 'ubuntu.template.dc.sw10.net' # The name of the new machine vsphere.name = 'bingo' # vSphere login vsphere.user = 'root' # vSphere password vsphere.password = 'password' # If you don't have SSL configured correctly, set this to 'true' vsphere.insecure = true end end