<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to use SDK API to assign static IP address to VM in vSphere Management SDK Discussions</title>
    <link>https://communities.vmware.com/t5/vSphere-Management-SDK/How-to-use-SDK-API-to-assign-static-IP-address-to-VM/m-p/2491206#M13322</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you got the exact code to assign static IP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Oct 2017 13:38:06 GMT</pubDate>
    <dc:creator>balajiyelmar1</dc:creator>
    <dc:date>2017-10-23T13:38:06Z</dc:date>
    <item>
      <title>How to use SDK API to assign static IP address to VM</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/How-to-use-SDK-API-to-assign-static-IP-address-to-VM/m-p/2491199#M13315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I use SDK API to assign static IP address to VM when cloning a new VM? I used VI Client to do it but it failed. Therefore, I am wondering if SDK API can do this. Can anyone give me a sample code? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeff &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 17:10:42 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/How-to-use-SDK-API-to-assign-static-IP-address-to-VM/m-p/2491199#M13315</guid>
      <dc:creator>jeffsong</dc:creator>
      <dc:date>2009-09-25T17:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to use SDK API to assign static IP address to VM</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/How-to-use-SDK-API-to-assign-static-IP-address-to-VM/m-p/2491200#M13316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeff, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought we had some sample code posted on Code Central but now I cant find it,,;(  What language were you needing this in.. ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pablo &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://communities.vmware.com/community/developer/codecentral" target="test_blank"&gt;http://communities.vmware.com/community/developer/codecentral&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 17:31:12 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/How-to-use-SDK-API-to-assign-static-IP-address-to-VM/m-p/2491200#M13316</guid>
      <dc:creator>heyitspablo</dc:creator>
      <dc:date>2009-09-25T17:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to use SDK API to assign static IP address to VM</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/How-to-use-SDK-API-to-assign-static-IP-address-to-VM/m-p/2491201#M13317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Pablo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response. I need java example for assigning IP address to  VM and I did not find any sample code yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give me a sample code for that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeff &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 20:00:27 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/How-to-use-SDK-API-to-assign-static-IP-address-to-VM/m-p/2491201#M13317</guid>
      <dc:creator>jeffsong</dc:creator>
      <dc:date>2009-09-25T20:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to use SDK API to assign static IP address to VM</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/How-to-use-SDK-API-to-assign-static-IP-address-to-VM/m-p/2491202#M13318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I asked our SDK Dev Support to lend a hand,,, Java it is,, anyone for C# ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 20:53:57 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/How-to-use-SDK-API-to-assign-static-IP-address-to-VM/m-p/2491202#M13318</guid>
      <dc:creator>heyitspablo</dc:creator>
      <dc:date>2009-09-25T20:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to use SDK API to assign static IP address to VM</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/How-to-use-SDK-API-to-assign-static-IP-address-to-VM/m-p/2491203#M13319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeff &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2009 19:01:58 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/How-to-use-SDK-API-to-assign-static-IP-address-to-VM/m-p/2491203#M13319</guid>
      <dc:creator>jeffsong</dc:creator>
      <dc:date>2009-09-28T19:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to use SDK API to assign static IP address to VM</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/How-to-use-SDK-API-to-assign-static-IP-address-to-VM/m-p/2491204#M13320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attached sample code that our dev team cooked up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this class, look for “deployVMFromTemplate” method. That&lt;/P&gt;&lt;P&gt;method contains “CustomizationIPSettings” object, and we are setting the IP of&lt;/P&gt;&lt;P&gt;that object to DHCP IP. To make it static instead of setting its IP to&lt;/P&gt;&lt;P&gt;“CustomizationDhcpIpGenerator”, the user needs to set it to&lt;/P&gt;&lt;P&gt;“CustomizationFixedIp” which has “ipAddress” as its property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nava &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2009 18:38:50 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/How-to-use-SDK-API-to-assign-static-IP-address-to-VM/m-p/2491204#M13320</guid>
      <dc:creator>navadavuluri</dc:creator>
      <dc:date>2009-09-29T18:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to use SDK API to assign static IP address to VM</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/How-to-use-SDK-API-to-assign-static-IP-address-to-VM/m-p/2491205#M13321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's only one field named ipAddress in CustomizationFixedIp, and how to specify netmask and gateway? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2011 09:56:57 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/How-to-use-SDK-API-to-assign-static-IP-address-to-VM/m-p/2491205#M13321</guid>
      <dc:creator>Gonzalez2011</dc:creator>
      <dc:date>2011-11-21T09:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to use SDK API to assign static IP address to VM</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/How-to-use-SDK-API-to-assign-static-IP-address-to-VM/m-p/2491206#M13322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you got the exact code to assign static IP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 13:38:06 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/How-to-use-SDK-API-to-assign-static-IP-address-to-VM/m-p/2491206#M13322</guid>
      <dc:creator>balajiyelmar1</dc:creator>
      <dc:date>2017-10-23T13:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to use SDK API to assign static IP address to VM</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/How-to-use-SDK-API-to-assign-static-IP-address-to-VM/m-p/2491207#M13323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's some sample code leveraging vSphere Management SDK for Java to assign static IP to a VM as part of cloning an existing template to create the new VM.&lt;/P&gt;&lt;P&gt;&lt;A href="https://blog.profiq.cz/2015/02/24/using-java-to-create-customized-virtual-machine-clones-on-vmware-infrastructure/" title="https://blog.profiq.cz/2015/02/24/using-java-to-create-customized-virtual-machine-clones-on-vmware-infrastructure/"&gt;https://blog.profiq.cz/2015/02/24/using-java-to-create-customized-virtual-machine-clones-on-vmware-infrastructure/&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code samples from above link are not from me. Besides, ensure that VMware tools are installed in your template (i.e. in the VM you use for template creation). Since assigning an IP to a VM is an operation on the guest OS, you need VMware tools to be able to pass the values to the guest OS. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2018 07:38:35 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/How-to-use-SDK-API-to-assign-static-IP-address-to-VM/m-p/2491207#M13323</guid>
      <dc:creator>atishbits</dc:creator>
      <dc:date>2018-08-08T07:38:35Z</dc:date>
    </item>
  </channel>
</rss>

