<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>Professional VMware &#187; VIX</title> <atom:link href="http://professionalvmware.com/category/vix/feed/" rel="self" type="application/rss+xml" /><link>http://professionalvmware.com</link> <description>How Many Turtles Can You Fit On A Rock?</description> <lastBuildDate>Fri, 10 Feb 2012 00:37:53 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.2.1</generator> <item><title>vCenter Orchestrator &#8211; VIX Plugin Installation</title><link>http://professionalvmware.com/2011/06/vcenter-orchestrator-vix-plugin-installation/</link> <comments>http://professionalvmware.com/2011/06/vcenter-orchestrator-vix-plugin-installation/#comments</comments> <pubDate>Mon, 27 Jun 2011 14:44:00 +0000</pubDate> <dc:creator>bunchc</dc:creator> <category><![CDATA[automation]]></category> <category><![CDATA[orchestrator]]></category> <category><![CDATA[vCO]]></category> <category><![CDATA[VIX]]></category> <guid
isPermaLink="false">http://professionalvmware.com/2011/06/vcenter-orchestrator-vix-plugin-installation/</guid> <description><![CDATA[If you are going to be using Orchestrator… and you should be, you are going to want to pull down and install the VIX plugin from here. Why? I hope you are strapped into your seat, and that seat is bolted to the floor because the awesome fixing to drop will hit with a force [...]]]></description> <content:encoded><![CDATA[<p></p><p>If you are going to be using Orchestrator… and you should be, you are going to want to pull down and install the VIX plugin from <a
href="http://labs.vmware.com/flings/vix-vco">here</a>.</p><p>Why? I hope you are strapped into your seat, and that seat is bolted to the floor because the awesome fixing to drop will hit with a force so hard it will blow you over otherwise. Think on this situation:</p><blockquote><p>“ZOMG We’re changing the network addressing scheme, and you… yes you need to change all of the IP addresses and gateways, in the next 45 minutes.”</p></blockquote><p><em>Note: I know that’s a bit out there, but it happens.</em></p><p>Not sufficiently blown away? Look at some of my other posts on <a
href="http://professionalvmware.com/?s=vix">VIX</a> to get a handle on the power the VIX API gives you for working <em>inside</em> the virtual machine.</p><h3>Want some of this unadulterated automation awesomeness?</h3><p>Pull down the bits from <a
href="http://labs.vmware.com/flings/vix-vco">here</a>, and follow these steps:</p><ol><li>Extract the zip file:<br
/> <a
href="http://professionalvmware.com/wp-content/uploads/2011/06/image6.png"><img
style="background-image: none; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://professionalvmware.com/wp-content/uploads/2011/06/image_thumb6.png" border="0" alt="image" width="244" height="130" /></a></li><li>Copy “VMware-vix-x64-1.10.1-266898.zip” to “C:\Program Files\VMware\” and extract it:<br
/> <a
href="http://professionalvmware.com/wp-content/uploads/2011/06/image7.png"><img
style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://professionalvmware.com/wp-content/uploads/2011/06/image_thumb7.png" border="0" alt="image" width="383" height="211" /></a></li><li>Edit the PATH variable on the system (System Properties &gt; Advanced &gt; Environment Variables) and add this:”C:\Program Files\VMware\VMware-vix-x64-1.10.1-266898”<br
/> <a
href="http://professionalvmware.com/wp-content/uploads/2011/06/image8.png"><img
style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://professionalvmware.com/wp-content/uploads/2011/06/image_thumb8.png" border="0" alt="image" width="255" height="294" /></a></li><li>Add the plugin to vCO:<br
/> <a
href="http://professionalvmware.com/wp-content/uploads/2011/06/image9.png"><img
style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://professionalvmware.com/wp-content/uploads/2011/06/image_thumb9.png" border="0" alt="image" width="423" height="56" /></a></li><li>Log into vCO check out the new workflows:<br
/> <a
href="http://professionalvmware.com/wp-content/uploads/2011/06/image10.png"><img
style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://professionalvmware.com/wp-content/uploads/2011/06/image_thumb10.png" border="0" alt="image" width="285" height="434" /></a></li></ol><h3>Summary</h3><p>VIX really is some good stuff for taking your automation beyond basic VM building and allowing you to preform actions within the guest. If you have any questions or comments, feel free to drop a line in the comments or follow me on Twitter <a
href="http://twitter.com/cody_bunch">here</a>.</p> ]]></content:encoded> <wfw:commentRss>http://professionalvmware.com/2011/06/vcenter-orchestrator-vix-plugin-installation/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>VCAP-DCA Section 8 Scripting &amp; Automation &#8211; Follow-up</title><link>http://professionalvmware.com/2011/01/vcap-dca-section-8-scripting-automation-follow-up/</link> <comments>http://professionalvmware.com/2011/01/vcap-dca-section-8-scripting-automation-follow-up/#comments</comments> <pubDate>Thu, 06 Jan 2011 15:51:22 +0000</pubDate> <dc:creator>bunchc</dc:creator> <category><![CDATA[BrownBag]]></category> <category><![CDATA[BrownBagRecording]]></category> <category><![CDATA[PowerCLI]]></category> <category><![CDATA[VCAP]]></category> <category><![CDATA[VIX]]></category> <category><![CDATA[vMA]]></category> <guid
isPermaLink="false">http://professionalvmware.com/2011/01/vcap-dca-section-8-scripting-automation-follow-up/</guid> <description><![CDATA[We had a decent, if quick show last night, during with we covered VMRun/VIX, PowerCLI, and a few other things. Here are the show notes: Video: ProfessionalVMware VCAP-DCA BrownBag &#8211; Scripting &#38; Automation from ProfessionalVMware on Vimeo. Flash Cards: Here they are… only 5 this time: http://www.flashcardexchange.com/flashcards/view/1599665 Objectives: Objective 8.1 PowerCLI Notes: Getting started with [...]]]></description> <content:encoded><![CDATA[<p></p><p>We had a decent, if quick show last night, during with we covered VMRun/VIX, PowerCLI, and a few other things. Here are the show notes:</p><h3>Video:</h3><p> <iframe
height="300" src="http://player.vimeo.com/video/18498985" frameborder="0" width="400"></iframe><p><a
href="http://vimeo.com/18498985">ProfessionalVMware VCAP-DCA BrownBag &#8211; Scripting &amp; Automation</a> from <a
href="http://vimeo.com/provmware">ProfessionalVMware</a> on <a
href="http://vimeo.com">Vimeo</a>.</p><h3>Flash Cards:</h3><p>Here they are… only 5 this time: <br
/><a
href="http://www.flashcardexchange.com/flashcards/view/1599665">http://www.flashcardexchange.com/flashcards/view/1599665</a></p><h3>Objectives:</h3><h4>Objective 8.1 PowerCLI Notes:</h4><ul><li>Getting started with PowerShell &#8211; <a
title="http://technet.microsoft.com/en-us/library/ee221100.aspx" href="http://technet.microsoft.com/en-us/library/ee221100.aspx">http://technet.microsoft.com/en-us/library/ee221100.aspx</a></li><li>PowerCLI &#8211; <a
title="http://communities.vmware.com/community/vmtn/vsphere/automationtools/powercli" href="http://communities.vmware.com/community/vmtn/vsphere/automationtools/powercli">http://communities.vmware.com/community/vmtn/vsphere/automationtools/powercli</a></li><li>Update Manager cmd-lets &#8211; <a
title="http://www.vmware.com/support/developer/ps-libs/vumps/" href="http://www.vmware.com/support/developer/ps-libs/vumps/">http://www.vmware.com/support/developer/ps-libs/vumps/</a></li><li>Hal’s book &#8211; <a
title="http://amzn.to/g0WmPc" href="http://amzn.to/g0WmPc">http://amzn.to/g0WmPc</a></li><li>Sean’s PowerCLI Section &#8211; <a
title="http://www.vfail.net/other-pages/powercli/" href="http://www.vfail.net/other-pages/powercli/">http://www.vfail.net/other-pages/powercli/</a></li><li>Getting Started with PowerCLI &#8211; <a
title="http://www.virtu-al.net/2009/11/10/powercli-where-do-i-start/" href="http://www.virtu-al.net/2009/11/10/powercli-where-do-i-start/">http://www.virtu-al.net/2009/11/10/powercli-where-do-i-start/</a></li><li>My VIX section &#8211; <a
title="http://professionalvmware.com/?s=vix" href="http://professionalvmware.com/?s=vix">http://professionalvmware.com/?s=vix</a></li><li>Sean’s 8.1 page: <a
title="http://www.vfail.net/2010/09/07/vcap-dca-objective-8-1-execute-vmware-cmdlets-and-customize-scripts-using-powercli/" href="http://www.vfail.net/2010/09/07/vcap-dca-objective-8-1-execute-vmware-cmdlets-and-customize-scripts-using-powercli/">http://www.vfail.net/2010/09/07/vcap-dca-objective-8-1-execute-vmware-cmdlets-and-customize-scripts-using-powercli/</a></li></ul><h4>Objective 8.2 Orchestrator Notes:</h4><p>N/A &#8211; We didn’t touch on Orchestrator this go around.s</p><h4>Objective 8.3 vMA Notes:</h4><p>There are any number of great resources here. Instead of covering this directly in the BrownBag, I decided to self reference a BrownBag we did in the past with Sean Crookston of vFail.net <a
href="http://professionalvmware.com/2010/10/vfail-brownbag-the-second-vma/">here</a>.</p><h3>Other Resources:</h3><ul><li>Saffa Geek’s VCAP Prep page has been updated &#8211; <a
title="http://thesaffageek.wordpress.com/vcap-dca-dcd/" href="http://thesaffageek.wordpress.com/vcap-dca-dcd/">http://thesaffageek.wordpress.com/vcap-dca-dcd/</a></li><li>Sean Crookston’s VCAP-DCA page &#8211; <a
title="http://www.vfail.net/vcap-dca/" href="http://www.vfail.net/vcap-dca/">http://www.vfail.net/vcap-dca/</a></li><li>Sean’s result &#8211; <a
title="http://www.vfail.net/2011/01/04/and-the-vcap-dca-results-are-in/" href="http://www.vfail.net/2011/01/04/and-the-vcap-dca-results-are-in/">http://www.vfail.net/2011/01/04/and-the-vcap-dca-results-are-in/</a></li></ul><h3>Summary</h3><p>As this particular BrownBag was short, and we didn’t cover Orchestrator as well as we should have, so we’ll be doing the next BrownBag specifically on Orchestrator.</p><p>As always, if you’ve questions or comments, leave them here or drop a note on <a
href="http://twitter.com/cody_bunch">twitter</a>.</p> ]]></content:encoded> <wfw:commentRss>http://professionalvmware.com/2011/01/vcap-dca-section-8-scripting-automation-follow-up/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Awesome VMware VIX Training</title><link>http://professionalvmware.com/2010/04/awesome-vmware-vix-training/</link> <comments>http://professionalvmware.com/2010/04/awesome-vmware-vix-training/#comments</comments> <pubDate>Mon, 26 Apr 2010 12:58:00 +0000</pubDate> <dc:creator>bunchc</dc:creator> <category><![CDATA[administration]]></category> <category><![CDATA[ntpro.nl]]></category> <category><![CDATA[VIX]]></category> <category><![CDATA[vSphere]]></category> <guid
isPermaLink="false">http://professionalvmware.com/2010/04/awesome-vmware-vix-training/</guid> <description><![CDATA[No really, it is seriously awesome. Eric Sloof from NTPRO.nl has published a video that runs you through a little utility he wrote called “vmFilemanager”, then further shows you how to create such a utility using the free edition of Visual Basic 2008. Online Training – Automating vSphere with the VIX API from Eric Sloof [...]]]></description> <content:encoded><![CDATA[<p></p><p>No really, it is seriously awesome. <a
href="http://twitter.com/esloof">Eric Sloof</a> from <a
href="http://www.ntpro.nl/blog">NTPRO.nl</a> has published a <a
href="http://www.ntpro.nl/blog/archives/1483-Online-Training-Automating-vSphere-with-the-VIX-API.html">video</a> that runs you through a little utility he wrote called “vmFilemanager”, then further shows you how to create such a utility using the free edition of Visual Basic 2008.</p><p> <object
width="400" height="300"><param
name="allowfullscreen" value="true" /><param
name="allowscriptaccess" value="always" /><param
name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=11193427&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=1&amp;color=24ff95&amp;fullscreen=1" /><embed
src="http://vimeo.com/moogaloop.swf?clip_id=11193427&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=1&amp;color=24ff95&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object><p><a
href="http://vimeo.com/11193427">Online Training – Automating vSphere with the VIX API</a> from <a
href="http://vimeo.com/esloof">Eric Sloof NTPRO.NL</a> on <a
href="http://vimeo.com">Vimeo</a>.</p><p>For more VIX goodness you can check out my past <a
href="http://professionalvmware.com/category/vix/">posts on VIX</a>, as well as dive into this link provided by <a
href="http://twitter.com/lamw">William Lam</a>, <a
title="http://bit.ly/dAm5NW" href="http://bit.ly/dAm5NW">http://bit.ly/dAm5NW</a></p> ]]></content:encoded> <wfw:commentRss>http://professionalvmware.com/2010/04/awesome-vmware-vix-training/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Using VIX to Defrag Windows Guests</title><link>http://professionalvmware.com/2009/01/using-vix-to-defrag-windows-guests/</link> <comments>http://professionalvmware.com/2009/01/using-vix-to-defrag-windows-guests/#comments</comments> <pubDate>Mon, 12 Jan 2009 14:19:00 +0000</pubDate> <dc:creator>bunchc</dc:creator> <category><![CDATA[automation]]></category> <category><![CDATA[ESX]]></category> <category><![CDATA[vCenter]]></category> <category><![CDATA[VI Toolkit]]></category> <category><![CDATA[VI3]]></category> <category><![CDATA[VIX]]></category> <category><![CDATA[VM]]></category> <category><![CDATA[VMware]]></category> <guid
isPermaLink="false">http://professionalvmware.com/2009/01/12/using-vix-to-defrag-windows-guests/</guid> <description><![CDATA[Why? Because it’s awesome, that’s why. Below is an example, complete with syntax and screenshots on how to defragment a windows guest using VMware’s VIX. Here is what it looked like before: Here is the command used from the host where VIX is installed: C:\Program Files\VMware\VMware VIX&#62;vmrun -T esx -h https://vCenter.server.com/sdk &#8211; u domain\user -p [...]]]></description> <content:encoded><![CDATA[<p></p><p>Why? Because it’s awesome, that’s why. Below is an example, complete with syntax and screenshots on how to defragment a windows guest using VMware’s VIX.</p><p>Here is what it looked like before:</p><p><a
href="http://professionalvmware.com/wp-content/uploads/2009/01/20090109-1841.png"><img
title="2009-01-09_1841" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="125" alt="2009-01-09_1841" src="http://professionalvmware.com/wp-content/uploads/2009/01/20090109-1841-thumb.png" width="244" border="0" /></a></p><p>Here is the command used from the host where VIX is installed:</p><p><font
face="Courier New">C:\Program Files\VMware\VMware VIX&gt;vmrun -T esx -h </font><a
href="https://vCenter.server.com/sdk"><font
face="Courier New">https://vCenter.server.com/sdk</font></a><font
face="Courier New"> &#8211; <br
/>u domain\user -p pass -gu domain\user -gp pass runProgramInGuest <br
/> &quot;[Local Storage] vm/vm.vmx&quot; C:\windows\system32\defrag.exe -f c:</font></p><p>A bit of explanation is needed there. In the vmrun command the “-T esx” specifies we connect to an ESX host, and the “-h http://” gives the URL to the SDK of either the host, or in this case, the vCenter (Virtual Center) that the host belongs to. The next sets of parameters specify a user on the vCenter, or ESX host “-u” &amp; “-p” respectively. As well as a user and password for the guest “-gu” &amp; “-gp”.</p><p>Next we specify that we want to run a program inside the guest “runProgramInGuest”, and then which guest to run it on “[Local Storage]… .vmx”</p><p>The last, and most important parts, are the actual command &quot;C:\windows\system32\defrag.exe –f c:” I’ve found that it’s important to specify the entire path to the command you are accessing, as it seems VIX does not have visibility into your path variable.</p><p>So, now that we’ve done all that, what does our disk look like afterwards:</p><p><a
href="http://professionalvmware.com/wp-content/uploads/2009/01/20090109-1926.png"><img
title="2009-01-09_1926" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="125" alt="2009-01-09_1926" src="http://professionalvmware.com/wp-content/uploads/2009/01/20090109-1926-thumb.png" width="244" border="0" /></a></p> ]]></content:encoded> <wfw:commentRss>http://professionalvmware.com/2009/01/using-vix-to-defrag-windows-guests/feed/</wfw:commentRss> <slash:comments>11</slash:comments> </item> <item><title>VMware VIX, now with PowerShell</title><link>http://professionalvmware.com/2009/01/vmware-vix-now-with-powershell/</link> <comments>http://professionalvmware.com/2009/01/vmware-vix-now-with-powershell/#comments</comments> <pubDate>Fri, 09 Jan 2009 18:16:05 +0000</pubDate> <dc:creator>bunchc</dc:creator> <category><![CDATA[automation]]></category> <category><![CDATA[powershell]]></category> <category><![CDATA[VIX]]></category> <category><![CDATA[VM]]></category> <category><![CDATA[VMware]]></category> <guid
isPermaLink="false">http://professionalvmware.com/2009/01/09/vmware-vix-now-with-powershell/</guid> <description><![CDATA[This is almost as good as a Peanut butter sandwich with Marshmallow cream. Or at least as good as the four shot “Venti&#8217;” mocha I just finished. It seems there is now some third part goodness from the VIX community, that will enable you to use it (VIX That is) with PowerShell. WOOT! The original [...]]]></description> <content:encoded><![CDATA[<p></p><p>This is almost as good as a Peanut butter sandwich with Marshmallow cream. Or at least as good as the four shot “Venti&#8217;” mocha I just finished. It seems there is now some third part goodness from the <a
href="http://communities.vmware.com/thread/186164">VIX community</a>, that will enable you to use it (VIX That is) with PowerShell. WOOT!</p><p>The original post from the VIX API blog is <a
href="http://blogs.vmware.com/vix/">here</a>.</p> ]]></content:encoded> <wfw:commentRss>http://professionalvmware.com/2009/01/vmware-vix-now-with-powershell/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>VIXated with VMware&#8217;s VIX</title><link>http://professionalvmware.com/2008/12/vixated-with-vmwares-vix/</link> <comments>http://professionalvmware.com/2008/12/vixated-with-vmwares-vix/#comments</comments> <pubDate>Thu, 18 Dec 2008 20:20:00 +0000</pubDate> <dc:creator>bunchc</dc:creator> <category><![CDATA[administration]]></category> <category><![CDATA[API]]></category> <category><![CDATA[ESX]]></category> <category><![CDATA[esx 3.5]]></category> <category><![CDATA[guest OS]]></category> <category><![CDATA[VI3]]></category> <category><![CDATA[Virtual Infrastructure]]></category> <category><![CDATA[VIX]]></category> <category><![CDATA[VMware]]></category> <guid
isPermaLink="false">http://professionalvmware.com/2008/12/18/vixated-with-vmwares-vix/</guid> <description><![CDATA[Since my first few posts on this got a bit of attention, I thought I&#8217;d add some more to this. In today&#8217;s post we&#8217;ll cover adding or deleting a route, and setting a default route. I’ve got requests for others that will keep the next few weeks worth of VIX posts busy. We’ll cover this [...]]]></description> <content:encoded><![CDATA[<p></p><p>Since my first few posts on this got a bit of attention, I thought I&#8217;d add some more to this. In today&#8217;s post we&#8217;ll cover adding or deleting a route, and setting a default route. I’ve got requests for others that will keep the next few weeks worth of VIX posts busy.</p><p>We’ll cover this against both a Windows and a Linux guest, because well… VIX is flexible like that. Remember, if you have any trouble, check that your VMware Tools are running, your command syntax is correct, and that you have the right user &amp; password settings.</p><h3>On Windows:</h3><p>Traditionally this would be done by logging into the guest OS, and running one of the following commands:</p><p>Adding: <br
/>Temporary Route: <font
face="Courier New">route add 192.168.100.0 mask 255.255.255.0 192.168.15.1 1 <br
/></font>Permanent Route: <font
face="Courier New">route add -p 192.168.100.0 mask 255.255.255.0 192.168.15.1 1</font></p><p>Deleting: <br
/><font
face="Courier New">route delete 192.168.100.0</font></p><p>Doing this in VIX is as simple as:</p><p>Before: <br
/><a
href="http://professionalvmware.com/wp-content/uploads/2008/12/20081215-2039.png"><img
title="2008-12-15_2039" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="125" alt="2008-12-15_2039" src="http://professionalvmware.com/wp-content/uploads/2008/12/20081215-2039-thumb.png" width="244" border="0" /></a></p><p>Adding: <br
/><font
face="Courier New">vmrun -T esx -h </font><a
href="https://esx/sdk"><font
face="Courier New">https://esx/sdk</font></a><font
face="Courier New"> -u cody.bunch -p password -gu guest.user -gp guest.password runProgramInGuest &quot;[datastore] vm/vmx.vmx&quot; c:\windows\system32\route.exe add -p 192.168.100.0 mask 255.255.255.0 192.168.15.1</font></p><p><a
href="http://professionalvmware.com/wp-content/uploads/2008/12/20081215-2049.png"><img
title="2008-12-15_2049" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="125" alt="2008-12-15_2049" src="http://professionalvmware.com/wp-content/uploads/2008/12/20081215-2049-thumb.png" width="244" border="0" /></a></p><p>Deleting: <br
/><font
face="Courier New">vmrun -T esx -h </font><a
href="https://esx/sdk"><font
face="Courier New">https://esx/sdk</font></a><font
face="Courier New"> -u cody.bunch -p password -gu guest.user -gp guest.password runProgramInGuest &quot;[datastore] vm/vmx.vmx&quot; c:\windows\system32\route.exe delete 192.168.100.0 </font></p><p><font
face="Courier New"><a
href="http://professionalvmware.com/wp-content/uploads/2008/12/20081215-2054.png"><img
title="2008-12-15_2054" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="125" alt="2008-12-15_2054" src="http://professionalvmware.com/wp-content/uploads/2008/12/20081215-2054-thumb.png" width="244" border="0" /></a></font></p><p>Setting the default was accomplished back in our setting the <a
href="http://professionalvmware.com/2008/12/12/vmware-vix-changing-ips-of-a-guest-vm/">IP address post.</a></p><p><font
face="Courier New">C:\Program Files\VMware\VMware VIX&gt;vmrun -T esx -h </font><a
href="https://esx.example.com/sdk"><font
face="Courier New">https://esx.example.com/sdk</font></a><font
face="Courier New"> -u nerv\cody.bunch -p apassword -gu Administrator -gp anotherpassword&#160; runProgramInGuest “[sanstorage1] test/test.vmx” c:\windows\system32\netsh int ip set address “Local Area Connection” static 192.168.15.25 255.255.255.0 192.1</font></p><p>&#160;</p></p><h3>On Linux</h3><p>On Linux, where my knowledge is quite limited, I’ve come to understand (thanks Google) that it’s as simple as the “route add –net” commands to add and delete routes. I did find however, that for making this route persistent, can vary across distro of choice, and thus I’ve not included it here.</p><p>Adding: <br
/><font
face="Courier New">route add –net 192.168.100.0/24 gw 192.168.15.1</font></p><p>Deleting: <br
/><font
face="Courier New">route del –net 192.168.100.0/24 gw 192.168.15.1</font></p><p>In VIX:</p><p>Before:</p><p><a
href="http://professionalvmware.com/wp-content/uploads/2008/12/20081215-2106.png"><img
title="2008-12-15_2106" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="153" alt="2008-12-15_2106" src="http://professionalvmware.com/wp-content/uploads/2008/12/20081215-2106-thumb.png" width="244" border="0" /></a></p><p>Adding: <br
/><font
face="Courier New">vmrun -T esx -h </font><a
href="http://dc01.nerv.local/sdk"><font
face="Courier New">http://dc01.nerv.local/sdk</font></a><font
face="Courier New"> -u user -p password -gu root -gp rootpassword runProgramInGuest &quot;[Local <br
/> Storage] shell.nerv.local/shell.nerv.local.vmx&quot; /sbin/route add -net 192.168.10 <br
/>0.0/24 gw 192.168.15.1</font></p><p><font
face="to">Deleting: <br
/></font><font
face="Courier New">vmrun -T esx -h </font><a
href="http://dc01.nerv.local/sdk"><font
face="Courier New">http://dc01.nerv.local/sdk</font></a><font
face="Courier New"> -u user -p password -gu root -gp rootpassword runProgramInGuest &quot;[Local <br
/> Storage] shell.nerv.local/shell.nerv.local.vmx&quot; /sbin/route add -net 192.168.10 <br
/>0.0/24 gw 192.168.15.1</font></p><p><font
face="to">See! <br
/><a
href="http://professionalvmware.com/wp-content/uploads/2008/12/20081215-2112.png"><img
title="2008-12-15_2112" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="153" alt="2008-12-15_2112" src="http://professionalvmware.com/wp-content/uploads/2008/12/20081215-2112-thumb.png" width="244" border="0" /></a> </font></p> ]]></content:encoded> <wfw:commentRss>http://professionalvmware.com/2008/12/vixated-with-vmwares-vix/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>Even More VIX Awesomeness</title><link>http://professionalvmware.com/2008/12/even-more-vix-awesomeness/</link> <comments>http://professionalvmware.com/2008/12/even-more-vix-awesomeness/#comments</comments> <pubDate>Tue, 16 Dec 2008 13:00:00 +0000</pubDate> <dc:creator>bunchc</dc:creator> <category><![CDATA[guest OS]]></category> <category><![CDATA[VIX]]></category> <category><![CDATA[VM]]></category> <category><![CDATA[VMware]]></category> <guid
isPermaLink="false">http://professionalvmware.com/2008/12/16/even-more-vix-awesomeness/</guid> <description><![CDATA[I will really have to install this soon to give a few examples as to how it all works. Until then, here are some examples from VMware’s VIX Blog team. Use case: Restarting a service on Windows. This one&#8217;s really easy so I&#8217;ll just show it without explanation. &#160;&#160;&#160; Example 3: Restart a service on [...]]]></description> <content:encoded><![CDATA[<p></p><p>I will really have to install this soon to give a few examples as to how it all works. Until then, here are some examples from <a
href="http://blogs.vmware.com/vix/2008/12/managing-vm-guests-using-vmrun.html">VMware’s VIX Blog team.</a></p><blockquote><p>Use case: Restarting a service on Windows.</p><p>This one&#8217;s really easy so I&#8217;ll just show it without explanation.</p><p>&#160;&#160;&#160; Example 3: Restart a service on Windows. <br
/><font
face="Courier New">&#160;&#160;&#160; vmrun -T esx -h </font><a
href="https://esx.example.com/sdk"><font
face="Courier New">https://esx.example.com/sdk</font></a><font
face="Courier New"> -u root -p secretpw -gu user -gp userpw runProgramInGuest &quot;[storage1] Windows/Windows.vmx&quot; c:\windows\system32\net.exe restart dhcp</font></p></blockquote><p>Note: That example should be all on one line.</p> ]]></content:encoded> <wfw:commentRss>http://professionalvmware.com/2008/12/even-more-vix-awesomeness/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>4 Days &#8211; 4 Uses for VMware VIX (vmrun)</title><link>http://professionalvmware.com/2008/12/4-days-4-uses-for-vmware-vix-vmrun/</link> <comments>http://professionalvmware.com/2008/12/4-days-4-uses-for-vmware-vix-vmrun/#comments</comments> <pubDate>Mon, 15 Dec 2008 17:53:00 +0000</pubDate> <dc:creator>bunchc</dc:creator> <category><![CDATA[automation]]></category> <category><![CDATA[mystery]]></category> <category><![CDATA[VIX]]></category> <category><![CDATA[VM]]></category> <category><![CDATA[VMware]]></category> <guid
isPermaLink="false">http://professionalvmware.com/2008/12/15/4-days-4-uses-for-vmware-vix-vmrun/</guid> <description><![CDATA[Know what’s coming yet? No? Here are some wonderful VMware VIX things you can do while you think on it. Install VMware Tools Set IP Snapshots Reboot VM These are all on one line. Note, the first two work, the second two at the time of this writing report “Error: Unknown error” (ESX in VIX [...]]]></description> <content:encoded><![CDATA[<p></p><p>Know what’s coming yet? No? Here are some wonderful VMware VIX things you can do while you think on it.</p><ol><li>Install VMware Tools</li><li>Set IP</li><li>Snapshots</li><li>Reboot VM</li></ol><p>These are all on one line. Note, the first two work, the second two at the time of this writing report “Error: Unknown error” (ESX in VIX 1.6.2 is still experimental, but I’ve an SR with these too)</p><h3>Install VMware Tools</h3><p>vmrun –T esx –h <a
href="https://server/sdk">https://server/sdk</a> –u user –p password –gu guestUser –gp guestPassword “[datastore] /vmfolder/vmname.vmx” installTools</p><h3>Set IP</h3><p>vmrun –T esx –h <a
href="https://server/sdk">https://server/sdk</a> –u user –p password –gu guestUser –gp guestPassword runProgramInGuest &quot;[datastore] vm/vm.vmx&quot; c:\windows\system32\netsh.exe int ip set address local static 192.168.15.25 255.255.255.0 192.168.15.1 1</p><h3>Snapshots</h3><p>vmrun –T esx –h <a
href="https://server/sdk">https://server/sdk</a> –u root –p pass snapshot “[datastore] vm/vm.vmx” test <br
/>vmrun –T esx –h <a
href="https://server/sdk">https://server/sdk</a> –u root –p pass deleteSnapshot “[datastore] vm/vm.vmx” test</p><h3>Reboot VM</h3><p>vmrun –T esx –h <a
href="https://server/sdk">https://server/sdk</a> –u someuser –p password reset “[datastore] vm/vm.vmx” soft</p><p>Let me know in the comments what you’re using VIX for.</p> ]]></content:encoded> <wfw:commentRss>http://professionalvmware.com/2008/12/4-days-4-uses-for-vmware-vix-vmrun/feed/</wfw:commentRss> <slash:comments>9</slash:comments> </item> <item><title>VMware VIX &#8211; Changing IP&#8217;s of a Guest VM</title><link>http://professionalvmware.com/2008/12/vmware-vix-changing-ips-of-a-guest-vm/</link> <comments>http://professionalvmware.com/2008/12/vmware-vix-changing-ips-of-a-guest-vm/#comments</comments> <pubDate>Fri, 12 Dec 2008 18:21:00 +0000</pubDate> <dc:creator>bunchc</dc:creator> <category><![CDATA[administration]]></category> <category><![CDATA[API]]></category> <category><![CDATA[ESX]]></category> <category><![CDATA[esx 3.5]]></category> <category><![CDATA[VIX]]></category> <category><![CDATA[VM]]></category> <category><![CDATA[VMware]]></category> <guid
isPermaLink="false">http://professionalvmware.com/2008/12/12/vmware-vix-changing-ips-of-a-guest-vm/</guid> <description><![CDATA[As a demonstration of the power of VIX, I’ve chosen to show you how to change IP addresses of a Windows VM. You may want to buckle up for this. First, grab the VIX API installable from VMware’s site. In this case we’ll be using the Windows version (because that is the VM I happen [...]]]></description> <content:encoded><![CDATA[<p></p><p>As a demonstration of the power of VIX, I’ve chosen to show you how to change IP addresses of a Windows VM. You may want to buckle up for this.</p><p>First, grab the <a
href="http://www.vmware.com/support/developer/vix-api/">VIX API installable</a> from VMware’s site. In this case we’ll be using the Windows version (because that is the VM I happen to be writing this post from). The install is quick and puts all the files into “%PROGRAMFILES%\VMware\VMware VIX”.</p><p>Lets get our command prompt open:<br
/> <a
href="http://professionalvmware.com/wp-content/uploads/2008/12/20081211-2236.png"><img
style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="2008-12-11_2236" src="http://professionalvmware.com/wp-content/uploads/2008/12/20081211-2236-thumb.png" border="0" alt="2008-12-11_2236" width="244" height="176" /></a></p><p>Cool, now lets check the IP of our Windows VM:</p><p><a
href="http://professionalvmware.com/wp-content/uploads/2008/12/20081211-2313.png"><img
style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="2008-12-11_2313" src="http://professionalvmware.com/wp-content/uploads/2008/12/20081211-2313-thumb.png" border="0" alt="2008-12-11_2313" width="244" height="184" /></a></p><p>Now, lets change it:</p><p>C:\Program Files\VMware\VMware VIX&gt;vmrun -T esx -h <a
href="https://esx.example.com">https://esx.example.com</a>/sdk -u nerv\cody.bunch -p apassword -gu Administrator -gp anotherpassword  runProgramInGuest &#8220;[sanstorage1] test/test.vmx&#8221; c:\windows\system32\netsh int ip set address &#8220;Local Area Connection&#8221; static 192.168.15.25 255.255.255.0 192.168.15.1</p><p>(That is all one line, the blog wrapped it)</p><p>Now for the lovely error!</p><p><a
href="http://professionalvmware.com/wp-content/uploads/2008/12/20081212-1214.png"><img
style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="2008-12-12_1214" src="http://professionalvmware.com/wp-content/uploads/2008/12/20081212-1214-thumb.png" border="0" alt="2008-12-12_1214" width="244" height="55" /></a></p><p>Not rightly sure on that one. I’ve opened an SR for it. We’ll see how it goes.</p> ]]></content:encoded> <wfw:commentRss>http://professionalvmware.com/2008/12/vmware-vix-changing-ips-of-a-guest-vm/feed/</wfw:commentRss> <slash:comments>30</slash:comments> </item> <item><title>VMware VIX &#8211; More API&#8217;s</title><link>http://professionalvmware.com/2008/12/vmware-vix-more-apis/</link> <comments>http://professionalvmware.com/2008/12/vmware-vix-more-apis/#comments</comments> <pubDate>Fri, 12 Dec 2008 14:24:00 +0000</pubDate> <dc:creator>bunchc</dc:creator> <category><![CDATA[API]]></category> <category><![CDATA[automation]]></category> <category><![CDATA[ESX]]></category> <category><![CDATA[esx 3.5]]></category> <category><![CDATA[VI3]]></category> <category><![CDATA[Virtual Infrastructure]]></category> <category><![CDATA[VIX]]></category> <category><![CDATA[VM]]></category> <category><![CDATA[VMware]]></category> <guid
isPermaLink="false">http://professionalvmware.com/2008/12/12/vmware-vix-more-apis/</guid> <description><![CDATA[So this will need further investigation on my part. On the surface it looks really cool: “The VIX API allows development of scripts and programs to automate operations in guest virtual machines.” Read that again. Now process. Automate operations IN the guest VM. Go here for the release notes.]]></description> <content:encoded><![CDATA[<p></p><p>So <a
href="http://www.vmware.com/support/developer/vix-api/">this</a> will need further investigation on my part. On the surface it looks really cool:</p><p>“The VIX API allows development of scripts and programs to automate operations in guest virtual machines.”</p><p>Read that again. Now process. Automate operations IN the guest VM. <a
href="http://www.vmware.com/support/developer/vix-api/VIX-1.6.2-ReleaseNotes.html">Go here for the release notes.</a></p> ]]></content:encoded> <wfw:commentRss>http://professionalvmware.com/2008/12/vmware-vix-more-apis/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> </channel> </rss>
