Hello All,
I am having trouble provisioning a VM with the VMWare VSphere provide <https://github.com/nsidc/vagrant-vsphere>r. It is able to provision the machine fine, but when it finishes, it just sits at this: <https://lh5.googleusercontent.com/-8dVkFpa4vIg/VNvtWbLQFlI/AAAAAAAAAIg/bSNRVDWcEiE/s1600/vagrant_issue.png> The issue seems to be that the new hostname of the machine never applies. So, I guess Vagrant is looking for perbr05-cmui, but it doesn't exist yet. If I reboot the machine, the new host name takes affect and vagrant makes it to this part and does nothing else: <https://lh5.googleusercontent.com/-x1pap1KbC4w/VNvt98UWRpI/AAAAAAAAAIo/BLyJFFHl5mw/s1600/vagrant_issue_after_reboot.png> Here is the VagrantFile. username = nil password = nil if File.exist?("config.yml") require 'yaml' config = YAML::load(File.open('config.yml')) username = config['username'] password = config['password'] end Vagrant.configure("2") do |config| config.vm.box = 'vsphere' config.vm.box_url = 'https://vagrantcloud.com/ssx/boxes/vsphere-dummy/versions/0.0.1/providers/vsphere.box' config.vm.hostname = ENV['USERNAME'].downcase + "-cmui" config.vm.provision "shell", inline: "hostname " + config.vm.hostname config.vm.provision "shell", inline: "service network restart" config.vm.provider :vsphere do |vsphere| vsphere.host = '' vsphere.compute_resource_name = 'Dev cluster' vsphere.template_name = 'cm_dev_ui_template' vsphere.name = ENV['USERNAME'].downcase + "-cmui" vsphere.user = username vsphere.password = password vsphere.insecure = true vsphere.customization_spec_name = "cm-ui-dev" end end Thanks for any assistance. -- 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]. For more options, visit https://groups.google.com/d/optout.
