Thanks for the pointers, really appreciate it!

On Monday, 4 August 2014 16:14:04 UTC-7, Alvaro Miranda Aguilera wrote:
>
> step f
>
> F. For "Configure Network" keep the default and click "Next to continue.
> in the post he does dhcp, that's why he don't have the information.
>
> my suggestion will be , remove or comment the config.vm.network
>
> then
>
> A. do it as is first , 100% the same as the blog post.
>
> B. then instead of using dhcp, set an ip there in the customization manager
>
> ensure the vmware tools are up-to-date and reboot , and see
>
>
> if the fixed ip is set, then vmware take care (not sure, you need to test)
>
> C. if doesn't, then try with config.vm.network
>
> alvaro.
>
>
> On Tue, Aug 5, 2014 at 7:26 AM, varun umesh <[email protected] 
> <javascript:>> wrote:
>
>> Hi,
>>
>> i did see the blog that you have given to me. It is very helpful. But, he 
>> does not specify the IP address assignment in it. Any ways, i will give a 
>> try now!
>>
>> Thanks for your help!
>>
>> On Monday, 4 August 2014 12:18:50 UTC-7, Alvaro Miranda Aguilera wrote:
>>>
>>> it looks good, just be sure to test.
>>>
>>> check the blog post I did reference, and it should work.
>>>
>>> http://sdorsett.github.io/2014/04/24/vagrant-and-
>>> vcenter-guest-customization/
>>>
>>> good luck
>>> alvaro.
>>>
>>>
>>> On Tue, Aug 5, 2014 at 6:57 AM, varun umesh <[email protected]> wrote:
>>>
>>>> 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]> 
>>>>> 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].
>>>>>> 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.
>>>>
>>>
>>>  -- 
>> 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