Hi,

Thank you very much for the reply. I really appreciate it.

I am using the plugin that you have mentioned 
[https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fnsidc%2Fvagrant-vsphere&sa=D&sntz=1&usg=AFQjCNGmCNHxyRhzyvO-azIfgOB5NmEhsg].

So, once i do the required changes in Customization Specifications Manager, 
can i assign the ip address like this:

*config.vm.network :public_network, ip: "xxx.xxx.xxx.xxx"*

Does the below Vagrantfile contents looks good?

Vagrant.configure("2") do |config|

  config.vm.box = 'dummy'

  config.vm.box_url = './example_box/dummy.box'

  config.vm.network :public_network, ip: "xxx.xxx.xxx.xxx"


  config.vm.provider :vsphere do | vsphere |

    vsphere.host = '<vSphere_Host>'

    vsphere.data_center_name = '<Data_Center_Name>'

    vsphere.data_store_name = '<Data_Store_Name>'

    vsphere.template_name = '<Template_Name>'

    vsphere.name = '<New_Name_Of_The_VM>'

    vsphere.user = '<vShpere_User_Name>'

    vsphere.password = '<The_Password>'

    vsphere.insecure = true

    vsphere.compute_resource_name = '<Compute_Resource_IP>'

*   vsphere.customization_spec_name = 'Customization_Spec_Name'*

  end

end


Thank you once again for the help!

On Monday, 4 August 2014 11:32:35 UTC-7, Alvaro Miranda Aguilera wrote:
>
> Hello,
>
> We need to separate here the vagrant software, and the vagrant plugin.
>
> seems to me, you are using this vagrant plugin:
> https://github.com/nsidc/vagrant-vsphere
>
> If yes, they have some indications about the networking.
>
> Have you have the chance to check those indications?
>
> from those indicantions, I do believe this is important: "The IP address 
> will only be set if a customization spec name is given."
>
>
> customization_spec_name - *Optional* customization spec for the new VM
>
> Seems you don't have a customization_spec_name defined.
>
> after a google search, I was able to find this blog post:
>
>
> http://sdorsett.github.io/2014/04/24/vagrant-and-vcenter-guest-customization/
>
> That seems answer your questions about networking setup.
>
> Hope this helps.
> Alvaro.
>
>
>
> On Tue, Aug 5, 2014 at 2:33 AM, varun umesh <[email protected] 
> <javascript:>> wrote:
>
>> I am using Vagrant and vagrant-vshpere plugin to deploy VM on vCenter. 
>> Vagrant deploys the VM but it fails to assign the ip address for the VM. 
>> Could any body let me know do i need to make specific changes in order for 
>> the ip address to be assigned?
>>
>> Here are the contents of my Vagrantfile:
>>
>>
>> Vagrant.configure("2") do |config|
>>
>>   config.vm.box = 'dummy'
>>
>>   config.vm.box_url = './example_box/dummy.box'
>>
>>   config.vm.network :public_network, ip: "xxx.xxx.xxx.xxx"
>>
>>
>>   config.vm.provider :vsphere do | vsphere |
>>
>>     vsphere.host = '<vSphere_Host>'
>>
>>     vsphere.data_center_name = '<Data_Center_Name>'
>>
>>     vsphere.data_store_name = '<Data_Store_Name>'
>>
>>     vsphere.template_name = '<Template_Name>'
>>
>>     vsphere.name = '<New_Name_Of_The_VM>'
>>
>>     vsphere.user = '<vShpere_User_Name>'
>>
>>     vsphere.password = '<The_Password>'
>>
>>     vsphere.insecure = true
>>
>>     vsphere.compute_resource_name = '<Compute_Resource_IP>'
>>
>>   end
>>
>> end
>>
>> I also want to know if i would be able to assign DNS, Netmask, and 
>> Gateway using Vagrant.
>>
>> Note: The template that i am uploading is a custom template [a linux box 
>> with some applications running on top of it]
>>
>>
>> Thanks!
>>
>>
>>
>>  -- 
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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.

Reply via email to