Skip to content

Instantly share code, notes, and snippets.

@mevansam
Last active August 29, 2015 14:20
Show Gist options
  • Save mevansam/f50159ef7295f4bb1a0f to your computer and use it in GitHub Desktop.
Save mevansam/f50159ef7295f4bb1a0f to your computer and use it in GitHub Desktop.
VagrantFile for VMware vSphere 6 ESX Hypervisor with vCenter Server VM
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.define "esx" do |esx|
esx.vm.box = "mevansam/vmware-esxi6-vc"
esx.vm.hostname = "esxbox"
esx.vm.synced_folder ".", "/vagrant", disabled: true
esx.vm.network "forwarded_port", guest: 443, host: 18443
esx.vm.network "public_network", ip: "172.16.139.132"
esx.ssh.insert_key = false
esx.ssh.username = "root"
esx.ssh.password = "Vmware6!"
esx.ssh.shell = "sh"
config.ssh.port = 22
esx.vm.provider :vmware_fusion do |vm|
vm.vmx["memsize"] = "8192"
vm.vmx["numvcpus"] = "2"
vm.vmx["vhv.enable"] = "TRUE"
end
end
end
@mevansam
Copy link
Author

The vCenter web client will be available at https://172.16.139.135/vsphere-client/. After the box is brought up you will need to wait about 10 minutes for vCenter to start. The vCenter credentials are:

User Name: [email protected]
Password: Vmware6!

If the evaluation license has expired you will need to add a valid license to use the box and the vCenter appliance.

To create vagrant esx box without vCenter modify the box as follows:

esx.vm.box = "mevansam/vmware-esxi6"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment