<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>VMware Communities : Thread List - VIX API</title>
    <link>http://communities.vmware.com/community/developer/forums/automationapi?view=discussions</link>
    <description>Latest Forum Threads in VIX API</description>
    <language>en</language>
    <pubDate>Fri, 20 Nov 2009 14:00:08 GMT</pubDate>
    <generator>Clearspace 1.10.12 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2009-11-20T14:00:08Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>api to open a network connection and to disable it</title>
      <link>http://communities.vmware.com/thread/242492</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
Please provide me the API to open a network connection and to disable it. Or is it possible to do the same??&lt;br /&gt;
&lt;p /&gt;
Thanks</description>
      <pubDate>Sat, 14 Nov 2009 18:19:22 GMT</pubDate>
      <author>SumitBisht</author>
      <guid>http://communities.vmware.com/thread/242492</guid>
      <dc:date>2009-11-14T18:19:22Z</dc:date>
      <clearspace:dateToText>1 day, 11 hours ago</clearspace:dateToText>
      <clearspace:messageCount>2</clearspace:messageCount>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>VMRunProgramInGuest (Perl version) returns unknown error in multithreads environment</title>
      <link>http://communities.vmware.com/thread/243215</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
I want to develope a automation test for VMWare Workstation.&lt;br /&gt;
I have two thread which open two diffent VMs and run command.&lt;br /&gt;
After some simple testing, I find find that once a thread finish its command's job, it will cause another thread be terminate, and return error code = 1 (Unknown error).&lt;br /&gt;
I guess that there might be something wrong of VMware::Vix::API::Job::Wait for multi-thread environment.&lt;br /&gt;
Are there anyone who have the same experience? And please tell me what should I do.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
The attachment is my test sample code.&lt;br /&gt;
You maybe see "Thread 2 terminated abnormally: VMRunProgramInGuest() failed, 1 Unknown error", when you run this test with two VMs logining on and exit one of calculator program. &lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Thanks a lot.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
ps.&lt;br /&gt;
1. My test is implemented by Perl, including perl threads.&lt;br /&gt;
2. My environment is VMWare Workstation 6.5.3-185404 with VIX API v.1.8.1</description>
      <category domain="http://communities.vmware.com/tags?communityID=2417">vix_api</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">automation</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">workstation_6</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">vmrunprograminguest</category>
      <pubDate>Thu, 19 Nov 2009 06:52:47 GMT</pubDate>
      <author>KudoC</author>
      <guid>http://communities.vmware.com/thread/243215</guid>
      <dc:date>2009-11-19T06:52:47Z</dc:date>
      <clearspace:dateToText>1 day, 23 hours ago</clearspace:dateToText>
      <clearspace:messageCount>3</clearspace:messageCount>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Error "Insufficient permissions in host operating system" when  an Administrator on a folder try to power on a VM with VIX API</title>
      <link>http://communities.vmware.com/thread/229106</link>
      <description>I have granted an user as an Administrator on the specified folder, her tried to power on a VM with calling VIX API but get the below error:&lt;br /&gt;
'Insufficient permissions in host operating system'.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
What permission does the user need if he want to power on/off a VM with invoking VIX API?</description>
      <pubDate>Tue, 01 Sep 2009 08:32:53 GMT</pubDate>
      <author>levinpeng</author>
      <guid>http://communities.vmware.com/thread/229106</guid>
      <dc:date>2009-09-01T08:32:53Z</dc:date>
      <clearspace:dateToText>2 days, 32 minutes ago</clearspace:dateToText>
      <clearspace:messageCount>10</clearspace:messageCount>
      <clearspace:replyCount>9</clearspace:replyCount>
    </item>
    <item>
      <title>VMware Server 2.0 Backups (VIX 1.6.2 only)</title>
      <link>http://communities.vmware.com/thread/191565</link>
      <description>&lt;b&gt;Vix_Virtuozo_Suite enables domain-wide &lt;u&gt;cold and hot&lt;/u&gt; backups of your guests. Windows and Linux (SAMBA required) host OSs are supported.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Attached is the current build of Vix_Virtuozo_Suite x86. The installer will install a Windows Service and provide GUI to configure the service options. &lt;br /&gt;
&lt;br /&gt;
All feedback and suggestions are welcome.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Service GUI&lt;/i&gt; &lt;br /&gt;
&lt;img src="http://communities.vmware.com/servlet/JiveServlet/downloadImage/2-1156985-5463/1a.JPG" alt="1a.JPG" width="450" class="jive-image-thumbnail jive-image" onclick="myJiveImage.start(this, 'http://communities.vmware.com/servlet/JiveServlet/downloadImage/2-1156985-5463/1a.JPG');return false;"/&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Guest GUI&lt;/i&gt; &lt;br /&gt;
&lt;img src="http://communities.vmware.com/servlet/JiveServlet/downloadImage/2-1156985-5473/guest.JPG" alt="guest.JPG" width="450" class="jive-image-thumbnail jive-image" onclick="myJiveImage.start(this, 'http://communities.vmware.com/servlet/JiveServlet/downloadImage/2-1156985-5473/guest.JPG');return false;"/&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Live Backup Status&lt;/i&gt;&lt;br /&gt;
&lt;img src="http://communities.vmware.com/servlet/JiveServlet/downloadImage/2-1156985-5471/stat.JPG" alt="stat.JPG" width="450" class="jive-image-thumbnail jive-image" onclick="myJiveImage.start(this, 'http://communities.vmware.com/servlet/JiveServlet/downloadImage/2-1156985-5471/stat.JPG');return false;"/&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Subscribe to this thread's email notification to receive updates on bug fixes.&lt;/b&gt;&lt;br /&gt;
&lt;span style="color:#ff0000"&gt;&lt;i&gt;Troubleshooting notes:&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="color:#ff0000"&gt;&lt;i&gt;&lt;a class="jive-link-external" href="http://www.vmware.com/support/developer/vix-api/"&gt;VIX API 1.6&lt;/a&gt; is required for this software to function.&lt;/i&gt; &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:#ff0000"&gt;&lt;i&gt;VIX_Virtuozo_Service Windows Service must log on as a user with permission to create a custom Event Log as well as have access to protected shares (CIFS) defined throughout the configuration of each host and guest.&lt;/i&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:#ff0000"&gt;&lt;i&gt;&lt;a class="jive-link-external" href="http://us6.samba.org/samba/"&gt;SAMBA&lt;/a&gt; is required for VMware hosts running Linux.&lt;/i&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style="color:green"&gt;Available Versions:&lt;br /&gt;
Vix_Virtuozo_Suite_061609 - Stable release for VIX 1.6.2.  Backs up one host at a time.&lt;br /&gt;
Vix_Virtuozo_Suite_092509 - Stable release for VIX 1.6.2.  Backs up one host at a time. (Recommended Install)&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
VIX 1.7 is &lt;b&gt;NOT&lt;/b&gt; stable to work with Server 2.0!</description>
      <category domain="http://communities.vmware.com/tags?communityID=2417">backup</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">hot</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">cold</category>
      <pubDate>Thu, 29 Jan 2009 16:52:17 GMT</pubDate>
      <author>fixitchris</author>
      <guid>http://communities.vmware.com/thread/191565</guid>
      <dc:date>2009-01-29T16:52:17Z</dc:date>
      <clearspace:dateToText>2 days, 9 hours ago</clearspace:dateToText>
      <clearspace:messageCount>126</clearspace:messageCount>
      <clearspace:replyCount>125</clearspace:replyCount>
    </item>
    <item>
      <title>Script VMWare Server 2.0 Configuration</title>
      <link>http://communities.vmware.com/thread/242035</link>
      <description>&lt;br /&gt;
Hi All.&lt;br /&gt;
&lt;p /&gt;
 I'm currently in the process of scripting the install of VMWare server. Does anyone know if there is a way to script the VM shell settings? eg: Amount of RAM, number of processors etc.&lt;br /&gt;
&lt;p /&gt;
 I've had a look around the net and haven't been able to find anything.&lt;br /&gt;
&lt;p /&gt;
Thanks&lt;br /&gt;
&lt;p /&gt;
Anthony</description>
      <pubDate>Wed, 11 Nov 2009 23:49:04 GMT</pubDate>
      <author>apmm</author>
      <guid>http://communities.vmware.com/thread/242035</guid>
      <dc:date>2009-11-11T23:49:04Z</dc:date>
      <clearspace:dateToText>2 days, 9 hours ago</clearspace:dateToText>
      <clearspace:messageCount>5</clearspace:messageCount>
      <clearspace:replyCount>4</clearspace:replyCount>
    </item>
    <item>
      <title>Pb stopping a guest using vmrun</title>
      <link>http://communities.vmware.com/thread/243311</link>
      <description>&lt;br /&gt;
Hi, &lt;br /&gt;
&lt;p /&gt;
 I've installed VMware-VIX-1.7.0-186713.x86_64.bundle on a RHEL 5.4 x86-64 Linux box.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
I've managed to use vmrun to list all VMs :&lt;br /&gt;
&lt;p /&gt;
vmrun -T vc -h &lt;a class="jive-link-external" href="https://hereismyadressip/sdk"&gt;https://hereismyadressip/sdk&lt;/a&gt; -u jylenhof -p hereismypassword list&lt;br /&gt;
Total running VMs: 101&lt;br /&gt;
&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=s0184%3Astorage1"&gt;s0184:storage1&lt;/a&gt; S0127/S0127.vmx&lt;br /&gt;
&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=VmVolume3"&gt;VmVolume3&lt;/a&gt; S0136 - Test Linux/S0136 - Test Linux.vmx&lt;br /&gt;
&amp;lt;snip&amp;gt;&lt;br /&gt;
&lt;p /&gt;
 &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=VMware_Autonome_02"&gt;VMware_Autonome_02&lt;/a&gt; SV0188 - Serveur de Chat/SV0188 - Serveur de Chat.vmx&lt;br /&gt;
&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=VMware_Autonome_02"&gt;VMware_Autonome_02&lt;/a&gt; SMTP2 - Relais Mail/SMTP2 - Relais Mail.vmx&lt;br /&gt;
&lt;p /&gt;
But when I try to use it to stop a VM, the status reported is not the real one (my guest is powered on) :&lt;br /&gt;
&lt;p /&gt;
&lt;strike&gt;root@sv0220 fence_vmware&lt;/strike&gt;# vmrun -T vc -h &lt;a class="jive-link-external" href="https://hereismyipaddress/sdk"&gt;https://hereismyipaddress/sdk&lt;/a&gt; -u jylenhof -p hereismypassword stop "&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=VmVolume1"&gt;VmVolume1&lt;/a&gt; sv0221 - Maquette FTP/sv0221 - Maquette FTP.vmx"&lt;br /&gt;
Error: The virtual machine is not powered on: &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=VmVolume1"&gt;VmVolume1&lt;/a&gt; sv0221 - Maquette FTP/sv0221 - Maquette FTP.vmx&lt;br /&gt;
&lt;strike&gt;root@sv0220 fence_vmware&lt;/strike&gt;#&lt;br /&gt;
&lt;p /&gt;
Nothing is written on the vcenter side. &lt;br /&gt;
&lt;p /&gt;
And when I try to start this already started vm, it says that it cannot connect to the virtual machine... &lt;br /&gt;
&lt;p /&gt;
&lt;strike&gt;root@sv0220 fence_vmware&lt;/strike&gt;# vmrun -T vc -h &lt;a class="jive-link-external" href="https://hereismyipaddress/sdk"&gt;https://hereismyipaddress/sdk&lt;/a&gt; -u jylenhof -p hereismypassword start "&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=VmVolume1"&gt;VmVolume1&lt;/a&gt; sv0221 - Maquette FTP/sv0221 - Maquette FTP.vmx"&lt;br /&gt;
Error: Cannot connect to the virtual machine&lt;br /&gt;
&lt;strike&gt;root@sv0220 fence_vmware&lt;/strike&gt;#&lt;br /&gt;
&lt;p /&gt;
On the vcenter side, I've this message :&lt;br /&gt;
&lt;p /&gt;
XXX VirtualMachine.powerOn.label not found XXX&lt;br /&gt;
sv0221 - Maquette FTP&lt;br /&gt;
The attempted operation cannot be performed in the current state  Powered  on).&lt;br /&gt;
BANQUE-ACCORD\jylenhofV1000.banque-accord.com&lt;br /&gt;
19/11/2009 17:03:38&lt;br /&gt;
&lt;p /&gt;
Please advice what's wrong with my commands or if there's something wrong anywhere else ?  (I can provide more information if asked precisely)&lt;br /&gt;
&lt;p /&gt;
Regards,</description>
      <pubDate>Thu, 19 Nov 2009 16:10:39 GMT</pubDate>
      <author>jylenhof</author>
      <guid>http://communities.vmware.com/thread/243311</guid>
      <dc:date>2009-11-19T16:10:39Z</dc:date>
      <clearspace:dateToText>2 days, 9 hours ago</clearspace:dateToText>
      <clearspace:messageCount>1</clearspace:messageCount>
    </item>
    <item>
      <title>RemoteInstall Test Framework based on VIX API</title>
      <link>http://communities.vmware.com/thread/242992</link>
      <description>&lt;br /&gt;
I see a lot of people trying to automate test tasks with Vix API. Well, we were too &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt; That's how I ended up writing &lt;a class="jive-link-external" href="http://vmwaretasks.codeplex.com/"&gt;VMWareTasks&lt;/a&gt;. &lt;br /&gt;
&lt;p /&gt;
Today I am happy to announce the open sourcing of RemoteInstall test framework, entirely based on VMWare. Targeted to testing installers originally, it has grown in a nice test framework. It is:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Designed for continuous integration with CruiseControl and CruiseControl.NET.&lt;/li&gt;
&lt;li&gt;Supports VMWare Professional 6.5, VMWare Server 2.0 and Virtual Infrastructure (ESX, etc.) with VMWare VIX 1.7.0+.&lt;/li&gt;
&lt;li&gt;Supports running multiple installers on multiple virtual machines with multiple snapshots.&lt;/li&gt;
&lt;li&gt;Command line, configuration file driven execution.&lt;/li&gt;
&lt;li&gt;XML and HTML logging with pretty xsl-tranformed output including custom merged results.&lt;/li&gt;
&lt;li&gt;Capable of executing user-defined command-line, virtual machine and virtual machine snapshot tasks.&lt;/li&gt;
&lt;li&gt;Capable of combining results from multiple runs and user-defined tasks.&lt;/li&gt;
&lt;li&gt;Automatically collects installation logs clickable in the results summary.&lt;/li&gt;
&lt;li&gt;Copies user-defined files and folders from/to the virtual machine.&lt;/li&gt;
&lt;li&gt;Supports horizontal scaling with parallel execution against multiple Virtual Machine hosts.&lt;/li&gt;
&lt;li&gt;Itegrates and remotes unit tests from unit test frameworks, including NUnit and JUnit.&lt;/li&gt;
&lt;li&gt;Supports some distributed test scenarios with multiple virtual machines and snapshots.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Check it out. Maybe you don't need to write that tool after-all &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;a class="jive-link-external" href="http://remoteinstall.codeplex.com/"&gt;http://remoteinstall.codeplex.com/&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <pubDate>Wed, 18 Nov 2009 01:20:10 GMT</pubDate>
      <author>dblock</author>
      <guid>http://communities.vmware.com/thread/242992</guid>
      <dc:date>2009-11-18T01:20:10Z</dc:date>
      <clearspace:dateToText>2 days, 9 hours ago</clearspace:dateToText>
      <clearspace:messageCount>2</clearspace:messageCount>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Any API to control VMware WorkStation?</title>
      <link>http://communities.vmware.com/thread/239448</link>
      <description>&lt;br /&gt;
I am currently using VIX API to open a VM and run our testing tool on the VM but is there any way to control VMware Workstation? I am thinking of things like maximizing it (which I have tried via VBScript without success), showing it in full screen mode etc.</description>
      <pubDate>Thu, 29 Oct 2009 12:24:54 GMT</pubDate>
      <author>Nasu</author>
      <guid>http://communities.vmware.com/thread/239448</guid>
      <dc:date>2009-10-29T12:24:54Z</dc:date>
      <clearspace:dateToText>2 days, 11 hours ago</clearspace:dateToText>
      <clearspace:messageCount>4</clearspace:messageCount>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>rest api</title>
      <link>http://communities.vmware.com/thread/243052</link>
      <description>&lt;br /&gt;
Hi,&lt;br /&gt;
&lt;p /&gt;
I was looking for some example of how to use VMware rest api for fetching of all virtual machines, or all hosts, or virtual machines of specific host, and I did not find any.&lt;br /&gt;
&lt;p /&gt;
The example in class: com.vmware.vim.rest.sample.RestAppDemo does not show much more then hello world, or alt least it looks to me this way.&lt;br /&gt;
&lt;p /&gt;
Also I was unable to find a list of available URL's which can be used. I know that rest client is using managed object browser as rest service provider, but just by browsing it I was unable to find the URL I need.&lt;br /&gt;
&lt;p /&gt;
E.g. this URL would  fetch some info about the ESX server: &lt;br /&gt;
&lt;p /&gt;
 &lt;a class="jive-link-external" href="https://"&gt;https://&lt;/a&gt;&amp;lt;server&amp;gt;/mob/?moid=ServiceInstance&amp;#38;doPath=content.about&lt;br /&gt;
&lt;p /&gt;
 but where can I find any API for rest calls like this (I found this one in class RestAppDemo) or example that is not trivial. Maybe an example to turn on virtual machine?&lt;br /&gt;
&lt;p /&gt;
Can anyone give me some hint, I've been Google-ing for a few days and did not find anything that could help.&lt;br /&gt;
&lt;p /&gt;
Thanks in advance</description>
      <pubDate>Wed, 18 Nov 2009 10:55:59 GMT</pubDate>
      <author>mdinic</author>
      <guid>http://communities.vmware.com/thread/243052</guid>
      <dc:date>2009-11-18T10:55:59Z</dc:date>
      <clearspace:dateToText>3 days, 14 hours ago</clearspace:dateToText>
      <clearspace:messageCount>1</clearspace:messageCount>
    </item>
    <item>
      <title>Fetching network info via VIX Perl API</title>
      <link>http://communities.vmware.com/thread/242954</link>
      <description>What is the best method to pull the network information from a selected VM on a selected ESX Server?</description>
      <category domain="http://communities.vmware.com/tags?communityID=2417">api</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">perl</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">esx</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">vix</category>
      <pubDate>Tue, 17 Nov 2009 21:31:59 GMT</pubDate>
      <author>vplschris</author>
      <guid>http://communities.vmware.com/thread/242954</guid>
      <dc:date>2009-11-17T21:31:59Z</dc:date>
      <clearspace:dateToText>4 days, 1 hour ago</clearspace:dateToText>
      <clearspace:messageCount>4</clearspace:messageCount>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>How to monitor VM is normally running or facing a problem.</title>
      <link>http://communities.vmware.com/thread/242586</link>
      <description>&lt;br /&gt;
First of all, I wrote my question as document by mistake, so I submit again here. &lt;br /&gt;
&lt;p /&gt;
I have a question how a remote program can monitor VM is normally running or not on VMware.&lt;br /&gt;
&lt;p /&gt;
My environment is VMware ESX 4.0 and VIX API 1.7.&lt;br /&gt;
My C++ program can successfully access VMware from remote workstation, monitor power state of VM, power on or shutdown VM. And I want to monitor VM health state in order to confirm VM is normally running, that is power state of VM is running and also VM is not in hang condition.&lt;br /&gt;
&lt;p /&gt;
In case of Hyper-V of Microsoft, VM object, Msvm_ComputerSystem, has HealthState and OperationStatus properties. So it is possible to monitor VM is normally running by periodically monitoring those properties, I think.&lt;br /&gt;
&lt;p /&gt;
In case of VMware, VM object has not such a property. So if anyone has an idea to know health state of VM, please let me know.&lt;br /&gt;
&lt;p /&gt;
I have an idea to confirm VM health by periodically writing and reading variable to VM as follows, but I don't know this is effective or not.&lt;br /&gt;
############################################################################&lt;br /&gt;
BOOL writeReadPropertiesToVM(VixHandle vmHandle, BOOL* vmOK)&lt;br /&gt;
{&lt;br /&gt;
BOOL status = FALSE;&lt;br /&gt;
VixError err = VIX_OK;&lt;br /&gt;
VixHandle jobHandle = VIX_INVALID_HANDLE;&lt;br /&gt;
char *readValue = NULL;&lt;br /&gt;
&lt;p /&gt;
jobHandle = VixVM_WriteVariable(vmHandle,&lt;br /&gt;
VIX_VM_GUEST_VARIABLE,&lt;br /&gt;
"myTestVariable",&lt;br /&gt;
"newValue",&lt;br /&gt;
0, // options&lt;br /&gt;
NULL, // callbackProc&lt;br /&gt;
NULL); // clientData);&lt;br /&gt;
&lt;p /&gt;
err = VixJob_Wait(jobHandle, VIX_PROPERTY_NONE);&lt;br /&gt;
if (VIX_OK != err)&lt;br /&gt;
{&lt;br /&gt;
// Handle the error...&lt;br /&gt;
const char* errorString = Vix_GetErrorText(err, NULL);&lt;br /&gt;
printf("VixVM_WriteVariable, status = 0x0%x(%s).\n", err, errorString);&lt;br /&gt;
goto abort;&lt;br /&gt;
}&lt;br /&gt;
printf("VixVM_WriteVariable succeeded.n");&lt;br /&gt;
&lt;br /&gt;
jobHandle = VixVM_ReadVariable(vmHandle,&lt;br /&gt;
VIX_VM_GUEST_VARIABLE,&lt;br /&gt;
"myTestVariable",&lt;br /&gt;
0, // options&lt;br /&gt;
NULL, // callbackProc&lt;br /&gt;
NULL); // clientData);&lt;br /&gt;
err = VixJob_Wait(jobHandle, &lt;br /&gt;
VIX_PROPERTY_JOB_RESULT_VM_VARIABLE_STRING,&lt;br /&gt;
&amp;#38;readValue,&lt;br /&gt;
VIX_PROPERTY_NONE);&lt;br /&gt;
if (VIX_OK != err)&lt;br /&gt;
{&lt;br /&gt;
// Handle the error...&lt;br /&gt;
const char* errorString = Vix_GetErrorText(err, NULL);&lt;br /&gt;
printf("VixVM_ReadVariable, status = 0x0%x(%s).\n", err, errorString);&lt;br /&gt;
goto abort;&lt;br /&gt;
}&lt;br /&gt;
printf("VixVM_ReadVariable succeeded.\n");&lt;br /&gt;
*vmOK = TRUE;&lt;br /&gt;
&lt;p /&gt;
status = TRUE;&lt;br /&gt;
&lt;p /&gt;
abort:&lt;br /&gt;
Vix_FreeBuffer(readValue);&lt;br /&gt;
Vix_ReleaseHandle(jobHandle);&lt;br /&gt;
return status;&lt;br /&gt;
&lt;p /&gt;
}&lt;br /&gt;
&lt;p /&gt;
Thanks and regards,&lt;br /&gt;
&lt;p /&gt;
Shigemi</description>
      <category domain="http://communities.vmware.com/tags?communityID=2417">vmware</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">vix_api</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">guest</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">hangs</category>
      <pubDate>Mon, 16 Nov 2009 01:30:05 GMT</pubDate>
      <author>Shigemi</author>
      <guid>http://communities.vmware.com/thread/242586</guid>
      <dc:date>2009-11-16T01:30:05Z</dc:date>
      <clearspace:dateToText>4 days, 1 hour ago</clearspace:dateToText>
      <clearspace:messageCount>3</clearspace:messageCount>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>/usr/bin/vmware-config-tools.pl --default --compile any hidden options?</title>
      <link>http://communities.vmware.com/thread/176641</link>
      <description>Hi,&lt;br /&gt;
I dug up a very old post to silent install the vmware-tools on linux. There are a bunch of posts on how to silent install them in windows, but I need linux.&lt;br /&gt;
So I found this someone posted&lt;br /&gt;
/usr/bin/vmware-config-tools.pl --default --compile &lt;br /&gt;
It seems to work, but it's setting the display size to HUGE, and I'm wondering if anyone can point me to a way to control the display size while still keeping it a non-interactive setup.&lt;br /&gt;
&lt;br /&gt;
Best Regards</description>
      <pubDate>Tue, 28 Oct 2008 15:28:02 GMT</pubDate>
      <author>reapur</author>
      <guid>http://communities.vmware.com/thread/176641</guid>
      <dc:date>2008-10-28T15:28:02Z</dc:date>
      <clearspace:dateToText>5 days, 9 hours ago</clearspace:dateToText>
      <clearspace:messageCount>3</clearspace:messageCount>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Api to create a Share in the Guest machine from host</title>
      <link>http://communities.vmware.com/thread/236140</link>
      <description>&lt;br /&gt;
please provide the API to create a shared folder in the Guest Machine form the host. And if possible with the sample code.&lt;br /&gt;
&lt;p /&gt;
Thanks,&lt;br /&gt;
&lt;p /&gt;
Sumit</description>
      <pubDate>Sat, 10 Oct 2009 19:02:36 GMT</pubDate>
      <author>SumitBisht</author>
      <guid>http://communities.vmware.com/thread/236140</guid>
      <dc:date>2009-10-10T19:02:36Z</dc:date>
      <clearspace:dateToText>6 days, 19 hours ago</clearspace:dateToText>
      <clearspace:messageCount>4</clearspace:messageCount>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>What do i need to use the VIX?</title>
      <link>http://communities.vmware.com/thread/241488</link>
      <description>Hello!&lt;br /&gt;
&lt;br /&gt;
My questions:&lt;br /&gt;
1. Supported guest OS?&lt;br /&gt;
2. What do i need to install in guest OS?&lt;br /&gt;
&lt;br /&gt;
I tried to use VIX on Solaris 10 (i use Vmware Workstation 7.0 on Windows). In guest OS installed vmware tools (version from WS6.5).&lt;br /&gt;
&lt;br /&gt;
vmrun -T ws -gu root -gw ******** "full_path_to_vmx_file" "cmd_in_guest_os"&lt;br /&gt;
Error: This operation is not supported on this guest&lt;br /&gt;
&lt;br /&gt;
why?</description>
      <pubDate>Mon, 09 Nov 2009 13:36:46 GMT</pubDate>
      <author>eXeC001er</author>
      <guid>http://communities.vmware.com/thread/241488</guid>
      <dc:date>2009-11-09T13:36:46Z</dc:date>
      <clearspace:dateToText>1 week, 3 days ago</clearspace:dateToText>
      <clearspace:messageCount>5</clearspace:messageCount>
      <clearspace:replyCount>4</clearspace:replyCount>
    </item>
    <item>
      <title>"Invalid user name or password for the guest OS" error in vmrun runProgramInGuest Operation</title>
      <link>http://communities.vmware.com/thread/241295</link>
      <description>&lt;br /&gt;
Hi all,&lt;br /&gt;
&lt;p /&gt;
i have this script&lt;br /&gt;
&lt;p /&gt;
&lt;i&gt;"%ProgramFiles(x86)%\vmware\VMware VIX\vmrun.exe" -T ws revertToSnapshot "C:\_virtual-machines\vmware virtual machines\windows xp hry\windows xp hry.vmx" "testovani instalace 3"&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;"%ProgramFiles(x86)%\vmware\VMware VIX\vmrun.exe" -T ws start "C:\_virtual-machines\vmware virtual machines\windows xp hry\windows xp hry.vmx"&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;"%ProgramFiles(x86)%\vmware\VMware VIX\vmrun.exe" -T ws -gu user -gp aaaa copyFileFromHostToGuest "C:\_virtual-machines\vmware virtual machines\windows xp hry\windows xp hry.vmx" E:\lgo\software\tes4-oblivion-isles\_actual\Output\lgooblivionshiveringislesczech100.exe c:\temp\lgooblivionshiveringislesczech100.exe&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;"%ProgramFiles(x86)%\vmware\VMware VIX\vmrun.exe" -T ws -gu user -gp aaaa runProgramInGuest "C:\_virtual-machines\vmware virtual machines\windows xp hry\windows xp hry.vmx" -activeWindow -interactive c:\temp\lgooblivionshiveringislesczech100.exe /silent&lt;/i&gt;&lt;br /&gt;
&lt;p /&gt;
all operations is ok but last operation is write this error message: Invalid user name or password for the guest OS&lt;br /&gt;
&lt;p /&gt;
i am not understand this. if you see for console output:&lt;br /&gt;
&lt;p /&gt;
&lt;i&gt;E:\lgo\software\tes4-oblivion-isles\_actual&amp;gt;"C:\Program Files (x86)\vmware\VMware VIX\vmrun.exe" -T ws&lt;/i&gt;&lt;br /&gt;
+ -gu user -gp aaaa copyFileFromHostToGuest "C:\_virtual-machines\vmware virtual machines\windows+&lt;br /&gt;
+ xp hry\windows xp hry.vmx" E:\lgo\software\tes4-oblivion-isles\_actual\Output\lgooblivionshiveringisl+&lt;br /&gt;
&lt;i&gt;esczech100.exe c:\temp\lgooblivionshiveringislesczech100.exe&lt;/i&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;i&gt;E:\lgo\software\tes4-oblivion-isles\_actual&amp;gt;"C:\Program Files (x86)\vmware\VMware VIX\vmrun.exe" -T ws&lt;/i&gt;&lt;br /&gt;
+ -gu user -gp aaaa runProgramInGuest "C:\_virtual-machines\vmware virtual machines\windows xp hr+&lt;br /&gt;
&lt;i&gt;y\windows xp hry.vmx" -activeWindow -interactive c:\temp\lgooblivionshiveringislesczech100.exe /silent&lt;/i&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;i&gt;Error: Invalid user name or password for the guest OS&lt;/i&gt;&lt;br /&gt;
&lt;p /&gt;
first guest operation is run ok and second with same username and password not run for username and password problems &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/sad.gif" alt=":(" /&gt;&lt;br /&gt;
&lt;p /&gt;
host: windows vista ultimate english x64 sp2&lt;br /&gt;
guest: windows xp professional sp3&lt;br /&gt;
vmproduct: vmware workstation 7 rtm&lt;br /&gt;
&lt;p /&gt;
Any idea for this problem? &lt;br /&gt;
thanks for any help&lt;br /&gt;
&lt;p /&gt;
michal zobec</description>
      <category domain="http://communities.vmware.com/tags?communityID=2417">vmrunprograminguest</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">error</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">windows</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">workstation_7</category>
      <pubDate>Sun, 08 Nov 2009 02:32:11 GMT</pubDate>
      <author>michal zobec</author>
      <guid>http://communities.vmware.com/thread/241295</guid>
      <dc:date>2009-11-08T02:32:11Z</dc:date>
      <clearspace:dateToText>1 week, 4 days ago</clearspace:dateToText>
      <clearspace:messageCount>4</clearspace:messageCount>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>Uninstalling legacy installation... This version of "VMware VIX API" is incompatible with this operating system. Please install the "x86_64" version of this program instead.</title>
      <link>http://communities.vmware.com/thread/241353</link>
      <description>&lt;br /&gt;
get this error when trying to install workstation 7 after removing workstation RC1.&lt;br /&gt;
&lt;p /&gt;
Uninstalling legacy installation...&lt;br /&gt;
This version of "VMware VIX API" is incompatible with this operating system.&lt;br /&gt;
Please install the "x86_64" version of this program instead.&lt;br /&gt;
&lt;p /&gt;
kernel 2.6.27.29-0.1 &lt;br /&gt;
&lt;p /&gt;
 I am using a x64 Opensuse 11.1 install.&lt;br /&gt;
&lt;p /&gt;
i have tried to install both32 bit and 64 &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <category domain="http://communities.vmware.com/tags?communityID=2417">vix</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">workstation_7</category>
      <pubDate>Mon, 09 Nov 2009 02:20:51 GMT</pubDate>
      <author>sbuhk</author>
      <guid>http://communities.vmware.com/thread/241353</guid>
      <dc:date>2009-11-09T02:20:51Z</dc:date>
      <clearspace:dateToText>1 week, 5 days ago</clearspace:dateToText>
      <clearspace:messageCount>1</clearspace:messageCount>
    </item>
    <item>
      <title>"One of the parameters was invalid" while performing guest operations</title>
      <link>http://communities.vmware.com/thread/164229</link>
      <description>&lt;br /&gt;
I have an application that copies files to a VM Image, runs and applications, and then copies the result files back.&lt;br /&gt;
&lt;p /&gt;
The application loops through several configurations, at the begining of the loop it connects to a Server and opens a connection to an image.&lt;br /&gt;
&lt;p /&gt;
At the end of the loop it closes the connection to the Server.&lt;br /&gt;
&lt;p /&gt;
The application gets through 3 iterations just fine, but during the 4th interations it get "One of the parameters was invalid" whild performing guest operations.&lt;br /&gt;
&lt;p /&gt;
At  first I thought it was not getting a connection to the Image because it was happening before the first copy, but I do not get the message telling me that the application was not logged in.&lt;br /&gt;
&lt;p /&gt;
I tried increasing the wait time for VMTools incase it wasn't waiting long enough and now it will begin coping files but fails after copying a few files.  &lt;br /&gt;
&lt;p /&gt;
I would just put in a check to see if the result file was copied back, but the application crashes when it attempts to revert the image.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <pubDate>Wed, 20 Aug 2008 18:03:44 GMT</pubDate>
      <author>articblast</author>
      <guid>http://communities.vmware.com/thread/164229</guid>
      <dc:date>2008-08-20T18:03:44Z</dc:date>
      <clearspace:dateToText>2 weeks, 1 day ago</clearspace:dateToText>
      <clearspace:messageCount>8</clearspace:messageCount>
      <clearspace:replyCount>7</clearspace:replyCount>
    </item>
    <item>
      <title>Where to download VIX API 1.8?</title>
      <link>http://communities.vmware.com/thread/239201</link>
      <description>&lt;br /&gt;
Hi all,&lt;br /&gt;
&lt;p /&gt;
Some days ago Vmware has announced VIX API 1.8. I have installed Vmware Player 3.0. Inside this installation I could not find the VIX 1.8 which can be used to control VMware Player 3.0. Any idea where to download this new version? Or can this API only be installed with Vmware Workstation 7.0?&lt;br /&gt;
&lt;p /&gt;
Thanks for a hint.&lt;br /&gt;
&lt;p /&gt;
F. &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <pubDate>Wed, 28 Oct 2009 13:44:51 GMT</pubDate>
      <author>reisenhoferf</author>
      <guid>http://communities.vmware.com/thread/239201</guid>
      <dc:date>2009-10-28T13:44:51Z</dc:date>
      <clearspace:dateToText>2 weeks, 1 day ago</clearspace:dateToText>
      <clearspace:messageCount>6</clearspace:messageCount>
      <clearspace:replyCount>5</clearspace:replyCount>
    </item>
    <item>
      <title>How do you VixPropertyList_AllocPropertyList in VixCOM (or how to open an encrypted VM)?</title>
      <link>http://communities.vmware.com/thread/241041</link>
      <description>&lt;br /&gt;
I've added support to VixCOM 1.8 to VMWareTasks (Player, etc.), but I can't figure out how to allocate a new property list from C# via VIXCOM to support encrypted virtual machines. I want this code basically in C#. Ideas?&lt;br /&gt;
&lt;p /&gt;
err = VixPropertyList_AllocPropertyList(hostHandle,&lt;br /&gt;
                                        &amp;#38;propertyHandle,&lt;br /&gt;
                                        VIX_PROPERTY_VM_ENCRYPTION_PASSWORD,&lt;br /&gt;
                                        "vmPassword",&lt;br /&gt;
                                        VIX_PROPERTY_NONE);&lt;br /&gt;
if (err != VIX_OK) {&lt;br /&gt;
   // Handle the error...&lt;br /&gt;
   goto abort;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Open the virtual machine:&lt;br /&gt;
jobHandle = VixHost_OpenVM(hostHandle,&lt;br /&gt;
                           "c:&lt;br clear="all" /&gt;Virtual Machines\\vm1&lt;br clear="all" /&gt;win2000.vmx",&lt;br /&gt;
                           VIX_VMOPEN_NORMAL,&lt;br /&gt;
                           propertyHandle,&lt;br /&gt;
                           NULL, // callbackProc&lt;br /&gt;
                           NULL); // clientData</description>
      <pubDate>Fri, 06 Nov 2009 00:00:02 GMT</pubDate>
      <author>dblock</author>
      <guid>http://communities.vmware.com/thread/241041</guid>
      <dc:date>2009-11-06T00:00:02Z</dc:date>
      <clearspace:dateToText>2 weeks, 2 days ago</clearspace:dateToText>
      <clearspace:messageCount>1</clearspace:messageCount>
    </item>
    <item>
      <title>Does vmrun in 1.7 support reverting to snapshots on ESX?</title>
      <link>http://communities.vmware.com/thread/234579</link>
      <description>&lt;br /&gt;
This was a dealbreaker for me in 1.62, and it's still not working for me in 1.7... am I doing something wrong? Here's what I'm doing:&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
1.  C:\Program Files\VMware\VMware VIX&amp;gt;vmrun -T esx -h "https://myserver" -u "root" -p "xxxx" listSnapshots "&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=storage1"&gt;storage1&lt;/a&gt; AUTOINSTALLER-W2K8_32_1/AUTOINSTALLER-W2K8_32.vmx"&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Total snapshots: 5&lt;br /&gt;
base - no SQL Server install&lt;br /&gt;
SQL Server 2005 SP2 with correct machine name&lt;br /&gt;
Ready to Debug - VS 2008 with SVN&lt;br /&gt;
SQL 2008 installed with correct machine name&lt;br /&gt;
Base with VMWare tools, correct machine name&lt;br /&gt;
&lt;p /&gt;
 2. C:\Program Files\VMware\VMware VIX&amp;gt;vmrun -T esx -h "https://myserver" -u "root" -p "xxxx" revertToSnapshot "&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=storage1"&gt;storage1&lt;/a&gt; AUTOINSTALLER-W2K8_32_1/AUTOINSTALLER-W2K8_32.vmx" "Base with VMWare tools, correct machine name"&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Error: One of the parameters was invalid&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
As you can see, I'm connecting to the server just fine and receiving a list of snapshots, but I'm unable to revert.</description>
      <pubDate>Thu, 01 Oct 2009 16:03:06 GMT</pubDate>
      <author>mcheshier</author>
      <guid>http://communities.vmware.com/thread/234579</guid>
      <dc:date>2009-10-01T16:03:06Z</dc:date>
      <clearspace:dateToText>2 weeks, 2 days ago</clearspace:dateToText>
      <clearspace:messageCount>5</clearspace:messageCount>
      <clearspace:replyCount>4</clearspace:replyCount>
    </item>
    <item>
      <title>runprograminguest Syntax</title>
      <link>http://communities.vmware.com/thread/240124</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
how can I decompress a tar file on guest Linux suse guest with runprogramfile?&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
tar take the argument "xvf" before name file.tar.  How can i pass the "xvf" argument in the command runprograminguest?&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
I wrote:&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
vmrun -T esx -h "https://xxx.xxx.com/sdk" -u "mxxxxxi" -p "mxxx" -gu "xxx" -gp "xxxxx" runProgramInGuest "&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=xxxxxx"&gt;xxxxxx&lt;/a&gt; ncxxxx/xxxx.vmx" "bin/tar" "xvf" "/bin/file.tar" -display &lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
but, nothing happened!  Please help me!</description>
      <pubDate>Mon, 02 Nov 2009 09:41:42 GMT</pubDate>
      <author>mic21</author>
      <guid>http://communities.vmware.com/thread/240124</guid>
      <dc:date>2009-11-02T09:41:42Z</dc:date>
      <clearspace:dateToText>2 weeks, 4 days ago</clearspace:dateToText>
      <clearspace:messageCount>2</clearspace:messageCount>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>ViToolkit Script to connect to multiple VCs</title>
      <link>http://communities.vmware.com/thread/238558</link>
      <description>&lt;br /&gt;
Folks,&lt;br /&gt;
&lt;p /&gt;
Lets assume that VC1, VC2, VC3 &amp;#38; VC4 are in same domain and same region but based on datacentre. When I use 'connect-VI server' command from VI toolkit, it asks for credentials but its a painful task to provide for all VCs (VC1 to 4) though its a same user/pass. I wanted to provide credentials one time which should be used to connect to all VCs (VC1 to 4)!&lt;br /&gt;
&lt;p /&gt;
How do i do that ? any suggestions? &lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <pubDate>Mon, 26 Oct 2009 04:42:23 GMT</pubDate>
      <author>sangepu</author>
      <guid>http://communities.vmware.com/thread/238558</guid>
      <dc:date>2009-10-26T04:42:23Z</dc:date>
      <clearspace:dateToText>2 weeks, 4 days ago</clearspace:dateToText>
      <clearspace:messageCount>2</clearspace:messageCount>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Problem with runprograminguest tar</title>
      <link>http://communities.vmware.com/thread/239773</link>
      <description>&lt;br /&gt;
Hello everyone, &lt;br /&gt;
&lt;br /&gt;
 I can't decompress a tar file in SUSE Linux guest. The command is as follows: &lt;br /&gt;
&lt;p /&gt;
&lt;span style="color:#ff6600"&gt;vmrun -T esx -h "https://xxx/sdk" -u "hostUser" -p "hostPsw" -gu "guestUser" -gp "guestPsw" runProgramInGuest "file.vmx" bin/tar "xvf name_file.tar" -display&lt;/span&gt;  &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
After running I don't get an error message and the tar file is not decompressed. How do I do? What is the correct syntax?</description>
      <pubDate>Fri, 30 Oct 2009 15:35:31 GMT</pubDate>
      <author>mic21</author>
      <guid>http://communities.vmware.com/thread/239773</guid>
      <dc:date>2009-10-30T15:35:31Z</dc:date>
      <clearspace:dateToText>2 weeks, 5 days ago</clearspace:dateToText>
      <clearspace:messageCount>4</clearspace:messageCount>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>VixCom.Connect failed to connect to virtualCenter with error 3014 using C#</title>
      <link>http://communities.vmware.com/thread/240216</link>
      <description>&lt;br /&gt;
Hi, I am new to VIX and I am trying to connect to my virtualCenter environment which contains a few ESX servers. I am using C# to try to connect. following is my code segment:&lt;br /&gt;
&lt;p /&gt;
VixLibClass vix = new VixLibClass();&lt;br /&gt;
&lt;p /&gt;
IJob job = vix.Connect(VixCOM.Constants.VIX_API_VERSION, VixCOM.Constants.VIX_SERVICEPROVIDER_VMWARE_VI_SERVER, &lt;a class="jive-link-external" href="https://IP-Address/sdk"&gt;https://IP-Address/sdk&lt;/a&gt;, 0 , username, password, 0 , null, null)&lt;br /&gt;
&lt;p /&gt;
Above connect always returned with error 3014..However, I am able to use the VI client to connect with the same exact credential.&lt;br /&gt;
&lt;p /&gt;
 Can anyone help me out ?&lt;br /&gt;
&lt;p /&gt;
 Thanks.</description>
      <pubDate>Mon, 02 Nov 2009 16:47:56 GMT</pubDate>
      <author>tkcoder</author>
      <guid>http://communities.vmware.com/thread/240216</guid>
      <dc:date>2009-11-02T16:47:56Z</dc:date>
      <clearspace:dateToText>2 weeks, 5 days ago</clearspace:dateToText>
      <clearspace:messageCount>3</clearspace:messageCount>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Problem with revertToSnapshot</title>
      <link>http://communities.vmware.com/thread/238897</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
&lt;h6&gt;When I run the command:  &lt;/h6&gt;
&lt;blockquote&gt;&lt;span style="color:#ff6600"&gt;vmrun -T server -h "http_address" -u userHost -p passwordHost  revertToSnapshot  "file.vmx" snapshot_name&lt;/span&gt;&lt;/blockquote&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;h6&gt;I get the following error:&lt;/h6&gt;
&lt;br /&gt;
&lt;span style="color:#ff6600"&gt;One of the parameters was not valid.&lt;/span&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
What can I do? Please Help me!&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
 Thank, mic</description>
      <pubDate>Tue, 27 Oct 2009 13:59:56 GMT</pubDate>
      <author>mic21</author>
      <guid>http://communities.vmware.com/thread/238897</guid>
      <dc:date>2009-10-27T13:59:56Z</dc:date>
      <clearspace:dateToText>3 weeks, 1 day ago</clearspace:dateToText>
      <clearspace:messageCount>4</clearspace:messageCount>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>Listen for events</title>
      <link>http://communities.vmware.com/thread/239189</link>
      <description>&lt;br /&gt;
Hi all,&lt;br /&gt;
&lt;p /&gt;
Am I able, by using the VIX API or any other way, to subscibe to events that happen on a vCenter/vSphere?&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
I want to be told of things like (but not necessarily limited to) a machine powering down,. The only workaround I can think of is polling which is very ineffecient and will drain all sorts of recources I wouldn't rather not drain!&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Cheers&lt;br /&gt;
&lt;p /&gt;
Pete</description>
      <category domain="http://communities.vmware.com/tags?communityID=2417">events</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">api</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">vsphere</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">vcenter</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">reporting</category>
      <pubDate>Wed, 28 Oct 2009 13:11:02 GMT</pubDate>
      <author>PeteWn</author>
      <guid>http://communities.vmware.com/thread/239189</guid>
      <dc:date>2009-10-28T13:11:02Z</dc:date>
      <clearspace:dateToText>3 weeks, 3 days ago</clearspace:dateToText>
      <clearspace:messageCount>3</clearspace:messageCount>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Error code 3 return from VixHost_Connect()</title>
      <link>http://communities.vmware.com/thread/239233</link>
      <description>&lt;br /&gt;
hi guys, &lt;br /&gt;
 I'm using VIX 1.6.2 and VIServer-2.0.0. I wrote a C program to connect to VI SERVER and I can not continue because I get an error&lt;br /&gt;
after the VixHost_Connect () function. The Code is:&lt;br /&gt;
&lt;p /&gt;
&lt;hr /&gt;
code----------------------------------------------------- &lt;br /&gt;
&lt;p /&gt;
#include "vix.h"&lt;br /&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#define VMPOWEROPTIONS VIX_VMPOWEROP_NORMAL&lt;br /&gt;
&lt;br /&gt;
int connect();&lt;br /&gt;
&lt;br /&gt;
VixHandle hostHandle = VIX_INVALID_HANDLE;&lt;br /&gt;
VixHandle jobHandle = VIX_INVALID_HANDLE;&lt;br /&gt;
VixHandle vmHandle = VIX_INVALID_HANDLE;&lt;br /&gt;
VixError err;&lt;br /&gt;
&lt;br /&gt;
char *vmxPath;char vmx100;char hostname100;&lt;br /&gt;
int check;&lt;br /&gt;
&lt;br /&gt;
int main(int argc, char * argv[])&lt;br /&gt;
{&lt;br /&gt;
&lt;p /&gt;
&lt;blockquote&gt;check=connect(); if(check) { printf(" COnnect Failed! Error code :%d\n",check);goto abort;} else printf(" Connected to %s\n","https://xxxx.xxx.com/sdk");&lt;/blockquote&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int connect()&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;bq. jobHandle = VixHost_Connect(VIX_API_VERSION, &lt;br clear="all" /&gt; VIX_SERVICEPROVIDER_VMWARE_SERVER, &lt;br clear="all" /&gt; "https://xxxx.xxx.com/sdk", // hostName &lt;br clear="all" /&gt; 0, // hostPort &lt;br clear="all" /&gt; "username", // userName &lt;br clear="all" /&gt; "pswxxx", // password, &lt;br clear="all" /&gt; 0, // options &lt;br clear="all" /&gt; VIX_INVALID_HANDLE, // propertyListHandle &lt;br clear="all" /&gt; NULL, // callbackProc &lt;br clear="all" /&gt; NULL); // clientData &lt;br clear="all" /&gt; err = VixJob_Wait(jobHandle, &lt;br clear="all" /&gt; VIX_PROPERTY_JOB_RESULT_HANDLE, &lt;br clear="all" /&gt; &amp;#38;hostHandle, &lt;br clear="all" /&gt; VIX_PROPERTY_NONE); &lt;br clear="all" /&gt; if (VIX_OK != err) { &lt;br clear="all" /&gt; return err;&lt;/blockquote&gt;
&lt;p /&gt;
                  }&lt;br /&gt;
return 0;&lt;br /&gt;
}&lt;hr /&gt;
end code&lt;hr /&gt;
&lt;p /&gt;
&lt;br /&gt;
I tried using VIX1.7 but I got the same error (number 3).   Please, Can you help? &lt;br /&gt;
&lt;p /&gt;
Mic</description>
      <pubDate>Wed, 28 Oct 2009 16:06:59 GMT</pubDate>
      <author>mic21</author>
      <guid>http://communities.vmware.com/thread/239233</guid>
      <dc:date>2009-10-28T16:06:59Z</dc:date>
      <clearspace:dateToText>3 weeks, 3 days ago</clearspace:dateToText>
      <clearspace:messageCount>2</clearspace:messageCount>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Problem in Cloning VM using C/C++</title>
      <link>http://communities.vmware.com/thread/238920</link>
      <description>Hi I am trying to clone a Virtual Machine usind C/C++ as a programming language and VIX API call which is &lt;br /&gt;
&lt;br /&gt;
VixHandle VixVM_Clone(VixHandle vmHandle,&lt;br /&gt;
VixHandle snapshotHandle,&lt;br /&gt;
VixCloneType cloneType,&lt;br /&gt;
const char *destConfigPathName,&lt;br /&gt;
int options,&lt;br /&gt;
VixHandle propertyListHandle,&lt;br /&gt;
VixEventProc *callbackProc,&lt;br /&gt;
void *clientData);&lt;br /&gt;
&lt;br /&gt;
But I am getting the error code 6 which is VIX_E_NOT_SUPPORTED and the VIX_PROPERTY_JOB_RESULT_HANDLE is showing 3010 which is VIX_E_NO_GUEST_OS_INSTALLED .&lt;br /&gt;
&lt;br /&gt;
I first connected to the VM, then open the VM and then tried to Clone. When trying to clone I am getting the error which is Operation Not Supported.The VM I am trying to Clone is not running i.e., it is powerd off state.&lt;br /&gt;
&lt;br /&gt;
I also tried to Clone using the vmrun but same results.&lt;br /&gt;
&lt;br /&gt;
Can you please help me. Thanks a lot!</description>
      <pubDate>Tue, 27 Oct 2009 15:56:03 GMT</pubDate>
      <author>sid101020203030</author>
      <guid>http://communities.vmware.com/thread/238920</guid>
      <dc:date>2009-10-27T15:56:03Z</dc:date>
      <clearspace:dateToText>3 weeks, 4 days ago</clearspace:dateToText>
      <clearspace:messageCount>4</clearspace:messageCount>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>I am  facing a problem in using  VIX api   clone function with c#</title>
      <link>http://communities.vmware.com/thread/216750</link>
      <description>&lt;br /&gt;
Hello ,&lt;br /&gt;
&lt;p /&gt;
 I am  facing a problem in using  VIX api   clone function with c# following is the sample code and the  exception  i am facing o can ssome help me by telling me whatz wrong with the code&lt;br /&gt;
&lt;p /&gt;
&lt;hr /&gt;
&lt;p /&gt;
using System;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.Linq;&lt;br /&gt;
using System.Text;&lt;br /&gt;
using VIX;&lt;br /&gt;
using Vestris.VMWareLib;&lt;br /&gt;
&lt;p /&gt;
namespace ConsoleApplication10&lt;br /&gt;
{&lt;br /&gt;
    class Program&lt;br /&gt;
    {&lt;br /&gt;
        static void Main(string[] args)&lt;br /&gt;
        {&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
            VIX.Host kl = VIX.VixCOMWrapper.Instance.Connect(VIX.Enums.VIX_SERVICEPROVIDER.VMWARE_WORKSTATION, "", 0, "", "");&lt;br /&gt;
            VIX.VM vm = kl.OpenVM(@"E:\VMWares-xji\WIN2K3\Windows Server 2003 Standard Edition.vmx");&lt;br /&gt;
&lt;br /&gt;
                    try&lt;br /&gt;
                    {&lt;br /&gt;
                        vm.Clone(VIX.Enums.VIX_CLONETYPE.FULL, "E:\\VMWares-xji\\clonedvm&lt;br clear="all" /&gt;kljh.vmx");&lt;br /&gt;
                        Console.WriteLine("clone taken");&lt;br /&gt;
                        Console.ReadLine();&lt;br /&gt;
                    }&lt;br /&gt;
&lt;p /&gt;
                    catch (Exception e)&lt;br /&gt;
                    {&lt;br /&gt;
                        Console.WriteLine(e.ToString ());&lt;br /&gt;
                        Console.ReadLine();&lt;br /&gt;
                    }&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
                }&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
and the exception&lt;hr /&gt;
&lt;p /&gt;
System.NullReferenceException: Object reference not set to an instance of an obj&lt;br /&gt;
ect.&lt;br /&gt;
   at VIX.VM.Clone(Snapshot snapshot, VIX_CLONETYPE cloneType, String destConfig&lt;br /&gt;
PathName)&lt;br /&gt;
   at VIX.VM.Clone(VIX_CLONETYPE cloneType, String destConfigPathName)&lt;br /&gt;
   at ConsoleApplication10.Program.Main(String[] args) in C:\Users\MAI\Documents&lt;br /&gt;
\Visual Studio 2008\Projects\ConsoleApplication10\ConsoleApplication10\Program.c&lt;br /&gt;
s:line 21</description>
      <pubDate>Fri, 19 Jun 2009 12:54:17 GMT</pubDate>
      <author>papapa</author>
      <guid>http://communities.vmware.com/thread/216750</guid>
      <dc:date>2009-06-19T12:54:17Z</dc:date>
      <clearspace:dateToText>3 weeks, 4 days ago</clearspace:dateToText>
      <clearspace:messageCount>4</clearspace:messageCount>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>Problem with revertToSnapshot</title>
      <link>http://communities.vmware.com/thread/238898</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
&lt;h6&gt;When I run the command:  &lt;/h6&gt;
&lt;blockquote&gt;&lt;span style="color:#ff6600"&gt;vmrun -T server -h "http_address" -u userHost -p passwordHost  revertToSnapshot  "file.vmx" snapshot_name&lt;/span&gt;&lt;/blockquote&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;h6&gt;I get the following error:&lt;/h6&gt;
&lt;br /&gt;
&lt;span style="color:#ff6600"&gt;One of the parameters was not valid.&lt;/span&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
What can I do? Please Help me!&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
 Thank, mic</description>
      <pubDate>Tue, 27 Oct 2009 14:00:02 GMT</pubDate>
      <author>mic21</author>
      <guid>http://communities.vmware.com/thread/238898</guid>
      <dc:date>2009-10-27T14:00:02Z</dc:date>
      <clearspace:dateToText>3 weeks, 4 days ago</clearspace:dateToText>
      <clearspace:messageCount>1</clearspace:messageCount>
    </item>
    <item>
      <title>Error: Cannot open vm. Insufficient permission host os</title>
      <link>http://communities.vmware.com/thread/238610</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
&lt;h6&gt;When I run the command:  &lt;/h6&gt;
&lt;blockquote&gt;&lt;span style="color:#ff6600"&gt;vmrun -T server -h "http_address" -u userHost -p passwordHost -gu guestUser -gp guestPassword &lt;b&gt;fileExistsInGuest&lt;/b&gt;&lt;/span&gt; &lt;span style="color:#ff6600"&gt;"fi&lt;/span&gt;&lt;span style="color:#ff6600"&gt;le.vmx" /ho&lt;/span&gt;&lt;span style="color:#ff6600"&gt;me/ab.txt&lt;/span&gt;&lt;/blockquote&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;h6&gt;I get the following error:&lt;/h6&gt;
&lt;blockquote&gt;&lt;span style="color:#ff6600"&gt;Error: Cannot open VM: file.vmx. Insufficient permissions in host os. &lt;br clear="all" /&gt; &lt;/span&gt;&lt;/blockquote&gt;
&lt;h6&gt;So, my guestUser and my guestPsw are ok and have an OS administrator permission, but my userHost and pswHost don't have an host administrator permission. &lt;/h6&gt;
&lt;h6&gt;&lt;span style="color:#333399"&gt;Must "fileExistsInGuest" command  have the userHost and pswHost an administrator permission? &lt;/span&gt;&lt;/h6&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Thank, Michele &lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <pubDate>Mon, 26 Oct 2009 11:46:58 GMT</pubDate>
      <author>mic21</author>
      <guid>http://communities.vmware.com/thread/238610</guid>
      <dc:date>2009-10-26T11:46:58Z</dc:date>
      <clearspace:dateToText>3 weeks, 5 days ago</clearspace:dateToText>
      <clearspace:messageCount>2</clearspace:messageCount>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>VIX 1.7 vixwrapper-config</title>
      <link>http://communities.vmware.com/thread/234007</link>
      <description>Per the 1.7 config file it looks like the contents of VIServer-2.0.0 are obsolete.  VIServer-2.0.0\32bit\vix.dll is version 1.6.0.1921 (2.0.0 build-116503), which looks like it has not been updated since 1.6.2, actually went back a release.  My issue with vix1.7 is that single thread consecutive connects/disconnects to the same Server2.0 host are throwing an exception in gvmomi (see &lt;a class="jive-link-external" href="http://communities.vmware.com/thread/231625?tstart=0"&gt;http://communities.vmware.com/thread/231625?tstart=0&lt;/a&gt;). &lt;br /&gt;
&lt;br /&gt;
Will I be able to multi-thread VIX if I change my vixwrapper-config from:&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;viserver 4  none 2.0.0   VSphere-4.0
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
to&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;viserver 4  none 2.0.0   VIServer-2.0.0
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
or is VSphere-4.0 now used for Server 2.0.x instead?&lt;br /&gt;
&lt;br /&gt;
Pointing to VIServer-2.0.0 fixes my issue with connects/disconnects but I'm probably working with VIX1.6.0 at this point, which never allowed multiple threads.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;b&gt;Here is the 1.6.2 config :&lt;/b&gt;&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;# server 1.0.x
server   1  vmdb  1.0.3 server-1

# Workstation 6.0.0
ws       2  vmdb  6.0.0 ws-2

# Workstation 6.0.1
ws       3  vmdb  6.0.1 ws-3

# Workstation 6.0.2 -- same version of vmdb as 6.0.1
ws       3  vmdb  6.0.2 ws-3

# Workstation 6.0.3
ws       5  vmdb  6.0.3 ws-5

# XXX hack to support transient names XXX
esx      4  none 3.1.0   ws_server_esx-4
viserver 4  none 2.0.0   ws_server_esx-4
ws       4  vmdb e.x.p   ws_server_esx-4
ws       4  vmdb 6.5.0   ws_server_esx-4

# Workstation 6.5.0
ws       4  vmdb  6.5.0 Workstation-6.5.0
ws       4  vmdb  e.x.p Workstation-6.5.0

# to add once its in installer
viserver 4  none 2.0.0   VIServer-2.0.0
esx 	 4  none 3.5.0   VIServer-2.0.0

# EOF
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Here is the 1.7 config:&lt;/b&gt;&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;# server 1.0.x
#
# for server 1.0.3, use this entry
#server   1  vmdb  1.0.3 server-1

#
# for server 1.0.9, use this entry
server   8  vmdb  1.0.9 server-1.0.9

# Workstation 6.0.0
ws       2  vmdb  6.0.0 ws-2

# Workstation 6.0.1
ws       3  vmdb  6.0.1 ws-3

# Workstation 6.0.2 -- same version of vmdb as 6.0.1
ws       3  vmdb  6.0.2 ws-3

# Workstation 6.0.3, 6.0.4, 6.0.5
ws       5  vmdb  6.0.3 ws-5
ws       5  vmdb  6.0.4 ws-5
ws       5  vmdb  6.0.5 ws-5

# Workstation 6.5.0
ws       4  vmdb  6.5.0 Workstation-6.5.0

# Workstation 6.5.1
ws       6  vmdb  6.5.1 Workstation-6.5.1

# Workstation 6.5.2
ws       7  vmdb  6.5.2 Workstation-6.5.2

# Workstation 6.5.3
ws       4  vmdb  6.5.3 Workstation-6.5.0

# VMware Server 2.0.x, VMware ESX Server 3.5u2+, vSphere 4.0
viserver 4  none 2.0.0   VSphere-4.0
esx      4  none 3.5.0   VSphere-4.0
esx      4  none 4.0.0   VSphere-4.0

# EOF
&lt;/code&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 28 Sep 2009 18:50:06 GMT</pubDate>
      <author>fixitchris</author>
      <guid>http://communities.vmware.com/thread/234007</guid>
      <dc:date>2009-09-28T18:50:06Z</dc:date>
      <clearspace:dateToText>4 weeks, 1 day ago</clearspace:dateToText>
      <clearspace:messageCount>2</clearspace:messageCount>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>VIX1.7 glib-2.0 crash against Server 2</title>
      <link>http://communities.vmware.com/thread/231625</link>
      <description>Calling the below code multiple times in a row causes an exception. Can anyone verify this?  &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;Private Sub TestConnect()
	Dim _host As New VMWareVirtualHost
        _host.ConnectToVMWareVIServer(New Uri(&amp;quot;https://172.16.2.5:8333/sdk&amp;quot;, &amp;quot;user&amp;quot;, &amp;quot;pass&amp;quot;, 30)
        _host.Disconnect()
        _host = Nothing
End Sub
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Tested against vmware Server 2 // version=2.0.0, build=build-122956 using VMwareTasks 1.3 over VIX 1.7&lt;br /&gt;
I tested against 4 different Server 2.0.0 hosts with similar results.</description>
      <pubDate>Tue, 15 Sep 2009 15:32:14 GMT</pubDate>
      <author>fixitchris</author>
      <guid>http://communities.vmware.com/thread/231625</guid>
      <dc:date>2009-09-15T15:32:14Z</dc:date>
      <clearspace:dateToText>4 weeks, 1 day ago</clearspace:dateToText>
      <clearspace:messageCount>5</clearspace:messageCount>
      <clearspace:replyCount>4</clearspace:replyCount>
    </item>
    <item>
      <title>how do I programtically create a guest vm</title>
      <link>http://communities.vmware.com/thread/236803</link>
      <description>&lt;br /&gt;
I just downloaded the VIX 1.7 SDK. But I don't see there is any function to create guest vm programtically. Anyone knows how to do it?</description>
      <pubDate>Wed, 14 Oct 2009 19:11:50 GMT</pubDate>
      <author>tkcoder</author>
      <guid>http://communities.vmware.com/thread/236803</guid>
      <dc:date>2009-10-14T19:11:50Z</dc:date>
      <clearspace:dateToText>1 month, 3 days ago</clearspace:dateToText>
      <clearspace:messageCount>5</clearspace:messageCount>
      <clearspace:replyCount>4</clearspace:replyCount>
    </item>
    <item>
      <title>C# and VIX API</title>
      <link>http://communities.vmware.com/thread/86916</link>
      <description>I'm new to using vmware automation at least and I have VMWare server 1.0 installed. &lt;br /&gt;
&lt;br /&gt;
I'd like to use the VIX Api in C#, but I haven't been able to load the vix.dll as a reference. &lt;br /&gt;
&lt;br /&gt;
I've tried to find a way to do this, but it's all C code that I've found.&lt;br /&gt;
&lt;br /&gt;
Any answers would be appreciated.</description>
      <pubDate>Thu, 31 May 2007 14:08:54 GMT</pubDate>
      <author>Jacobhm</author>
      <guid>http://communities.vmware.com/thread/86916</guid>
      <dc:date>2007-05-31T14:08:54Z</dc:date>
      <clearspace:dateToText>1 month, 6 days ago</clearspace:dateToText>
      <clearspace:messageCount>15</clearspace:messageCount>
      <clearspace:replyCount>14</clearspace:replyCount>
    </item>
    <item>
      <title>VMware-VIX-1.7.0-186713.i386.bundle does not install</title>
      <link>http://communities.vmware.com/thread/235157</link>
      <description>Hi !   I'm hoping some helpful expert can help point me in the right direction. &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt;&lt;br /&gt;
&lt;br /&gt;
I am attempting to upgrade the vmrun binary in my vmware-server 1.0.9 as the vmrun version that came with vmware-server 1.0.9 is not allowing me to run "vmrun" with the "revertToSnapshot option" as a non-root user (it only allows start and stop to be run as non-root user).&lt;br /&gt;
&lt;br /&gt;
So I downloaded "VMware-VIX-1.7.0-186713.i386.bundle" from vmware's site as someone said that there might be a problem with my vmrun as it is an old version (it is the one that came default when i installed vmware-server 1.0.9) and they told me to make sure i upgraded VIX to 1.7.&lt;br /&gt;
&lt;br /&gt;
However, i am getting the following error when i try to run "sh VMware-VIX-1.7.0-186713.i386.bundle" even though i tried it while su'ed to root as well as logged in as root itself :&lt;br /&gt;
&lt;br /&gt;
"Extracting VMware Installer...done.&lt;br /&gt;
cp: cannot stat `/tmp/vmis.OKqJZk/install/vmware-installer/bootstrap': No such file or directory"&lt;br /&gt;
&lt;br /&gt;
For some reason, the installer code in this irritating "bundle" file cannot find the temporary directory it created.  &lt;br /&gt;
In fact, there was no temporary directory created at all because i do not see it when i type "ls -al /tmp".&lt;br /&gt;
&lt;br /&gt;
Can anyone help me as to why the vmware vix installer does not work and how to get it to work?&lt;br /&gt;
&lt;br /&gt;
(and i am also wondering why vmware can't do things the normal way and release the VIX code as a straightforward tarball which would make it much easier, just like how they do it with vmware-server.  &lt;br /&gt;
Providing install files that don't work out of the box can make people irritated enough to consider switching to other equally compelling &amp;#38; free solutions such as Sun's VirtualBox (&lt;a class="jive-link-external" href="http://www.virtualbox.org"&gt;http://www.virtualbox.org&lt;/a&gt;) or Citrix's Xensource. )&lt;br /&gt;
&lt;br /&gt;
Many thanks in advance!&lt;br /&gt;
&lt;br /&gt;
MK</description>
      <pubDate>Mon, 05 Oct 2009 16:59:06 GMT</pubDate>
      <author>misterkutz</author>
      <guid>http://communities.vmware.com/thread/235157</guid>
      <dc:date>2009-10-05T16:59:06Z</dc:date>
      <clearspace:dateToText>1 month, 1 week ago</clearspace:dateToText>
      <clearspace:messageCount>4</clearspace:messageCount>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>unable to copy file from host to guestVM - "Error: Invalid user name or password for the guest OS"</title>
      <link>http://communities.vmware.com/thread/235764</link>
      <description>&lt;br /&gt;
I'm trying to copy a file from an ESX host to a linuxVM running on it&lt;br /&gt;
&lt;p /&gt;
C:\Program Files\VMware\VMware VIX&amp;gt;vmrun -T esx -h &lt;a class="jive-link-external" href="https://10.55.1.16/sdk"&gt;https://10.55.1.16/sdk&lt;/a&gt; -u root -p *** -gu user -gp *** copyFileFromHostToGuest "&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=QA-NAS-01"&gt;QA-NAS-01&lt;/a&gt; VM/vm.vmx" /root/file /root/file&lt;br /&gt;
&lt;p /&gt;
the command returns  "Error: Invalid user name or password for the guest OS"&lt;br /&gt;
&lt;p /&gt;
opening the console of that machine, I'm able to login with user/*** to the linux shell (linux VM, which has no SSH access) &lt;br /&gt;
&lt;p /&gt;
Any ideas ?&lt;br /&gt;
&lt;p /&gt;
Thanks,&lt;br /&gt;
Zeevik</description>
      <pubDate>Thu, 08 Oct 2009 14:41:14 GMT</pubDate>
      <author>zeevik</author>
      <guid>http://communities.vmware.com/thread/235764</guid>
      <dc:date>2009-10-08T14:41:14Z</dc:date>
      <clearspace:dateToText>1 month, 1 week ago</clearspace:dateToText>
      <clearspace:messageCount>7</clearspace:messageCount>
      <clearspace:replyCount>6</clearspace:replyCount>
    </item>
    <item>
      <title>VIX API: Workstation 6.0 vs. ESX 1.7 -- differences?</title>
      <link>http://communities.vmware.com/thread/235452</link>
      <description>&lt;br /&gt;
I have a large body of Python code that heavily uses the VIX API to control Linux VMs  running under Workstation 6.0 on a Linux (RHEL 4.7) host. The Python interfaces directly to the VIX shared lib (.so) using its "ctypes" module. I am faced with migrating this code to run on ESX 1.7 with Linux VMs (RHEL 5.3 as the controlling instance of Linux, multiple MontaVista CGE 5 as targets). &lt;br /&gt;
&lt;p /&gt;
Are there significant differences in the VIX API between Workstation 6.0 and ESX 1.7? What should I look out for?&lt;br /&gt;
&lt;p /&gt;
Thanks in advance,&lt;br /&gt;
&lt;p /&gt;
-Kevin Little</description>
      <pubDate>Wed, 07 Oct 2009 00:50:20 GMT</pubDate>
      <author>kcl</author>
      <guid>http://communities.vmware.com/thread/235452</guid>
      <dc:date>2009-10-07T00:50:20Z</dc:date>
      <clearspace:dateToText>1 month, 1 week ago</clearspace:dateToText>
      <clearspace:messageCount>4</clearspace:messageCount>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>Unable to run the Sample Perl Script</title>
      <link>http://communities.vmware.com/thread/236422</link>
      <description>&lt;br /&gt;
Hi,&lt;br /&gt;
&lt;p /&gt;
Im attempting to create myself a PHP/Perl Script. and i have no idea where to start, so i started to look at the Perl script but i cant get it to run i get the following error.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
 root@mars [/usr/lib/vmware-vix/vix-perl/samples]# perl findhosttest.pl&lt;br /&gt;
Can't locate VMware/Vix/Simple.pm in @INC (@INC contains: blib/lib blib/auto blib/arch blib/arch/auto/VMware blib/arch/auto /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at findhosttest.pl line 17.&lt;br /&gt;
BEGIN failed--compilation aborted at findhosttest.pl line 17.&lt;br /&gt;
&lt;p /&gt;
Any Suggestions?&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Regards,&lt;br /&gt;
&lt;p /&gt;
Chris English</description>
      <pubDate>Tue, 13 Oct 2009 03:12:56 GMT</pubDate>
      <author>ChrisEnglish2009</author>
      <guid>http://communities.vmware.com/thread/236422</guid>
      <dc:date>2009-10-13T03:12:56Z</dc:date>
      <clearspace:dateToText>1 month, 1 week ago</clearspace:dateToText>
      <clearspace:messageCount>2</clearspace:messageCount>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>VIX with Freebie ESXi</title>
      <link>http://communities.vmware.com/thread/235509</link>
      <description>Hi all,&lt;br /&gt;
&lt;br /&gt;
 I'm trying to use VIX 1.7 remotely against a test ESXi 3.5 server (VMware ESX Server 3i, 3.5.0, 153875).&lt;br /&gt;
&lt;br /&gt;
It fails from the API when connecting (no errors) so I've tried going to basics and using the vmrun.exe with the following command as root.&lt;br /&gt;
&lt;br /&gt;
  U:\vmrun -T esx -h &lt;a class="jive-link-external" href="https://10.**.***.223:443/sdk"&gt;https://10.**.***.223:443/sdk&lt;/a&gt; -u ****** -p ****** start "[&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=datastore1%5D"&gt;datastore1]&lt;/a&gt; XYZ-XP02/XYZ-XP02.vmx"&lt;br /&gt;
&lt;br /&gt;
 When I do this I get the following error "Error: This operation is not supported with the current license"&lt;br /&gt;
&lt;br /&gt;
Do I need a different licence? or am I missing something obvious?&lt;br /&gt;
&lt;br /&gt;
Many thanks,&lt;br /&gt;
Sam.</description>
      <pubDate>Wed, 07 Oct 2009 10:40:28 GMT</pubDate>
      <author>L3mming</author>
      <guid>http://communities.vmware.com/thread/235509</guid>
      <dc:date>2009-10-07T10:40:28Z</dc:date>
      <clearspace:dateToText>1 month, 2 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>2</clearspace:messageCount>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>VixHost_Connect fail with NULL username and password</title>
      <link>http://communities.vmware.com/thread/233081</link>
      <description>&lt;br /&gt;
I'm working on VMware Server 2.0. In Vix API document, it says that if you want to connect to localost with current login, then you can use NULL for hostname, username and password. I just want so. But when I use NULL for host name, VixHost_Connect fails with error message:&lt;br /&gt;
&lt;p /&gt;
18002 Malformed hostname parameter.  For the given service provider, the hostname must be a URL, in the form &lt;a class="jive-link-external" href="https://&amp;lt;hostname&amp;gt;:&amp;lt;port&amp;gt;/sdk"&gt;https://&amp;lt;hostname&amp;gt;:&amp;lt;port&amp;gt;/sdk&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
 I have to change host name to &lt;a class="jive-link-external" href="https://127.0.0.1:8333/skd"&gt;https://127.0.0.1:8333/skd&lt;/a&gt;. But this is ok for me. All I want is to use NULL for user name and password, because I don't want to hardcode root's password in my program.&lt;br /&gt;
&lt;p /&gt;
But when I use NULL for user name and password, I get error message:&lt;br /&gt;
&lt;p /&gt;
1 Unknown error&lt;br /&gt;
&lt;p /&gt;
What's the problem? How to solve it?&lt;br /&gt;
&lt;p /&gt;
Thanks in advance!&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <pubDate>Wed, 23 Sep 2009 07:30:03 GMT</pubDate>
      <author>cli4</author>
      <guid>http://communities.vmware.com/thread/233081</guid>
      <dc:date>2009-09-23T07:30:03Z</dc:date>
      <clearspace:dateToText>1 month, 2 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>13</clearspace:messageCount>
      <clearspace:replyCount>12</clearspace:replyCount>
    </item>
    <item>
      <title>VMWareTasks 1.3 for VixCOM 1.7.0 (let's reinvent less wheels)</title>
      <link>http://communities.vmware.com/thread/228386</link>
      <description>&lt;br /&gt;
I've posted a release candidate for VMWareTasks 1.3 that supports VixCOM 1.7.0. Please download it &lt;a class="jive-link-external" href="http://vmwaretasks.codeplex.com/"&gt;here&lt;/a&gt; and file bugs or post questions at &lt;a class="jive-link-external" href="http://vmwaretasks.codeplex.com"&gt;http://vmwaretasks.codeplex.com&lt;/a&gt;. &lt;br /&gt;
&lt;p /&gt;
&lt;b&gt;Features&lt;/b&gt;&lt;br /&gt;
&lt;ul class="jive-dash"&gt;
&lt;li&gt;Added a VMWareComLib and VMWareComTools that expose a full scriptable COM interface. &lt;/li&gt;
&lt;li&gt;Added a vestris-vmwarecomlib.jar and vestris-vmwarecomtools.jar that exposes a Com4J JNI wrapper for VMWareComLib and VMWareComTools to Java clients. &lt;/li&gt;
&lt;li&gt;Added support for VixCOM 1.7.0. VMWareTasks works against both 1.6.2 and 1.7.0. &lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;b&gt;Misc Improvements&lt;/b&gt;&lt;br /&gt;
&lt;ul class="jive-dash"&gt;
&lt;li&gt;All VMWareLib.Tools objects are now IDisposable and explicitly release reference to the virtual machine. &lt;/li&gt;
&lt;li&gt;All assemblies are strongly named and signed. &lt;/li&gt;
&lt;li&gt;The source in the release package can now be built without any changes. &lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;b&gt;Bugs&lt;/b&gt;&lt;br /&gt;
&lt;ul class="jive-dash"&gt;
&lt;li&gt;VMWareRootSnapshotCollection.CreateSnapshot doesn't pass flags to the COM API. &lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;b&gt;Backwards incompatible interface changes&lt;/b&gt;&lt;br /&gt;
&lt;ul class="jive-dash"&gt;
&lt;li&gt;VMWareVirtualHost.ConnectToVMWareServer takes an additional username and password. Pass blank values to connect to a local VMWare Server 1.x. &lt;/li&gt;
&lt;/ul&gt;
&lt;p /&gt;
I am working on more thorough multithreaded stress tests, but with some early testing it looks like the VMWare development team did a very good job at fixing all the issues that I have reported, thank you!</description>
      <pubDate>Thu, 27 Aug 2009 11:57:52 GMT</pubDate>
      <author>dblock</author>
      <guid>http://communities.vmware.com/thread/228386</guid>
      <dc:date>2009-08-27T11:57:52Z</dc:date>
      <clearspace:dateToText>1 month, 2 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>22</clearspace:messageCount>
      <clearspace:replyCount>21</clearspace:replyCount>
    </item>
    <item>
      <title>vix 1.7 installer crashes</title>
      <link>http://communities.vmware.com/thread/234872</link>
      <description>I am trying to resolve this issue and it has me baffled.&lt;br /&gt;
&lt;br /&gt;
The installer gets to the EULA, I hit enter to begin installing and it just dies. No error message, no indication it did anything, just exits.&lt;br /&gt;
&lt;br /&gt;
Has anyone else experienced this?</description>
      <pubDate>Fri, 02 Oct 2009 22:48:32 GMT</pubDate>
      <author>JonathanHansen</author>
      <guid>http://communities.vmware.com/thread/234872</guid>
      <dc:date>2009-10-02T22:48:32Z</dc:date>
      <clearspace:dateToText>1 month, 2 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>7</clearspace:messageCount>
      <clearspace:replyCount>6</clearspace:replyCount>
    </item>
    <item>
      <title>Programmatically Connecting/Disconnecting Removable Devices using VIX API?</title>
      <link>http://communities.vmware.com/thread/234682</link>
      <description>&lt;br /&gt;
Is it somehow possible to connect/disconnect removable devices using the VIX API?&lt;br /&gt;
&lt;p /&gt;
Or is there another mechanism how I might archieve that using my own tool/script?&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Thanks</description>
      <pubDate>Thu, 01 Oct 2009 22:10:17 GMT</pubDate>
      <author>julzen</author>
      <guid>http://communities.vmware.com/thread/234682</guid>
      <dc:date>2009-10-01T22:10:17Z</dc:date>
      <clearspace:dateToText>1 month, 3 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>1</clearspace:messageCount>
    </item>
    <item>
      <title>VIX_SERVICEPROVIDER_VMWARE_WORKSTATION error</title>
      <link>http://communities.vmware.com/thread/234592</link>
      <description>&lt;br /&gt;
Hi,&lt;br /&gt;
&lt;p /&gt;
I'm trying to run a script in a 64-bit Windows 7 VM usingthe vmrun command line tool (1.6.0.2073) and the following options:&lt;br /&gt;
&lt;p /&gt;
vmrun -T ws -gu user -gp passwordrunProgramInHost "C:\vms\W7.vmx" -interactive "C:\test\test.cmd"&lt;br /&gt;
&lt;p /&gt;
 and i get the following error:&lt;br /&gt;
&lt;p /&gt;
 Error: Service type VIX_SERVICEPROVIDER_VMWARE_WORKSTATION was specified, but not installed&lt;br /&gt;
&lt;p /&gt;
 Can anyone help me with this error, it would be most appreciated!&lt;br /&gt;
&lt;p /&gt;
 Thanks &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt; &lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <pubDate>Thu, 01 Oct 2009 15:29:38 GMT</pubDate>
      <author>sarahi</author>
      <guid>http://communities.vmware.com/thread/234592</guid>
      <dc:date>2009-10-01T15:29:38Z</dc:date>
      <clearspace:dateToText>1 month, 3 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>1</clearspace:messageCount>
    </item>
    <item>
      <title>Please help me... I need to obtain CPU and memory usage throw VIX api?</title>
      <link>http://communities.vmware.com/thread/233916</link>
      <description>&lt;br /&gt;
Any Idea... its urgent... Please could you help me?&lt;br /&gt;
&lt;p /&gt;
Regards.</description>
      <pubDate>Mon, 28 Sep 2009 11:34:23 GMT</pubDate>
      <author>ghosther</author>
      <guid>http://communities.vmware.com/thread/233916</guid>
      <dc:date>2009-09-28T11:34:23Z</dc:date>
      <clearspace:dateToText>1 month, 3 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>3</clearspace:messageCount>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>RunProgramInGuest program unvisible on windows 2008 r2 64bit os</title>
      <link>http://communities.vmware.com/thread/233334</link>
      <description>&lt;br /&gt;
I meet a proble when using  RunProgramInGuest, the program is unvisible on win2008 r2 64 bit os. &lt;br /&gt;
&lt;p /&gt;
The Esx server version is 3.5i, the VIX is 1.6.2. Below is the sample code, &lt;br /&gt;
&lt;p /&gt;
&lt;i&gt;Set job = VM.LoginInGuest(userId, userPassword, VixCOM.Constants.VIX_LOGIN_IN_GUEST_REQUIRE_INTERACTIVE_ENVIRONMENT, Nothing)&lt;/i&gt;&lt;br /&gt;
&lt;p /&gt;
 +Set job = VM.RunProgramInGuest("cmd.exe", "",&lt;br /&gt;
VixCOM.Constants.VIX_RUNPROGRAM_ACTIVATE_WINDOW, Nothing, Nothing)+ &lt;br /&gt;
&lt;br /&gt;
I did use the  VixCOM.Constants.VIX_LOGIN_IN_GUEST_REQUIRE_INTERACTIVE_ENVIRONMENT and  VixCOM.Constants.VIX_RUNPROGRAM_ACTIVATE_WINDOW, but the program still can't be visible to the console, I could find it in task manager like "cmd.exe *32". Any advice, thanks</description>
      <pubDate>Thu, 24 Sep 2009 07:08:13 GMT</pubDate>
      <author>youngcool63502534</author>
      <guid>http://communities.vmware.com/thread/233334</guid>
      <dc:date>2009-09-24T07:08:13Z</dc:date>
      <clearspace:dateToText>1 month, 3 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>6</clearspace:messageCount>
      <clearspace:replyCount>5</clearspace:replyCount>
    </item>
    <item>
      <title>VixVM_Open fails when the machine is powered on</title>
      <link>http://communities.vmware.com/thread/231772</link>
      <description>I have a vm on my remote linux machine hosting vmware server 1.0. When I use vix Apis to communicate with it, my VixVM_open() followed by VixJob_Wait() call fails when the VM is already powered on and hence am not able to retrieve a proper vmhandle. The error code is 3008:Cannot connect to VM .&lt;br /&gt;
&lt;br /&gt;
Does VixVM_open() work only if the vm is off and fails when it is on ? Or Am i doing anything wrong. &lt;br /&gt;
&lt;br /&gt;
The order of calls that I carry out is&lt;br /&gt;
&lt;br /&gt;
VixHost_Connect()&lt;br /&gt;
VixJob_Wait()&lt;br /&gt;
VixVM_open()&lt;br /&gt;
VixJob_Wait()&lt;br /&gt;
&lt;br /&gt;
Is this problem solvable ? Someone pls guide me..&lt;br /&gt;
&lt;br /&gt;
Madhan</description>
      <pubDate>Wed, 16 Sep 2009 05:53:56 GMT</pubDate>
      <author>madhanra</author>
      <guid>http://communities.vmware.com/thread/231772</guid>
      <dc:date>2009-09-16T05:53:56Z</dc:date>
      <clearspace:dateToText>1 month, 3 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>4</clearspace:messageCount>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>there is a way to obtain, CPU and Memory usage from the virtual Machine</title>
      <link>http://communities.vmware.com/thread/233693</link>
      <description>&lt;br /&gt;
there is a way to obtain, CPU and Memory usage from the virtual Machine usink Vix Api.&lt;br /&gt;
&lt;p /&gt;
Regards. &lt;br /&gt;
&lt;p /&gt;
I'm using  C# wrapper.</description>
      <category domain="http://communities.vmware.com/tags?communityID=2417">api</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">memory</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">cpu</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">vix</category>
      <pubDate>Fri, 25 Sep 2009 20:25:56 GMT</pubDate>
      <author>ghosther</author>
      <guid>http://communities.vmware.com/thread/233693</guid>
      <dc:date>2009-09-25T20:25:56Z</dc:date>
      <clearspace:dateToText>1 month, 3 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>1</clearspace:messageCount>
    </item>
    <item>
      <title>AV: assert from Glib + crash in a C# environment</title>
      <link>http://communities.vmware.com/thread/187177</link>
      <description>Using 1.6.2 and an ESX VM. There's something very wrong caused by a RevertToSnapshot + Disconnect call. I can reproduce this 100%. Maybe I can have symbols for vix.dll or a developer can contact me? - Thx&lt;br /&gt;
&lt;div class="jive-quote"&gt;gvmomi.dll!036c58ba() &lt;/div&gt;
&lt;a class="jive-link-external" href="http://frames%20below%20may%20be%20incorrect%20and/or%20missing,%20no%20symbols%20loaded%20for%20gvmomi.dll"&gt;http://Frames below may be incorrect and/or missing, no symbols loaded for gvmomi.dll&lt;/a&gt; &lt;br /&gt;
gobject-2.0.dll!0368718c() &lt;br /&gt;
glib-2.0.dll!035cb0d8() &lt;br /&gt;
glib-2.0.dll!035cb44e() &lt;br /&gt;
gobject-2.0.dll!03684f7f() &lt;br /&gt;
gobject-2.0.dll!03687926() &lt;br /&gt;
vix.dll!1114a888() &lt;br /&gt;
vix.dll!11119135() &lt;br /&gt;
vix.dll!11119150() &lt;br /&gt;
vix.dll!111070ab() &lt;br /&gt;
vix.dll!111079ca() &lt;br /&gt;
vix.dll!1110394d() &lt;br /&gt;
vix.dll!1115f23f() &lt;br /&gt;
vix.dll!1115f950() &lt;br /&gt;
vix.dll!11165353() &lt;br /&gt;
vix.dll!11154a79() &lt;br /&gt;
vix.dll!111540a3() &lt;br /&gt;
vix.dll!11153db5() &lt;br /&gt;
vix.dll!11165353() &lt;br /&gt;
vix.dll!11165277() &lt;br /&gt;
vix.dll!11102678() &lt;br /&gt;
vix.dll!11165353() &lt;br /&gt;
vix.dll!11154a79() &lt;br /&gt;
vix.dll!1115fa93() &lt;br /&gt;
vix.dll!1110198d() &lt;br /&gt;
vix.dll!11191380() &lt;br /&gt;
kernel32.dll!7c80b683()</description>
      <pubDate>Fri, 02 Jan 2009 23:27:53 GMT</pubDate>
      <author>dblock</author>
      <guid>http://communities.vmware.com/thread/187177</guid>
      <dc:date>2009-01-02T23:27:53Z</dc:date>
      <clearspace:dateToText>1 month, 3 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>32</clearspace:messageCount>
      <clearspace:replyCount>31</clearspace:replyCount>
    </item>
    <item>
      <title>transfer data files between virtual clients</title>
      <link>http://communities.vmware.com/thread/233316</link>
      <description>&lt;br /&gt;
Dear All,&lt;br /&gt;
&lt;p /&gt;
My apology if this is not the right VMware forum but here is my question:&lt;br /&gt;
&lt;p /&gt;
Is it possible to use VIX API (or any other VMware technology API) to transfer mass of data files between one virtual client (i.e. PC running XP) to another virtual client (i.e. MacOS) within the same virtual host assuming both virtual clients are in operation?  How about between different virtual hosts?  If yes, are they pretty fast?&lt;br /&gt;
&lt;p /&gt;
 Thanks in advanced for any pointers!&lt;br /&gt;
&lt;p /&gt;
 Best,&lt;br /&gt;
&lt;p /&gt;
--Wo</description>
      <pubDate>Thu, 24 Sep 2009 01:06:19 GMT</pubDate>
      <author>wchang</author>
      <guid>http://communities.vmware.com/thread/233316</guid>
      <dc:date>2009-09-24T01:06:19Z</dc:date>
      <clearspace:dateToText>1 month, 3 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>2</clearspace:messageCount>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>VM or physical machine, how do i make out remotely using psexec and perl</title>
      <link>http://communities.vmware.com/thread/233077</link>
      <description>Is there a way to make out a difference between a Physical machine and a VM remotely from perl.&lt;br /&gt;
here goes my requirement&lt;br /&gt;
   using psexec and perl i want to know whether a remote machine is a VM(mounted on ESX or on WStation) or a physical machine.Is there a way to do it</description>
      <pubDate>Wed, 23 Sep 2009 05:12:00 GMT</pubDate>
      <author>kishore007</author>
      <guid>http://communities.vmware.com/thread/233077</guid>
      <dc:date>2009-09-23T05:12:00Z</dc:date>
      <clearspace:dateToText>1 month, 4 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>2</clearspace:messageCount>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Windows Server 2008 R2 guest problems</title>
      <link>http://communities.vmware.com/thread/228928</link>
      <description>&lt;br /&gt;
I am having problems launching applications in a Windows Server 2008 R2 guest.&lt;br /&gt;
&lt;p /&gt;
I am using VMWare Workstation 6.5.2 build 156735. VIX is 1.6.3. Host OS is Win2003 SP2, 32 bit. Guest is the Windows Server 2008 R2 Standard RTM that was just recently released.&lt;br /&gt;
&lt;p /&gt;
What I am trying to do is launch a batch file from a shared folder to perform some automated installs and testing in the R2 guest. &lt;br /&gt;
&lt;p /&gt;
My first problem was that WaitForToolsInGuest() was being called with a timeout of 600 seconds. This call wouldn't return when VMWare tools were ready in the guest. I got around this by changing my VIX script to call WaitForToolsInGuest() with a timeout of 10 seconds in a loop and then stopping the loop when it was successful.&lt;br /&gt;
&lt;p /&gt;
I then call LoginGuest() with VIX_LOGIN_IN_GUEST_REQUIRE_INTERACTIVE_ENVIRONMENT and this is successful.&lt;br /&gt;
&lt;p /&gt;
My next problem comes when I try to launch my batch file from the shared folder in the guest using RunProgramInGuest(). It fails with the error that it can't find the file. This error occurs if I use a mapped network drive or the unc path &lt;strike&gt;file://\\.host\shared&lt;/strike&gt; folders\whatever. I found that if in the guest, before my script tries to run the batch file, I launch explorer and browse to the shared folder path of my batch file, then the batch will be launched successfully. However, I haven't been able to find a way to automate this. I tried snapping my vm with an open explorer window to that path, so that it launches the next time windows starts up, but it didn't seem to help.&lt;br /&gt;
&lt;p /&gt;
 Finally, even if I do my browing trick to get the batch file to launch, it seems like the batch file doesn't know about the shared folder paths. The first thing I do is try to install an .msi file using msiexec.exe, but this returns 1619, which means it couldn't find or access the file path. I've double checked the msi file path to make sure it is correct, and it works if I just open a cmd.exe window and type the command in. I thought that UAC might be getting in the way here, so I tried disabling it and setting it up to automatically elevate without prompting with no success. Also, I've tried using the built-in administrator account and another administrator account that I created and the result was the same for both.&lt;br /&gt;
&lt;p /&gt;
I think I'm pretty much stuck at this point. I would like to hear if anybody else has been able to get something like this to work on R2 or if they have any suggestions.</description>
      <pubDate>Mon, 31 Aug 2009 14:07:43 GMT</pubDate>
      <author>andywmarks</author>
      <guid>http://communities.vmware.com/thread/228928</guid>
      <dc:date>2009-08-31T14:07:43Z</dc:date>
      <clearspace:dateToText>2 months, 1 day ago</clearspace:dateToText>
      <clearspace:messageCount>3</clearspace:messageCount>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>How to get the usage details of vm's running form an esx server.</title>
      <link>http://communities.vmware.com/thread/232228</link>
      <description>&lt;br /&gt;
Hi All,&lt;br /&gt;
&lt;p /&gt;
 I have recently enterd into this domain, i am trying to capture the total amount of resources used by particular VM.&lt;br /&gt;
&lt;p /&gt;
 I went through the sdk and was able to get usage details for memory and CPU. But the details i am able to get are averages of the last 5 or 10 minutes sort of, everything in terms of averages.&lt;br /&gt;
&lt;p /&gt;
 But i want to know what is the total amount of CPU and memory usage ( in any units like cpu cycles etc) till now from the start. is there any way to get it or my total idea of calculation is at fault.&lt;br /&gt;
&lt;p /&gt;
what would be  general  usage metrics.&lt;br /&gt;
&lt;p /&gt;
Mani.</description>
      <pubDate>Fri, 18 Sep 2009 06:53:24 GMT</pubDate>
      <author>kmkswamy</author>
      <guid>http://communities.vmware.com/thread/232228</guid>
      <dc:date>2009-09-18T06:53:24Z</dc:date>
      <clearspace:dateToText>2 months, 4 days ago</clearspace:dateToText>
      <clearspace:messageCount>2</clearspace:messageCount>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Can i get the the ESX display name property via VIX?</title>
      <link>http://communities.vmware.com/thread/206370</link>
      <description>I can't seem to figure out how to get the display name property of a VirtualMachine hosted on an ESX server via VIX.  Is there a property i can pass to get Properties to get this?</description>
      <pubDate>Wed, 22 Apr 2009 19:41:21 GMT</pubDate>
      <author>drdamour</author>
      <guid>http://communities.vmware.com/thread/206370</guid>
      <dc:date>2009-04-22T19:41:21Z</dc:date>
      <clearspace:dateToText>2 months, 4 days ago</clearspace:dateToText>
      <clearspace:messageCount>5</clearspace:messageCount>
      <clearspace:replyCount>4</clearspace:replyCount>
    </item>
    <item>
      <title>Where could i get a beta version?</title>
      <link>http://communities.vmware.com/thread/231616</link>
      <description>I'm trying to use VIX with vmware player, as in this article : &lt;a class="jive-link-external" href="http://www.vmware.com/beta/workstation/vix-api/vix_player_technote.pdf"&gt;http://www.vmware.com/beta/workstation/vix-api/vix_player_technote.pdf&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
But the link to download is broken.&lt;br /&gt;
&lt;br /&gt;
Some one can say where do I can find this beta version?&lt;br /&gt;
&lt;p /&gt;
Thanks!</description>
      <category domain="http://communities.vmware.com/tags?communityID=2417">player</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">beta</category>
      <pubDate>Tue, 15 Sep 2009 14:41:07 GMT</pubDate>
      <author>IsaacLeal</author>
      <guid>http://communities.vmware.com/thread/231616</guid>
      <dc:date>2009-09-15T14:41:07Z</dc:date>
      <clearspace:dateToText>2 months, 1 week ago</clearspace:dateToText>
      <clearspace:messageCount>1</clearspace:messageCount>
    </item>
    <item>
      <title>'Authentication failure' error thrown from RunProgramInGuest mehod</title>
      <link>http://communities.vmware.com/thread/230682</link>
      <description>&lt;br /&gt;
Hey,&lt;br /&gt;
&lt;p /&gt;
I was trying to run a program with a graphical user interface, but got 'Authentication failure or insufficient permission in guest operation system" error from RunProgramInGuest after log in with Interactive option. &lt;br /&gt;
&lt;p /&gt;
Here is my code:&lt;br /&gt;
&lt;p /&gt;
Set job = VM.LoginInGuest(userId, userPassword, VixCOM.Constants.VIX_LOGIN_IN_GUEST_REQUIRE_INTERACTIVE_ENVIRONMENT, Nothing)&lt;br /&gt;
&lt;p /&gt;
  Set job = VM.ListProcessesInGuest(0,Nothing)&lt;br /&gt;
&lt;p /&gt;
  Set job = VM.RunProgramInGuest("C:\Tests\Test.exe", "A", VixCOM.Constants.VIX_RUNPROGRAM_ACTIVATE_WINDOW, Nothing, Nothing)   -- i want the application visible to user&lt;br /&gt;
&lt;p /&gt;
 I set up my VM with auto logon, so when VM powered on, an interactive user with the user name and password i provided in the LoginIn method would automatically log on in the guest OS.&lt;br /&gt;
&lt;p /&gt;
There is no error during the logon, but 'Authentication error" thrown nomatter what program i run from VM.&lt;br /&gt;
&lt;p /&gt;
Any suggestion?&lt;br /&gt;
&lt;p /&gt;
Thanks very much.&lt;br /&gt;
&lt;p /&gt;
J &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <pubDate>Wed, 09 Sep 2009 18:28:55 GMT</pubDate>
      <author>jacklyn97006</author>
      <guid>http://communities.vmware.com/thread/230682</guid>
      <dc:date>2009-09-09T18:28:55Z</dc:date>
      <clearspace:dateToText>2 months, 1 week ago</clearspace:dateToText>
      <clearspace:messageCount>2</clearspace:messageCount>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Error code 17</title>
      <link>http://communities.vmware.com/thread/230857</link>
      <description>I've called RunProgramInGuest with a REG command. The operation fails returning error code 17. This error code is not in the list in the VIX API Reference &lt;a class="jive-link-external" href="http://www.vmware.com/support/developer/vix-api/vix16_reference/"&gt;here&lt;/a&gt;. The error message is: &lt;br /&gt;
&lt;br /&gt;
"The procedure returned an error. A guest may have unexpectedly stopped".&lt;br /&gt;
&lt;p /&gt;
 What's up with this weird error? What can cause it and how can it be fixed?&lt;br /&gt;
&lt;p /&gt;
I've also tried it with a simple command like "REG /?" or "echo" but i get the same result. Also, it seems that this happens only on a specific VM. On others it works fine.</description>
      <category domain="http://communities.vmware.com/tags?communityID=2417">error</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">runprograminguest</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">unknown</category>
      <pubDate>Thu, 10 Sep 2009 13:38:19 GMT</pubDate>
      <author>AndreiVajnaII</author>
      <guid>http://communities.vmware.com/thread/230857</guid>
      <dc:date>2009-09-10T13:38:19Z</dc:date>
      <clearspace:dateToText>2 months, 1 week ago</clearspace:dateToText>
      <clearspace:messageCount>4</clearspace:messageCount>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>Unable to RunProgramInGuest with Vista</title>
      <link>http://communities.vmware.com/thread/228591</link>
      <description>&lt;br /&gt;
I have a problem with RunProgramInGuest and a Vista guest. I cannot run any programs or scripts with it. I have tried RunScriptInGuest too with the same result. I am reusing the routines I used when I did this with XP and there are no errors reported.I have tried disabling UAC as a start but that makes no difference. Any ideas are much appreciated.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <pubDate>Fri, 28 Aug 2009 13:08:28 GMT</pubDate>
      <author>Nasu</author>
      <guid>http://communities.vmware.com/thread/228591</guid>
      <dc:date>2009-08-28T13:08:28Z</dc:date>
      <clearspace:dateToText>2 months, 1 week ago</clearspace:dateToText>
      <clearspace:messageCount>5</clearspace:messageCount>
      <clearspace:replyCount>4</clearspace:replyCount>
    </item>
    <item>
      <title>Problem with running LoginInGuest with VIX_LOGIN_IN_GUEST_REQUIRE_INTERACTIVE_ENVIRONMENT option.</title>
      <link>http://communities.vmware.com/thread/230888</link>
      <description>&lt;br /&gt;
Hi,&lt;br /&gt;
&lt;p /&gt;
I have trouble running LoginInGuest with VIX_LOGIN_IN_GUEST_REQUIRE_INTERACTIVE_ENVIRONMENT option. I want to run a GUI apllication in VM, and need to use this option according to the vix api. But i always got 'Autenthentication failure or insufficient permission in guest operation system' error when i run RunProgramInGuest after LoginInGuest method being called.&lt;br /&gt;
&lt;p /&gt;
Set job = VM.LoginInGuest(UID, PWD, VixCOM.Constants.VIX_LOGIN_IN_GUEST_REQUIRE_INTERACTIVE_ENVIRONMENT, Nothing)&lt;br /&gt;
 err = job.WaitWithoutResults()&lt;br /&gt;
 If lib.ErrorIndicatesFailure(err) Then&lt;br /&gt;
  WScript.Echo("Error logging in: " &amp;#38; lib.GetErrorText(err, empty))&lt;br /&gt;
  WScript.Quit&lt;br /&gt;
 End If&lt;br /&gt;
&lt;br /&gt;
 Set job = VM.RunProgramInGuest("c:\Windows\system32\CMD.exe", "/c c:\scripts\CopyAndInstall.cmd", 0, Nothing, Nothing)&lt;br /&gt;
 err = job.WaitWithoutResults()&lt;br /&gt;
 If lib.ErrorIndicatesFailure(err) Then&lt;br /&gt;
    WScript.Echo("Error running install: " &amp;#38; lib.GetErrorText(err, empty))                          _      &lt;b&gt;----- error reported from here&lt;/b&gt;_&lt;br /&gt;
    host.Disconnect&lt;br /&gt;
    WScript.Quit&lt;br /&gt;
&lt;br /&gt;
 End If&lt;br /&gt;
&lt;p /&gt;
At first i thought something wrong with RunProgramInGuest method, then i realized LoginInGuest is the one  establised the authentication context in guest OS.&lt;br /&gt;
&lt;p /&gt;
Any one has seen this problem? any workaround? or any prereq account setting i need to do? By the way, the account user name and password provided to the loginInGuest method is the same one on the windows console log in prompt. I tried auto-logon, but not working either.&lt;br /&gt;
&lt;p /&gt;
I got stuck, and any input would be well appreciated.&lt;br /&gt;
&lt;p /&gt;
J &lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <pubDate>Thu, 10 Sep 2009 16:33:37 GMT</pubDate>
      <author>jacklyn97006</author>
      <guid>http://communities.vmware.com/thread/230888</guid>
      <dc:date>2009-09-10T16:33:37Z</dc:date>
      <clearspace:dateToText>2 months, 1 week ago</clearspace:dateToText>
      <clearspace:messageCount>3</clearspace:messageCount>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Since upgrading from VIX 1.6 to 1.7, VIX_E_LICENSE on Open</title>
      <link>http://communities.vmware.com/thread/229882</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
Since upgrading to VIX 1.7 today, my C# program fails on the line:&lt;br /&gt;
  VixCOM.IJob jobHandle = _hostHandle.OpenVM(_vmxFileName, null);&lt;br /&gt;
With the vix error VIX_E_LICENSE.&lt;br /&gt;
&lt;br /&gt;
I'm connecting to an ESXi box which reports that it's licensed when I look at it with the client infrastructure tool.&lt;br /&gt;
&lt;br /&gt;
I'm wondering if anybody else has seen this problem or could give me a suggestion as to what's going on?&lt;br /&gt;
&lt;br /&gt;
I've rebooted after installing VIX 1.7 and have recompiled all my code that uses it.&lt;br /&gt;
&lt;br /&gt;
Any help would be appreciated,&lt;br /&gt;
   -Scott</description>
      <category domain="http://communities.vmware.com/tags?communityID=2417">api</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">vix</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">license</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">error</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">connect</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">esx</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">c#</category>
      <pubDate>Fri, 04 Sep 2009 10:19:04 GMT</pubDate>
      <author>ScottLangham</author>
      <guid>http://communities.vmware.com/thread/229882</guid>
      <dc:date>2009-09-04T10:19:04Z</dc:date>
      <clearspace:dateToText>2 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>8</clearspace:messageCount>
      <clearspace:replyCount>7</clearspace:replyCount>
    </item>
    <item>
      <title>Possible is it that VixHost_Connect() complete a connection through a session ID, not the username and password?</title>
      <link>http://communities.vmware.com/thread/230194</link>
      <description>What I want to realize is that accomplish a interaction with the vm on some ESX host under my VC. Because of  the unreachable of ESX host username and password, I can only get the session from the VC, then how can I reach the vm with VIX?&lt;br /&gt;
&lt;p /&gt;
I have some try, just initialize the username with session ID and  password NULL, then I get such error: CRITICAL **: gvmomi_session_connect: assertion `cnxParams' failed, anyone have ideas? &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Thanks in advance.</description>
      <pubDate>Mon, 07 Sep 2009 08:36:33 GMT</pubDate>
      <author>brinews</author>
      <guid>http://communities.vmware.com/thread/230194</guid>
      <dc:date>2009-09-07T08:36:33Z</dc:date>
      <clearspace:dateToText>2 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>3</clearspace:messageCount>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Is there a way to retrieve performance statistics in VIX API?</title>
      <link>http://communities.vmware.com/thread/229260</link>
      <description>I am going to use VIX API to control VMs host in ESX servers in my automation system. Is there a way to get the statistics for ESX and storage? I'd like to use them to determine if the action is allowed, for example, it won't power on any VMs if CPU usage is more than 70%.</description>
      <pubDate>Wed, 02 Sep 2009 02:19:04 GMT</pubDate>
      <author>levinpeng</author>
      <guid>http://communities.vmware.com/thread/229260</guid>
      <dc:date>2009-09-02T02:19:04Z</dc:date>
      <clearspace:dateToText>2 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>3</clearspace:messageCount>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Snapshot Deltas Manipulation</title>
      <link>http://communities.vmware.com/thread/91411</link>
      <description>I'm automating a process that will yield the creation of alot of VM's that have all been derived from a single base VM image. I'm wondering, in order to save storage space as well as bandwidth, if it's possible to only copy snapshot files from a VM. For example:&lt;br /&gt;
&lt;br /&gt;
Say we have a team of 5. They would all have the same Baseline VMware Image. On a server somewhere, I'm running the automation tool to install software builds on that Baseline VMware Image and then take a snapshot, and have them available for the team. The original plan was for each team member to copy the entire VM Image folder over to their local machine so that they could test the software. What I would like to know is, is there a subset of those files (deltas?) that, if copied to each team member's local  Baseline VMware Image folder, would allow the VM to function just as the original Image that resides on the server?&lt;br /&gt;
&lt;br /&gt;
Thanks! sorry if that's confusing...</description>
      <pubDate>Thu, 28 Jun 2007 19:12:12 GMT</pubDate>
      <author>nudicles</author>
      <guid>http://communities.vmware.com/thread/91411</guid>
      <dc:date>2007-06-28T19:12:12Z</dc:date>
      <clearspace:dateToText>2 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>6</clearspace:messageCount>
      <clearspace:replyCount>5</clearspace:replyCount>
    </item>
    <item>
      <title>Possible to list snapshots using VIX?</title>
      <link>http://communities.vmware.com/thread/229204</link>
      <description>&lt;br /&gt;
Is it possible to use just VIX 1.7 within a C# app to list a VM's snapshots by name? I've been looking over the VIX API Reference Documentation and haven't been able to find a function that will list the snapshots by name, but apparently vmrun.exe can do this using the listSnapshots command. I would like to know if there is something similar to this command in the VIX API. &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Thanks!</description>
      <pubDate>Tue, 01 Sep 2009 18:49:59 GMT</pubDate>
      <author>eatorres</author>
      <guid>http://communities.vmware.com/thread/229204</guid>
      <dc:date>2009-09-01T18:49:59Z</dc:date>
      <clearspace:dateToText>2 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>3</clearspace:messageCount>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>vmrun: revertToSnapshot gives "A file by that name does not exist" error</title>
      <link>http://communities.vmware.com/thread/228864</link>
      <description>Hello. I'm having a problem with vmrun.exe (so I guess I'm not 100% convinced if it's the correct thread), as in the post title. I've used version 6.5.1 of vmrun.exe, and today I've installed v1.7 of VIX (it was advertised on the forum, above thread list), tagged as "e.x.p build-186713", but the problem remains.&lt;br /&gt;
&lt;br /&gt;
I'm listing the image's snapshot list by using listSnapshots (%VMX% is the path to the .vmx file):&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
C:\Program Files (x86)\VMware\VMware VIX&amp;gt;vmrun -T ws -gu Test -gp test listSnapshots %VMX% r1&lt;br /&gt;
Total snapshots: 1&lt;br /&gt;
r1&lt;br /&gt;
&lt;hr /&gt;
&lt;br /&gt;
and then I'm trying to revert the snapshot:&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
C:\Program Files (x86)\VMware\VMware VIX&amp;gt;vmrun -T ws -gu Test -gp test revertToSnapshot %VMX% r1&lt;br /&gt;
Error: A file by that name does not exist&lt;br /&gt;
&lt;hr /&gt;
&lt;br /&gt;
I can revert to this snapshot ("r1") with VMWare Workstation GUI with no problems. When I start the virtual machine, and then I'll try to revert to the snapshot using vmrun.exe, the machine will stop, vmrun.exe will run for 2-3 secs, and it'll dump the same error as above.&lt;br /&gt;
&lt;br /&gt;
Funny thing is, it doesn't work with only one image - I have several virtual machines, with serveral different versions of Windows, and everything works on them (listing snapshots and reverting to them).&lt;br /&gt;
&lt;br /&gt;
I enclose the dump of directory contents, with file names and their sizes, as I saw on other (unanswered) thread that someone requested it, so I guess it could be important.</description>
      <category domain="http://communities.vmware.com/tags?communityID=2417">reverttosnapshot</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">vmrun</category>
      <pubDate>Mon, 31 Aug 2009 08:37:22 GMT</pubDate>
      <author>antekone</author>
      <guid>http://communities.vmware.com/thread/228864</guid>
      <dc:date>2009-08-31T08:37:22Z</dc:date>
      <clearspace:dateToText>2 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>2</clearspace:messageCount>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>VIX 1.6.3???</title>
      <link>http://communities.vmware.com/thread/226754</link>
      <description>Any word on the release of a updated version of VIX, what fixes are targeted and any new functions that will be in it?</description>
      <pubDate>Tue, 18 Aug 2009 14:28:32 GMT</pubDate>
      <author>dcap</author>
      <guid>http://communities.vmware.com/thread/226754</guid>
      <dc:date>2009-08-18T14:28:32Z</dc:date>
      <clearspace:dateToText>2 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>2</clearspace:messageCount>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Multithreading in VIX API: more crashes, any news on fixes?</title>
      <link>http://communities.vmware.com/thread/196429</link>
      <description>I've been trying to extend our test automation to parallelize against multiple virtual machines. I am using &lt;a class="jive-link-external" href="http://www.codeplex.com/vmwaretasks"&gt;VMWareTasks&lt;/a&gt;. I make a connection to a different VM on two threads, then use the handle(s) returned, etc. This is a collection of crash messages followed by access violations that I got recently. I'll edit with more as i see them &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt; &lt;br /&gt;
&lt;p /&gt;
Most of the issues happen on connect or disconnect.&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;

&lt;ul&gt;
&lt;li&gt;** (RemoteInstaller.exe:5572): WARNING **: ???: object class `GVmomiSession' has no property named `state'&lt;/li&gt;
&lt;li&gt;** ERROR **: g_type_plugin_*() invalidly modified type GVmomiSession' aborting (popup)&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;br /&gt;
Is there any news on a 1.6.3 that might fix these problems? I'd be really happy to try a beta too.&lt;br /&gt;
&lt;br /&gt;
Thx&lt;br /&gt;
dB.</description>
      <pubDate>Wed, 25 Feb 2009 23:36:32 GMT</pubDate>
      <author>dblock</author>
      <guid>http://communities.vmware.com/thread/196429</guid>
      <dc:date>2009-02-25T23:36:32Z</dc:date>
      <clearspace:dateToText>2 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>12</clearspace:messageCount>
      <clearspace:replyCount>11</clearspace:replyCount>
    </item>
    <item>
      <title>Issue with Reverting to Snapshot</title>
      <link>http://communities.vmware.com/thread/228107</link>
      <description>&lt;br /&gt;
I am experimenting with running automated tests on a VMWare VM. Opening and powering on the VM (through VIX API), as well as running the test tool, is all controlled from the VMWare host (same physical machine). After the tests have been run I would like to use VIX API to revert to "Snapshot 1", i.e. the state my VM was in before the tests were run. However, I get the error code and message "15 The file is already in use.".&lt;br /&gt;
&lt;p /&gt;
When I do this manually on the VM, it is automatically restarts and I am back at "Snapshot 1" state but, if I do it using VIX API RevertToSnapshot from the VMWare host, I get the message above and the VM gets suspended. If I select to "Resume...." (manually)  then I am back at "Snapshot 1" state. Any idea what is wrong? Why does the VM not restart automatically when I use VIX API?</description>
      <pubDate>Wed, 26 Aug 2009 11:35:04 GMT</pubDate>
      <author>Nasu</author>
      <guid>http://communities.vmware.com/thread/228107</guid>
      <dc:date>2009-08-26T11:35:04Z</dc:date>
      <clearspace:dateToText>2 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>3</clearspace:messageCount>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Technology Exchange Developer Day - VIX API Applications and Scripts for Managing Guest Environments</title>
      <link>http://communities.vmware.com/thread/226916</link>
      <description>Hello,&lt;br /&gt;
&lt;br /&gt;
We are happy to announce about our hands-on demo at Technology Exchange Developer Day 2009, VIX API Applications and Scripts for Managing Guest Environments&lt;br /&gt;
&lt;br /&gt;
Presenter: Matt Lamantia&lt;br /&gt;
&lt;br /&gt;
Demo ID: DS-03&lt;br /&gt;
&lt;br /&gt;
Time: 4:45 - 5:45 PM&lt;br /&gt;
&lt;br /&gt;
Abstract:&lt;br /&gt;
We will show examples of how the VIX API can be used to develop tools for managing guest environments &lt;br /&gt;
in VMware products. Included will be a domonstration of prrof-of-concept tools that monitor processes and &lt;br /&gt;
transfer files to multiple guests simultaneously. We will also show a Perl script that combines vSphere &lt;br /&gt;
Web Services SDK and VIX SDK to re-size a virtual disk and then the filesystem above it on the fly.</description>
      <category domain="http://communities.vmware.com/tags?communityID=2417">technology</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">technology_exchange</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">developer_day</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">vix_api</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">applications</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">scripts</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">manging</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">guest</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">environment</category>
      <pubDate>Wed, 19 Aug 2009 01:21:06 GMT</pubDate>
      <author>navadavuluri</author>
      <guid>http://communities.vmware.com/thread/226916</guid>
      <dc:date>2009-08-19T01:21:06Z</dc:date>
      <clearspace:dateToText>2 months, 4 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>1</clearspace:messageCount>
    </item>
    <item>
      <title>Technology Exchange Developer Day - VIX API Applications and Scripts for Managing Guest Environments</title>
      <link>http://communities.vmware.com/thread/226917</link>
      <description>Hello,&lt;br /&gt;
&lt;br /&gt;
We are happy to announce about our hands-on demo at Technology Exchange Developer Day 2009, VIX API Applications and Scripts for Managing Guest Environments&lt;br /&gt;
&lt;br /&gt;
Presenter: Matt Lamantia&lt;br /&gt;
&lt;br /&gt;
Demo ID: DS-03&lt;br /&gt;
&lt;br /&gt;
Time: 3:45 - 4:45 AM&lt;br /&gt;
&lt;br /&gt;
Abstract:&lt;br /&gt;
We will show examples of how the VIX API can be used to develop tools for managing guest environments&lt;br /&gt;
in VMware products. Included will be a domonstration of prrof-of-concept tools that monitor processes and&lt;br /&gt;
transfer files to multiple guests simultaneously. We will also show a Perl script that combines vSphere&lt;br /&gt;
Web Services SDK and VIX SDK to re-size a virtual disk and then the filesystem above it on the fly.</description>
      <category domain="http://communities.vmware.com/tags?communityID=2417">technology</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">technology_exchange</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">developer_day</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">vix_api</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">applications</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">scripts</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">manging</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">guest</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">environment</category>
      <pubDate>Wed, 19 Aug 2009 01:26:52 GMT</pubDate>
      <author>navadavuluri</author>
      <guid>http://communities.vmware.com/thread/226917</guid>
      <dc:date>2009-08-19T01:26:52Z</dc:date>
      <clearspace:dateToText>2 months, 4 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>3</clearspace:messageCount>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Adding a vmx to a datastore on VMWare Server 2 through VIX C API</title>
      <link>http://communities.vmware.com/thread/226127</link>
      <description>&lt;br /&gt;
Is what is stated in the title possible?&lt;br /&gt;
&lt;p /&gt;
Alternatively is it possible to add a datastore through the VIX C API?</description>
      <pubDate>Fri, 14 Aug 2009 09:23:27 GMT</pubDate>
      <author>musicalDuck</author>
      <guid>http://communities.vmware.com/thread/226127</guid>
      <dc:date>2009-08-14T09:23:27Z</dc:date>
      <clearspace:dateToText>3 months, 3 days ago</clearspace:dateToText>
      <clearspace:messageCount>4</clearspace:messageCount>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>Is it possible to create a snapshot of a VM using the SDK without connecting to the VC?</title>
      <link>http://communities.vmware.com/thread/226223</link>
      <description>&lt;br /&gt;
Hi,&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
I already have implemented the capability to create a snapshot of a VM using the VI SDK  to first authenticate with the VC and then issue the snapshot command using the ManagedObjectReference.&lt;br /&gt;
&lt;p /&gt;
I wanted to know if I could avoid the connection to the VC and instead using the SDK to connect directly to the ESX and create a snapshot of a VM on the ESX?&lt;br /&gt;
&lt;p /&gt;
If this is not the right place to ask this question, please do let me know which community do I post this question under?&lt;br /&gt;
&lt;p /&gt;
Thanks.</description>
      <pubDate>Fri, 14 Aug 2009 21:43:21 GMT</pubDate>
      <author>iamtez</author>
      <guid>http://communities.vmware.com/thread/226223</guid>
      <dc:date>2009-08-14T21:43:21Z</dc:date>
      <clearspace:dateToText>3 months, 5 days ago</clearspace:dateToText>
      <clearspace:messageCount>3</clearspace:messageCount>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>using vestris starting from aspnet</title>
      <link>http://communities.vmware.com/thread/226585</link>
      <description>&amp;lt;!--&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=if+gte+mso+9"&gt;if gte mso 9&lt;/a&gt;&amp;gt;&amp;lt;xml&amp;gt;&lt;br /&gt;
Normal&lt;br /&gt;
0&lt;br /&gt;
false&lt;br /&gt;
false&lt;br /&gt;
false&lt;br /&gt;
EN-US&lt;br /&gt;
X-NONE&lt;br /&gt;
X-NONE&lt;br /&gt;
MicrosoftInternetExplorer4&lt;br /&gt;
&amp;lt;/xml&amp;gt;&amp;lt;!&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=endif"&gt;endif&lt;/a&gt;--&amp;gt;&amp;lt;!--&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=if+gte+mso+9"&gt;if gte mso 9&lt;/a&gt;&amp;gt;&amp;lt;xml&amp;gt;&lt;br /&gt;
&amp;lt;/xml&amp;gt;&amp;lt;!&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=endif"&gt;endif&lt;/a&gt;--&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=if+gte+mso+10"&gt;if gte mso 10&lt;/a&gt;&amp;gt;&lt;br /&gt;
&amp;lt;style&amp;gt;&lt;br /&gt;
/* Style Definitions */&lt;br /&gt;
table.MsoNormalTable {mso-style-name:"Tabla normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;}&lt;br /&gt;
&amp;lt;/style&amp;gt;&lt;br /&gt;
&amp;lt;!&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=endif"&gt;endif&lt;/a&gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=if+gte+mso+9"&gt;if gte mso 9&lt;/a&gt;&amp;gt;&amp;lt;xml&amp;gt;&lt;br /&gt;
Normal&lt;br /&gt;
0&lt;br /&gt;
false&lt;br /&gt;
false&lt;br /&gt;
false&lt;br /&gt;
EN-US&lt;br /&gt;
X-NONE&lt;br /&gt;
X-NONE&lt;br /&gt;
MicrosoftInternetExplorer4&lt;br /&gt;
&amp;lt;/xml&amp;gt;&amp;lt;!&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=endif"&gt;endif&lt;/a&gt;--&amp;gt;&amp;lt;!--&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=if+gte+mso+9"&gt;if gte mso 9&lt;/a&gt;&amp;gt;&amp;lt;xml&amp;gt;&lt;br /&gt;
&amp;lt;/xml&amp;gt;&amp;lt;!&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=endif"&gt;endif&lt;/a&gt;--&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=if+gte+mso+10"&gt;if gte mso 10&lt;/a&gt;&amp;gt;&lt;br /&gt;
&amp;lt;style&amp;gt;&lt;br /&gt;
/* Style Definitions */&lt;br /&gt;
table.MsoNormalTable {mso-style-name:"Tabla normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;}&lt;br /&gt;
&amp;lt;/style&amp;gt;&lt;br /&gt;
&amp;lt;!&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=endif"&gt;endif&lt;/a&gt;--&amp;gt;&lt;br /&gt;
&lt;p /&gt;
Hi, I&amp;rsquo;m trying to power on a virtual machine starting from a&lt;br /&gt;
the web application, that&amp;rsquo;s say, using ASP.NET. The problem is that I run the&lt;br /&gt;
application from internet explorer doesn&amp;rsquo;t work but if I run one from the&lt;br /&gt;
visual studio works. I think that it could be problems of permits but I&lt;br /&gt;
impersonate the user of the application and neither it works. Here I send the&lt;br /&gt;
code.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
 using System;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.Linq;&lt;br /&gt;
using System.Web;&lt;br /&gt;
using System.Web.UI;&lt;br /&gt;
using System.Web.UI.WebControls;&lt;br /&gt;
using Vestris.VMWareLib;&lt;br /&gt;
using VixCOM;&lt;br /&gt;
&lt;br /&gt;
namespace VixWebApplication&lt;br /&gt;
{&lt;br /&gt;
    public partial class _Default : System.Web.UI.Page&lt;br /&gt;
    {&lt;br /&gt;
        protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;
        {&lt;br /&gt;
&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        protected void Button1_Click(object sender, EventArgs e)&lt;br /&gt;
        {&lt;br /&gt;
            // declare a virtual host&lt;br /&gt;
            VMWareVirtualHost virtualHost = new VMWareVirtualHost();&lt;br /&gt;
&lt;br /&gt;
            // connect to a local (VMWare Workstation) virtual machine&lt;br /&gt;
            virtualHost.ConnectToVMWareWorkstation();&lt;br /&gt;
&lt;br /&gt;
            // open an existing virtual machine&lt;br /&gt;
            VMWareVirtualMachine virtualMachine = virtualHost.Open(@"D:\Shared\My Virtual Machines\Windows XP Professional\winxppro.vmx");&lt;br /&gt;
&lt;br /&gt;
            // power on this virtual machine&lt;br /&gt;
            virtualMachine.PowerOn(Constants.VIX_VMPOWEROP_NORMAL /*| Constants.VIX_VMPOWEROP_LAUNCH_GUI*/, 180);&lt;br /&gt;
&lt;br /&gt;
            // login to the virtual machine&lt;br /&gt;
            virtualMachine.LoginInGuest("mila", "mila");&lt;br /&gt;
&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
When&lt;br /&gt;
I run the application starting from the browser I obtain this error &amp;ldquo;Cannot&lt;br /&gt;
connect to the virtual machine&amp;rdquo; but I run the application from visual studio&lt;br /&gt;
works fine, that&amp;rsquo;s to say, the virtual machine power on.&lt;br /&gt;
&lt;p /&gt;
+Cannot&lt;br /&gt;
connect to the virtual machine+ &lt;br /&gt;
&lt;p /&gt;
*Description:*An unhandled exception occurred during the execution of the&lt;br /&gt;
current web request. Please review the stack trace for more information about&lt;br /&gt;
the error and where it originated in the code. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Exception Details:&lt;/b&gt; Vestris.VMWareLib.VMWareException:&lt;br /&gt;
Cannot connect to the virtual machine&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Source Error:&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;table class="jive-wiki-table"&gt;
&lt;tr&gt;
&lt;td&gt;Line 29: &lt;br /&gt;
&lt;p /&gt;
			Line 30: //&lt;br /&gt;
			power on this virtual machine&lt;br /&gt;
&lt;p /&gt;
			Line 31:&lt;br /&gt;
			virtualMachine.PowerOn(Constants.VIX_VMPOWEROP_NORMAL /*|&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;br clear="left" /&gt;
			Constants.VIX_VMPOWEROP_LAUNCH_GUI*/, 180);&lt;br /&gt;
&lt;p /&gt;
			Line 32: &lt;br /&gt;
&lt;p /&gt;
			Line 33: //&lt;br /&gt;
			login to the virtual machine|&lt;br /&gt;
&lt;p /&gt;
&lt;b&gt;Source File:&lt;/b&gt; C:\Inetpub\wwwroot\VixWebApplication\VixWebApplication\Default.aspx.cs &lt;b&gt;Line:&lt;/b&gt; 31 &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Stack Trace:&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;table class="jive-wiki-table"&gt;
&lt;tr&gt;
&lt;td&gt;[VMWareException:&lt;br /&gt;
			Cannot connect to the virtual machine]&lt;br /&gt;
&lt;p /&gt;
			Vestris.VMWareLib.VMWareInterop.Check(UInt64&lt;br /&gt;
			errCode) +66&lt;br /&gt;
&lt;p /&gt;
			Vestris.VMWareLib.VMWareJob.Wait(Int32&lt;br /&gt;
			timeoutInSeconds) +47&lt;br /&gt;
&lt;p /&gt;
			Vestris.VMWareLib.VMWareVirtualMachine.PowerOn(Int32&lt;br /&gt;
			powerOnOptions, Int32 timeoutInSeconds) +78&lt;br /&gt;
&lt;p /&gt;
			VixWebApplication._Default.Button1_Click(Object&lt;br /&gt;
			sender, EventArgs e) in&lt;br /&gt;
			C:\Inetpub\wwwroot\VixWebApplication\VixWebApplication\Default.aspx.cs:31&lt;br /&gt;
&lt;p /&gt;
			System.Web.UI.WebControls.Button.OnClick(EventArgs&lt;br /&gt;
			e) +111&lt;br /&gt;
&lt;p /&gt;
			System.Web.UI.WebControls.Button.RaisePostBackEvent(String&lt;br /&gt;
			eventArgument) +110&lt;br /&gt;
&lt;p /&gt;
			System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String&lt;br /&gt;
			eventArgument) +10&lt;br /&gt;
&lt;p /&gt;
			System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler&lt;br /&gt;
			sourceControl, String eventArgument) +13&lt;br /&gt;
&lt;p /&gt;
			System.Web.UI.Page.RaisePostBackEvent(NameValueCollection&lt;br /&gt;
			postData) +36&lt;br /&gt;
&lt;p /&gt;
			System.Web.UI.Page.ProcessRequestMain(Boolean&lt;br /&gt;
			includeStagesBeforeAsyncPoint&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;br clear="left" /&gt;</description>
      <pubDate>Mon, 17 Aug 2009 19:51:13 GMT</pubDate>
      <author>oslinda</author>
      <guid>http://communities.vmware.com/thread/226585</guid>
      <dc:date>2009-08-17T19:51:13Z</dc:date>
      <clearspace:dateToText>3 months, 6 days ago</clearspace:dateToText>
      <clearspace:messageCount>1</clearspace:messageCount>
    </item>
    <item>
      <title>Anyone got a java client working against VixCOM (or C API)?</title>
      <link>http://communities.vmware.com/thread/223962</link>
      <description>&lt;br /&gt;
I was hoping to port &lt;a class="jive-link-external" href="http://vmwaretasks.codeplex.com/"&gt;VMWareTasks&lt;/a&gt; to Java. Exposing a similar interface wrapping VixCOM could make writing java programs a piece of cake just like it is now with .NET. I picked up Jacobgen/jacob and managed to generate an interface. I can call some methods successfuly, but I am stuck in Connect.&lt;br /&gt;
&lt;p /&gt;
 The VixCOM API declares the interface parameters as "long". Jacobgen believes it's a java int. I tried passing variants, ints, longs, everything and I still get type mismatch errors.&lt;br /&gt;
&lt;p /&gt;
Anybody got java code talking to VixCOM?&lt;br /&gt;
&lt;p /&gt;
Thx&lt;br /&gt;
dB.</description>
      <pubDate>Fri, 31 Jul 2009 15:29:29 GMT</pubDate>
      <author>dblock</author>
      <guid>http://communities.vmware.com/thread/223962</guid>
      <dc:date>2009-07-31T15:29:29Z</dc:date>
      <clearspace:dateToText>3 months, 1 week ago</clearspace:dateToText>
      <clearspace:messageCount>2</clearspace:messageCount>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Vix 1.6.2 and ESXi 3.5.0: Connection drops for no apparent reason</title>
      <link>http://communities.vmware.com/thread/225300</link>
      <description>I was using vix to drive a VM hosted by Workstation, but I'm updating this code (C#), to drive a VM hosted by ESXi.&lt;br /&gt;
&lt;br /&gt;
I'm having lots of trouble with the connection dropping. I've set up a ping -t on the ESXi box and on the VM I want to drive, and that shows a consistent connection. However, I'm finding the following:&lt;br /&gt;
&lt;br /&gt;
 * If I call Connect successfully and then follow it with a call to Open, the open call will regularly fail with VIX_E_HOST_NOT_CONNECTED. I've put the Connect and Open calls in a retry loop with a pause of 20 seconds between each retry. After 3 or 4 attempts it usually connects.&lt;br /&gt;
&lt;br /&gt;
 * If my program does some work without talking to the VM for about a minute, the connection usually drops such that if I try to call RunProgramInGuest after not using the Vix api for a minute, it fails with 'not connected'. I've put in a call to retry 'logging in' before I run a program on the vm. If this fails, I run the connect and open retry loop again, and then issue the RunProgramInGuest call I wanted again, and this works.&lt;br /&gt;
 * However, I am stuck, if I call RunProgramInGuest, and then Wait on the job handle, it's usually ok unless the program in the guest takes more than about a minute to run. In that case Wait never returns and the program is stuck.&lt;br /&gt;
&lt;br /&gt;
Has anybody else experienced the connection dropping like this? What workaround did you use to solve the final problem. I was considering trying to pass a callback in, but as the Wait is failing I expect that a callback will never be called back either. The other option I'm considering is whenever I call RunProgramInGuest, I actually execute a script on the VM which runs the program and then writes a file. Then I can poll by reconnecting, reopening and relogging-in in a retry loop, and running a quick executing program that looks for the existence of the file that tells me the program completed. This seems crazy though, so I'm hoping there are better suggestions!&lt;br /&gt;
&lt;br /&gt;
Any suggestion would be greatly appreciated.&lt;br /&gt;
  -Scott&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Also, if the VMWare VIX guys are monitoring this discussion group. Here's two suggestions: If you want to badge the ViX API as high-level, then the reconnection logic surely has to be internal. Also, a native managed API that doesn't need any COM stuff installing would be very welcome.</description>
      <category domain="http://communities.vmware.com/tags?communityID=2417">api</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">automation</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">c#</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">connect</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">esx</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">error</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">hangs</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">vix</category>
      <pubDate>Mon, 10 Aug 2009 13:21:53 GMT</pubDate>
      <author>ScottLangham</author>
      <guid>http://communities.vmware.com/thread/225300</guid>
      <dc:date>2009-08-10T13:21:53Z</dc:date>
      <clearspace:dateToText>3 months, 1 week ago</clearspace:dateToText>
      <clearspace:messageCount>5</clearspace:messageCount>
      <clearspace:replyCount>4</clearspace:replyCount>
    </item>
    <item>
      <title>My program crashes in VIX with: Access violation reading location</title>
      <link>http://communities.vmware.com/thread/225740</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
My C# program that uses the VIX API keeps crashing. I'm trying to use VIX 1.2.6 to connect to ESXi 3.5.0.&lt;br /&gt;
The crash usually seems to happen after I kick off a job and while I'm waiting for it to complete with a call to IJob.Wait or IJob.WaitWithoutResults, or polling in a loop with a pause calling IJob.CheckCompletion.&lt;br /&gt;
&lt;br /&gt;
I got the following from the debugger:&lt;br /&gt;
&lt;br /&gt;
Unhandled exception at 0x068f58ba in MyProgram.exe: 0xC0000005: Access violation reading location 0x00000008.&lt;br /&gt;
&lt;br /&gt;
Call stack:&lt;br /&gt;
&lt;div class="jive-quote"&gt;	gvmomi.dll!068f58ba() 	&lt;/div&gt;
 	&lt;a class="jive-link-external" href="http://Frames below may be incorrect and/or missing, no symbols loaded for gvmomi.dll"&gt;http://Frames below may be incorrect and/or missing, no symbols loaded for gvmomi.dll&lt;/a&gt;	&lt;br /&gt;
 	gobject-2.0.dll!03e4718c() 	&lt;br /&gt;
 	glib-2.0.dll!04b4b0d8() 	&lt;br /&gt;
 	glib-2.0.dll!04b4b44e() 	&lt;br /&gt;
 	gobject-2.0.dll!03e44f7f() 	&lt;br /&gt;
 	gobject-2.0.dll!03e47926() 	&lt;br /&gt;
 	vix.dll!11119135() 	&lt;br /&gt;
 	vix.dll!11119150() 	&lt;br /&gt;
 	vix.dll!111070ab() 	&lt;br /&gt;
 	vix.dll!111079ca() 	&lt;br /&gt;
 	vix.dll!1110394d() 	&lt;br /&gt;
 	vix.dll!1115f23f() 	&lt;br /&gt;
 	vix.dll!1115fa93() 	&lt;br /&gt;
 	vix.dll!1110198d() 	&lt;br /&gt;
 	vix.dll!11191380() 	&lt;br /&gt;
 	kernel32.dll!7628d0e9() 	&lt;br /&gt;
 	ntdll.dll!777119bb() 	&lt;br /&gt;
 	ntdll.dll!7771198e() 	&lt;br /&gt;
&lt;br /&gt;
Disassembly:&lt;br /&gt;
068F58AD  int         3    &lt;br /&gt;
068F58AE  int         3    &lt;br /&gt;
068F58AF  int         3    &lt;br /&gt;
068F58B0  push        ebp  &lt;br /&gt;
068F58B1  mov         ebp,esp &lt;br /&gt;
068F58B3  mov         eax,dword ptr &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=ebp%2B8"&gt;ebp+8&lt;/a&gt; &lt;br /&gt;
068F58B6  push        esi  &lt;br /&gt;
068F58B7  mov         esi,dword ptr &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=eax%2B0Ch"&gt;eax+0Ch&lt;/a&gt; &lt;br /&gt;
068F58BA  mov         ecx,dword ptr &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=esi%2B8"&gt;esi+8&lt;/a&gt;      &amp;lt;-- current instruction&lt;br /&gt;
068F58BD  push        edi  &lt;br /&gt;
068F58BE  mov         edi,dword ptr &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=ebp%2B0Ch"&gt;ebp+0Ch&lt;/a&gt; &lt;br /&gt;
068F58C1  push        edi  &lt;br /&gt;
068F58C2  push        ecx  &lt;br /&gt;
068F58C3  call        06A7B39A &lt;br /&gt;
068F58C8  add         esp,8 &lt;br /&gt;
068F58CB  test        eax,eax &lt;br /&gt;
068F58CD  je          068F58EA &lt;br /&gt;
068F58CF  mov         edx,dword ptr &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=esi%2B4"&gt;esi+4&lt;/a&gt; &lt;br /&gt;
068F58D2  push        eax  &lt;br /&gt;
068F58D3  push        edx  &lt;br /&gt;
068F58D4  call        06A7B3BE &lt;br /&gt;
068F58D9  mov         eax,dword ptr &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=esi%2B8"&gt;esi+8&lt;/a&gt; &lt;br /&gt;
068F58DC  push        edi  &lt;br /&gt;
068F58DD  push        eax  &lt;br /&gt;
068F58DE  call        06A7B3BE &lt;br /&gt;
068F58E3  add         esp,10h &lt;br /&gt;
068F58E6  pop         edi  &lt;br /&gt;
068F58E7  pop         esi  &lt;br /&gt;
068F58E8  pop         ebp  &lt;br /&gt;
068F58E9  ret              &lt;br /&gt;
068F58EA  push        6A7D310h &lt;br /&gt;
068F58EF  push        1DBh &lt;br /&gt;
068F58F4  push        6A7D2B4h &lt;br /&gt;
068F58F9  push        6A7C500h &lt;br /&gt;
068F58FE  push        8    &lt;br /&gt;
068F5900  push        0    &lt;br /&gt;
068F5902  call        06A7B388 &lt;br /&gt;
068F5907  add         esp,18h &lt;br /&gt;
068F590A  pop         edi  &lt;br /&gt;
068F590B  pop         esi  &lt;br /&gt;
068F590C  pop         ebp  &lt;br /&gt;
068F590D  ret              &lt;br /&gt;
068F590E  int         3    &lt;br /&gt;
068F590F  int         3    &lt;br /&gt;
068F5910  push        ebp  &lt;br /&gt;
068F5911  mov         ebp,esp &lt;br /&gt;
068F5913  mov         eax,dword ptr &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=ebp%2B8"&gt;ebp+8&lt;/a&gt; &lt;br /&gt;
068F5916  push        ebx  &lt;br /&gt;
068F5917  mov         ebx,dword ptr &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=ebp%2B0Ch"&gt;ebp+0Ch&lt;/a&gt; &lt;br /&gt;
068F591A  test        ebx,ebx &lt;br /&gt;
068F591C  push        esi  &lt;br /&gt;
068F591D  push        edi  &lt;br /&gt;
&lt;br /&gt;
Also, I'm not quite sure why. Although I'm debugging my program in VS2008, when the crash occurs, I get another dialog that pops up with the crash and asks me to select a debugger. If I look through code in the debugger I originally had running, I can't find the failure or call stack. From the dialog though, if I select to start a new debugger I can get the above information.&lt;br /&gt;
&lt;p /&gt;
Please, can anybody help?&lt;br /&gt;
&lt;br /&gt;
Thanks very much,&lt;br /&gt;
  Scott</description>
      <category domain="http://communities.vmware.com/tags?communityID=2417">api</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">c#</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">crash</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">vix</category>
      <pubDate>Wed, 12 Aug 2009 13:42:50 GMT</pubDate>
      <author>ScottLangham</author>
      <guid>http://communities.vmware.com/thread/225740</guid>
      <dc:date>2009-08-12T13:42:50Z</dc:date>
      <clearspace:dateToText>3 months, 1 week ago</clearspace:dateToText>
      <clearspace:messageCount>4</clearspace:messageCount>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>Disconnecting NIC in guest Programmatically</title>
      <link>http://communities.vmware.com/thread/226060</link>
      <description>&lt;br /&gt;
Hello, I am currently in search of a way to programmatically disconnect the guest's NIC. I have looked in several different places for a possible solution but I have come up practically empty handed. I am wondering if I can do this with VIX API? I was looking at VixVM_WriteVariable as a possibilty. Besides VIX, I also looked at vmware-cmd as a possibilty but from what I understand it was kind of replaced by vmrun, but vmrun doesn't have a disconnectdevice like vmware-cmd does.&lt;br /&gt;
&lt;p /&gt;
Any help is greatly appreciated. Thank you!&lt;br /&gt;
&lt;p /&gt;
 ~Jasson</description>
      <category domain="http://communities.vmware.com/tags?communityID=2417">vmrun</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">nic</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">api</category>
      <pubDate>Thu, 13 Aug 2009 23:34:55 GMT</pubDate>
      <author>jmcmorris</author>
      <guid>http://communities.vmware.com/thread/226060</guid>
      <dc:date>2009-08-13T23:34:55Z</dc:date>
      <clearspace:dateToText>3 months, 1 week ago</clearspace:dateToText>
      <clearspace:messageCount>1</clearspace:messageCount>
    </item>
    <item>
      <title>ERROR **: assertion failed: (GVMOMI_SESSION_CONNECTED == gvmomi_session_get_state(session))</title>
      <link>http://communities.vmware.com/thread/225822</link>
      <description>&lt;br /&gt;
Hi,&lt;br /&gt;
&lt;p /&gt;
 I'm seeing the following error generated by the VIX API, when using the perl bindings:&lt;br /&gt;
&lt;p /&gt;
&lt;ul&gt;

&lt;ul&gt;
&lt;li&gt;ERROR **: file /build/mts/release/bora-127388/bora/vim/lib/gvmomi/gvmomiSession.c: line 1155 (gvmomi_session_has_version): assertion failed: (GVMOMI_SESSION_CONNECTED == gvmomi_session_get_state(session))&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
aborting... &lt;br /&gt;
&lt;p /&gt;
Essentially, I'm trying to test my handle recovery logic -- specifically in the case where I create host and VM VIX handles, then wait for long periods of time, and then perform actual VIX operations (such as copying files).&lt;br /&gt;
&lt;p /&gt;
To simulate this activity, I have a perl script which creates the host and VM VIX handles, sleeps for a period of time, and then performs the rest of the VIX operations.&lt;br /&gt;
&lt;p /&gt;
During the sleep phase, I issue a CTRL-Z to the perl script, which cases all processing to pause.  After about 15 mins, I issue an "fg" to resume the perl script, at which point, I encounter the previously mentioned error.&lt;br /&gt;
&lt;p /&gt;
 I'm pretty sure this is a bug in the VIX library, but I wanted to find out from one of the VMware reps if this type of issue has already been reported.&lt;br /&gt;
&lt;p /&gt;
&lt;ul class="jive-dash"&gt;

&lt;ul class="jive-dash"&gt;
&lt;li&gt;Darien &lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;</description>
      <pubDate>Wed, 12 Aug 2009 19:03:00 GMT</pubDate>
      <author>kindlund</author>
      <guid>http://communities.vmware.com/thread/225822</guid>
      <dc:date>2009-08-12T19:03:00Z</dc:date>
      <clearspace:dateToText>3 months, 1 week ago</clearspace:dateToText>
      <clearspace:messageCount>8</clearspace:messageCount>
      <clearspace:replyCount>7</clearspace:replyCount>
    </item>
    <item>
      <title>CRITICAL **: file ..\..\..\gobject\gobject.c: line 1737: assertion `G_IS_OBJECT (object)' failed</title>
      <link>http://communities.vmware.com/thread/225454</link>
      <description>I've got a C# console app that uses VIX 1.6.2 (to connect to ESXi v3.5.0&lt;br /&gt;
Sometimes during a call to Connect, the text:&lt;br /&gt;
&lt;ul&gt;

&lt;ul&gt;
&lt;li&gt;(MyConsoleApp.exe:5508): CRITICAL **: file ..\..\..\gobject\gobject.c: line 1737: assertion `G_IS_OBJECT (object)' failed&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;br /&gt;
Gets output to the console window. I'm guessing this is being output by some internal library that VIX uses; maybe an author of that library accidentally left an assertion in the release version of their code.&lt;br /&gt;
&lt;br /&gt;
Anyway, does anybody know what this is or if there's a solution to make it go away? The connection fails if I see this message, but it usually succeeds after 4 or 5 retries.</description>
      <category domain="http://communities.vmware.com/tags?communityID=2417">c#</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">connect</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">error</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">vix</category>
      <pubDate>Tue, 11 Aug 2009 08:34:00 GMT</pubDate>
      <author>ScottLangham</author>
      <guid>http://communities.vmware.com/thread/225454</guid>
      <dc:date>2009-08-11T08:34:00Z</dc:date>
      <clearspace:dateToText>3 months, 1 week ago</clearspace:dateToText>
      <clearspace:messageCount>4</clearspace:messageCount>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>Virtual Machine info</title>
      <link>http://communities.vmware.com/thread/224216</link>
      <description>&lt;br /&gt;
Hello all,  &lt;br /&gt;
&lt;p /&gt;
I have a noob question.....  I need a script that will give me the following info.  &lt;br /&gt;
&lt;p /&gt;
VMname&lt;br /&gt;
&lt;p /&gt;
number of vCPU's and it's resource allocation info&lt;br /&gt;
&lt;p /&gt;
amount of  memory and it's resource allocation info &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
I looked before asking so go easy on me.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Thx in advance</description>
      <pubDate>Mon, 03 Aug 2009 14:05:39 GMT</pubDate>
      <author>johnswb</author>
      <guid>http://communities.vmware.com/thread/224216</guid>
      <dc:date>2009-08-03T14:05:39Z</dc:date>
      <clearspace:dateToText>3 months, 1 week ago</clearspace:dateToText>
      <clearspace:messageCount>2</clearspace:messageCount>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Connecting to ESXi host using VIX C API</title>
      <link>http://communities.vmware.com/thread/223408</link>
      <description>&lt;br /&gt;
Has anyone had problems using the Vix C API to connect with an ESXi host?  I can't get VixHost_Connect to connect with the C API, but if I use vmrun.exe with the same parameters it connects fine.  A colleague has also been able to connect to the same host using COM (VBScript).&lt;br /&gt;
&lt;p /&gt;
 I'm building the .dll in Visual C++ Express Edition and running it from Java with JNI.  The code I'm using is:&lt;br /&gt;
&lt;p /&gt;
jobHandle = VixHost_Connect(VIX_API_VERSION, // VIX_API_VERSION (or '1' on VMWareServer 1.0)&lt;br /&gt;
&lt;p /&gt;
VIX_SERVICEPROVIDER_VMWARE_VI_SERVER, // VIX_SERVICEPROVIDER_VMWARE_SERVER,&lt;br /&gt;
&lt;p /&gt;
server, //  "&lt;a class="jive-link-external" href="https://&amp;lt;IPAddress&amp;gt;:443/sdk"&gt;https://&amp;lt;IPAddress&amp;gt;:443/sdk&lt;/a&gt;"&lt;br /&gt;
&lt;p /&gt;
0, // ignored&lt;br /&gt;
&lt;p /&gt;
user, // "root"&lt;br /&gt;
&lt;p /&gt;
password, // "password"&lt;br /&gt;
&lt;p /&gt;
0, // options&lt;br /&gt;
&lt;p /&gt;
VIX_INVALID_HANDLE, // properties handle,&lt;br /&gt;
&lt;p /&gt;
NULL, // callbackProc,&lt;br /&gt;
&lt;p /&gt;
NULL); // clientData);</description>
      <category domain="http://communities.vmware.com/tags?communityID=2417">vix</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">c</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">c++</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">esxi</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">esx</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">esx_server</category>
      <pubDate>Wed, 29 Jul 2009 01:21:14 GMT</pubDate>
      <author>marksoreco</author>
      <guid>http://communities.vmware.com/thread/223408</guid>
      <dc:date>2009-07-29T01:21:14Z</dc:date>
      <clearspace:dateToText>3 months, 1 week ago</clearspace:dateToText>
      <clearspace:messageCount>12</clearspace:messageCount>
      <clearspace:replyCount>11</clearspace:replyCount>
    </item>
    <item>
      <title>Problem loading vix.dll</title>
      <link>http://communities.vmware.com/thread/224511</link>
      <description>I am using the VMWare Tasks library to try and automate some VMs for testing. However when my C# program (32-bit) tries to load vix.dll it seems to fail. Running vmrun.exe from the VixCOM directory works.&lt;br /&gt;
&lt;br /&gt;
In procmon I can see vmrun.exe try to load winmm.dll, oleacc.dll, mpr.dll, msasn1.dll, winspool.drv in C:\Program Files (x86)\VMware\VMware VIX\VIServer-2.0.0\32bit\ which all fail. It then continues on to load other DLLs and runs ok.&lt;br /&gt;
&lt;br /&gt;
My program also attempts to load these DLLs in C:\Program Files (x86)\VMware\VMware VIX\VIServer-2.0.0\32bit\, fails and then continues on to load them in C:\Windows\SysWOW64.&lt;br /&gt;
&lt;br /&gt;
The vmware-vixWrapper.log file looks like this for my program:&lt;br /&gt;
&lt;br /&gt;
Jul 30 12:16:38.631: app| Log for VixWrapper pid=5844 version=1 build=build-156745 option=Release&lt;br /&gt;
Jul 30 12:16:38.636: app| config points to non-existent implementation library 'C:\Program Files (x86)\VMware\VMware VIX\\ws_server_esx-4\32bit\vix.dll'&lt;br /&gt;
Jul 30 12:16:38.637: app| config points to non-existent implementation library 'C:\Program Files (x86)\VMware\VMware VIX\\ws_server_esx-4\32bit\vix.dll'&lt;br /&gt;
Jul 30 12:16:38.637: app| config points to non-existent implementation library 'C:\Program Files (x86)\VMware\VMware VIX\\ws_server_esx-4\32bit\vix.dll'&lt;br /&gt;
Jul 30 12:16:38.639: app| config points to non-existent implementation library 'C:\Program Files (x86)\VMware\VMware VIX\\ws_server_esx-4\32bit\vix.dll'&lt;br /&gt;
Jul 30 12:16:38.647: app| config points to non-existent implementation library 'C:\Program Files (x86)\VMware\VMware VIX\\ws-2\32bit\vix.dll'&lt;br /&gt;
Jul 30 12:16:38.651: app| config points to non-existent implementation library 'C:\Program Files (x86)\VMware\VMware VIX\\ws_server_esx-4\32bit\vix.dll'&lt;br /&gt;
Jul 30 12:16:38.651: app| config points to non-existent implementation library 'C:\Program Files (x86)\VMware\VMware VIX\\ws_server_esx-4\32bit\vix.dll'&lt;br /&gt;
Jul 30 12:16:38.655: app| config points to non-existent implementation library 'C:\Program Files (x86)\VMware\VMware VIX\\ws_server_esx-4\32bit\vix.dll'&lt;br /&gt;
Jul 30 12:16:38.656: app| config points to non-existent implementation library 'C:\Program Files (x86)\VMware\VMware VIX\\ws_server_esx-4\32bit\vix.dll'&lt;br /&gt;
Jul 30 12:16:38.659: app| config points to non-existent implementation library 'C:\Program Files (x86)\VMware\VMware VIX\\ws-2\32bit\vix.dll'&lt;br /&gt;
Jul 30 12:16:38.660: app| Loading Vix implementation library C:\Program Files (x86)\VMware\VMware VIX\\VIServer-2.0.0\32bit\vix.dll&lt;br /&gt;
Jul 30 12:16:38.669: app| failed to load library C:\Program Files (x86)\VMware\VMware VIX\\VIServer-2.0.0\32bit\vix.dll (193)&lt;br /&gt;
Jul 30 12:16:38.669: app| No Vix library found for provider 10 revision -1&lt;br /&gt;
&lt;br /&gt;
and the file for vmrun.exe looks like this:&lt;br /&gt;
&lt;br /&gt;
Jul 30 12:16:14.802: app| Log for VixWrapper pid=3460 version=1 build=build-156745 option=Release&lt;br /&gt;
Jul 30 12:16:14.812: app| config points to non-existent implementation library 'C:\Program Files (x86)\VMware\VMware VIX\\ws_server_esx-4\32bit\vix.dll'&lt;br /&gt;
Jul 30 12:16:14.813: app| config points to non-existent implementation library 'C:\Program Files (x86)\VMware\VMware VIX\\ws_server_esx-4\32bit\vix.dll'&lt;br /&gt;
Jul 30 12:16:14.814: app| config points to non-existent implementation library 'C:\Program Files (x86)\VMware\VMware VIX\\ws_server_esx-4\32bit\vix.dll'&lt;br /&gt;
Jul 30 12:16:14.814: app| config points to non-existent implementation library 'C:\Program Files (x86)\VMware\VMware VIX\\ws_server_esx-4\32bit\vix.dll'&lt;br /&gt;
Jul 30 12:16:14.823: app| config points to non-existent implementation library 'C:\Program Files (x86)\VMware\VMware VIX\\ws-2\32bit\vix.dll'&lt;br /&gt;
Jul 30 12:16:14.827: app| config points to non-existent implementation library 'C:\Program Files (x86)\VMware\VMware VIX\\ws_server_esx-4\32bit\vix.dll'&lt;br /&gt;
Jul 30 12:16:14.827: app| config points to non-existent implementation library 'C:\Program Files (x86)\VMware\VMware VIX\\ws_server_esx-4\32bit\vix.dll'&lt;br /&gt;
Jul 30 12:16:14.828: app| config points to non-existent implementation library 'C:\Program Files (x86)\VMware\VMware VIX\\ws_server_esx-4\32bit\vix.dll'&lt;br /&gt;
Jul 30 12:16:14.828: app| config points to non-existent implementation library 'C:\Program Files (x86)\VMware\VMware VIX\\ws_server_esx-4\32bit\vix.dll'&lt;br /&gt;
Jul 30 12:16:14.832: app| config points to non-existent implementation library 'C:\Program Files (x86)\VMware\VMware VIX\\ws-2\32bit\vix.dll'&lt;br /&gt;
Jul 30 12:16:14.833: app| Loading Vix implementation library C:\Program Files (x86)\VMware\VMware VIX\\VIServer-2.0.0\32bit\vix.dll&lt;br /&gt;
&lt;br /&gt;
Any help would be appreciated!</description>
      <category domain="http://communities.vmware.com/tags?communityID=2417">c#</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">error</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">vix</category>
      <pubDate>Wed, 05 Aug 2009 01:27:05 GMT</pubDate>
      <author>LukeQuinane</author>
      <guid>http://communities.vmware.com/thread/224511</guid>
      <dc:date>2009-08-05T01:27:05Z</dc:date>
      <clearspace:dateToText>3 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>3</clearspace:messageCount>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>VMWareTasks: A VIX API C# Library (let's reinvent less wheels)</title>
      <link>http://communities.vmware.com/thread/186164</link>
      <description>I posted a CodeProject Article this morning with a VMWareTasks C# library on top of the VIX API. It exposes a better programming model for the 99% of those synchronous VMWare scenarios where you don't want to deal with jobs or other more complex constructs. I think we can all benefit from reimplementing the same thing less often!&lt;br /&gt;
&lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.codeproject.com/KB/library/VMWareTasks.aspx"&gt;http://www.codeproject.com/KB/library/VMWareTasks.aspx&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;a class="jive-link-external" href="http://code.dblock.org/ShowPost.aspx?id=25"&gt;http://code.dblock.org/ShowPost.aspx?id=25&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
I'd love to get more features/patches for the library, feel free to (re)use and contribute.&lt;br /&gt;
&lt;p /&gt;
cheers&lt;br /&gt;
dB. &lt;br /&gt;
&lt;p /&gt;
&lt;b&gt;Update&lt;/b&gt;: I posted a new build &lt;b&gt;1.0.1604.0&lt;/b&gt;: &lt;a class="jive-link-external" href="http://code.dblock.org/ShowPost.aspx?id=29"&gt;http://code.dblock.org/ShowPost.aspx?id=29&lt;/a&gt;</description>
      <pubDate>Mon, 22 Dec 2008 20:01:45 GMT</pubDate>
      <author>dblock</author>
      <guid>http://communities.vmware.com/thread/186164</guid>
      <dc:date>2008-12-22T20:01:45Z</dc:date>
      <clearspace:dateToText>3 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>26</clearspace:messageCount>
      <clearspace:replyCount>25</clearspace:replyCount>
    </item>
    <item>
      <title>XML error on calling VixHost_Connect</title>
      <link>http://communities.vmware.com/thread/224328</link>
      <description>&lt;br /&gt;
Hello when I call the VixHost_Connect function I get this error:&lt;br /&gt;
&lt;p /&gt;
 vimServiceVersions.xml:1: parser error : Space required after the Public Identifier&lt;br /&gt;
&amp;lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&amp;gt;&lt;br /&gt;
                                                 ^&lt;br /&gt;
vimServiceVersions.xml:1: parser error : SystemLiteral " or ' expected&lt;br /&gt;
&amp;lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&amp;gt;&lt;br /&gt;
                                                 ^&lt;br /&gt;
vimServiceVersions.xml:1: parser error : SYSTEM or PUBLIC, the URI is missing&lt;br /&gt;
&amp;lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&amp;gt;&lt;br /&gt;
                                                 ^&lt;br /&gt;
vimServiceVersions.xml:9: parser error : Opening and ending tag mismatch: hr line 7 and body&lt;br /&gt;
&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
       ^&lt;br /&gt;
vimServiceVersions.xml:9: parser error : Opening and ending tag mismatch: body line 4 and html&lt;br /&gt;
&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
              ^&lt;br /&gt;
vimServiceVersions.xml:10: parser error : Premature end of data in tag html line 2&lt;br /&gt;
&lt;br /&gt;
^&lt;br /&gt;
vimService.wsdl:1: parser error : Space required after the Public Identifier&lt;br /&gt;
&amp;lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&amp;gt;&lt;br /&gt;
                                                 ^&lt;br /&gt;
vimService.wsdl:1: parser error : SystemLiteral " or ' expected&lt;br /&gt;
&amp;lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&amp;gt;&lt;br /&gt;
                                                 ^&lt;br /&gt;
vimService.wsdl:1: parser error : SYSTEM or PUBLIC, the URI is missing&lt;br /&gt;
&amp;lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&amp;gt;&lt;br /&gt;
                                                 ^&lt;br /&gt;
vimService.wsdl:9: parser error : Opening and ending tag mismatch: hr line 7 and body&lt;br /&gt;
&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
       ^&lt;br /&gt;
vimService.wsdl:9: parser error : Opening and ending tag mismatch: body line 4 and html&lt;br /&gt;
&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
              ^&lt;br /&gt;
vimService.wsdl:10: parser error : Premature end of data in tag html line 2&lt;br /&gt;
&lt;br /&gt;
^&lt;br /&gt;
noname.xml:1: parser error : Space required after the Public Identifier&lt;br /&gt;
&amp;lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&amp;gt;&lt;br /&gt;
                                                 ^&lt;br /&gt;
noname.xml:1: parser error : SystemLiteral " or ' expected&lt;br /&gt;
&amp;lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&amp;gt;&lt;br /&gt;
                                                 ^&lt;br /&gt;
noname.xml:1: parser error : SYSTEM or PUBLIC, the URI is missing&lt;br /&gt;
&amp;lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&amp;gt;&lt;br /&gt;
                                                 ^&lt;br /&gt;
noname.xml:9: parser error : Opening and ending tag mismatch: hr line 7 and body&lt;br /&gt;
&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
       ^&lt;br /&gt;
noname.xml:9: parser error : Opening and ending tag mismatch: body line 4 and html&lt;br /&gt;
&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
              ^&lt;br /&gt;
noname.xml:10: parser error : Premature end of data in tag html line 2&lt;br /&gt;
&lt;br /&gt;
^&lt;br /&gt;
&lt;p /&gt;
System: CentOS 5.3 x86_64 with VMware Server 2.0 (lats version for x86_64)&lt;br /&gt;
&lt;p /&gt;
running the same code(after recompiling) on an 32 Bit CentOS 5.3 with  VMware Server 2.0 (lat tversion for32 Bit) it will work.&lt;br /&gt;
&lt;p /&gt;
What goes wrong?</description>
      <pubDate>Tue, 04 Aug 2009 06:05:24 GMT</pubDate>
      <author>Bart_Simpson</author>
      <guid>http://communities.vmware.com/thread/224328</guid>
      <dc:date>2009-08-04T06:05:24Z</dc:date>
      <clearspace:dateToText>3 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>1</clearspace:messageCount>
    </item>
    <item>
      <title>copyFileFromGuestToHost got Error: Unknown Error</title>
      <link>http://communities.vmware.com/thread/223979</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
I issued the following command to copy a file from vm to host: &lt;br /&gt;
&lt;p /&gt;
vmrun.exe" -T esx -h &lt;a class="jive-link-external" href="https://host/sdk"&gt;https://host/sdk&lt;/a&gt; -u user -p password -gu guser -gp gpassword copyFileFromGuestToHost "[storage1] CentOs-5.3-x86-64/CentOs-5.3-x86-64.vmx" "/etc/sysconfig/network-scripts/ifcfg-eth0" "/user/ifcfg-eth0"&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
Error: Unknown error&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
Can someone help me ?</description>
      <pubDate>Fri, 31 Jul 2009 17:40:02 GMT</pubDate>
      <author>smileyogurt</author>
      <guid>http://communities.vmware.com/thread/223979</guid>
      <dc:date>2009-07-31T17:40:02Z</dc:date>
      <clearspace:dateToText>3 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>11</clearspace:messageCount>
      <clearspace:replyCount>10</clearspace:replyCount>
    </item>
    <item>
      <title>Can removable devices connect or disconnect with VIX API?</title>
      <link>http://communities.vmware.com/thread/223862</link>
      <description>Hi, &lt;br /&gt;
&lt;br /&gt;
I want to be able to connect a USB device (currently being connected to the host) to the guest with command-line or program. &lt;br /&gt;
&lt;br /&gt;
Is this possible in some way?&lt;br /&gt;
&lt;br /&gt;
Menu -&amp;gt; VM -&amp;gt; Removable Devices -&amp;gt; &lt;i&gt;Connect USB Device or Disconnect USB Device&lt;/i&gt; &lt;br /&gt;
&lt;p /&gt;
I want to be albe to execute this command in some way. &lt;br /&gt;
&lt;p /&gt;
if it is impossible, I want to answer that is word "It's impossible" &lt;br /&gt;
&lt;p /&gt;
help me, please.</description>
      <category domain="http://communities.vmware.com/tags?communityID=2417">usb</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">removable</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">devices</category>
      <pubDate>Fri, 31 Jul 2009 01:41:34 GMT</pubDate>
      <author>SAMSAMC</author>
      <guid>http://communities.vmware.com/thread/223862</guid>
      <dc:date>2009-07-31T01:41:34Z</dc:date>
      <clearspace:dateToText>3 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>1</clearspace:messageCount>
    </item>
    <item>
      <title>VIX v1.6.2 - Handle Reuse (?)</title>
      <link>http://communities.vmware.com/thread/223780</link>
      <description>&lt;br /&gt;
Anyone know how long you can reuse VIX host and VM handles before you start encountering errors (e.g., session timeouts and/or garbage collection issues)?&lt;br /&gt;
&lt;p /&gt;
Specifically, if I have code that's like:&lt;br /&gt;
&lt;p /&gt;
my $host_handle =  HostConnect(...);&lt;br /&gt;
&lt;p /&gt;
my $vm_handle =  VMOpen(...);&lt;br /&gt;
&lt;p /&gt;
-wait for 6 hours to 2 days...&lt;br /&gt;
&lt;p /&gt;
-Do something with the handles.&lt;br /&gt;
&lt;p /&gt;
-Release the handles.&lt;br /&gt;
&lt;p /&gt;
I assume VIX returns some sort of error when you've gone too long between handle use... any clarifications would be helpful&lt;br /&gt;
&lt;p /&gt;
 Also, is there any way to force the VIX garbage collector to run in perl? &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Also, I've encountered a variety of other VIX issues, which I've mentioned here:&lt;br /&gt;
&lt;p /&gt;
&lt;a class="jive-link-external" href="http://kindlund.wordpress.com/2009/07/28/vmware-vix-problems/"&gt;http://kindlund.wordpress.com/2009/07/28/vmware-vix-problems/&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <pubDate>Thu, 30 Jul 2009 16:29:03 GMT</pubDate>
      <author>kindlund</author>
      <guid>http://communities.vmware.com/thread/223780</guid>
      <dc:date>2009-07-30T16:29:03Z</dc:date>
      <clearspace:dateToText>3 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>6</clearspace:messageCount>
      <clearspace:replyCount>5</clearspace:replyCount>
    </item>
    <item>
      <title>VMware Failed to PowerOn C#</title>
      <link>http://communities.vmware.com/thread/191154</link>
      <description>&lt;br /&gt;
Hi, I received the following error when try poweron a vmx file, in attach follow the complete source code.&lt;br /&gt;
&lt;p /&gt;
&lt;img src="http://communities.vmware.com/servlet/JiveServlet/downloadImage/2-1154910-5081/vmwError.JPG" alt="vmwError.JPG" width="450" class="jive-image-thumbnail jive-image" onclick="myJiveImage.start(this, 'http://communities.vmware.com/servlet/JiveServlet/downloadImage/2-1154910-5081/vmwError.JPG');return false;"/&gt; &lt;br /&gt;
&lt;p /&gt;
Tanks</description>
      <pubDate>Tue, 27 Jan 2009 20:01:18 GMT</pubDate>
      <author>sgrmock</author>
      <guid>http://communities.vmware.com/thread/191154</guid>
      <dc:date>2009-01-27T20:01:18Z</dc:date>
      <clearspace:dateToText>3 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>19</clearspace:messageCount>
      <clearspace:replyCount>18</clearspace:replyCount>
    </item>
    <item>
      <title>How to Power On a remote host virtual machine</title>
      <link>http://communities.vmware.com/thread/124852</link>
      <description>&lt;br /&gt;
I am using vix api and vmware workstation.  My scripts in perl and C++ can power on a guest operating system in my computer (localhost).  However, I cannot power on a remote VM in another computer on my network.  The scripts give the following  errors:&lt;br /&gt;
&lt;p /&gt;
C++ script: &lt;br /&gt;
The virtual machine cannot be found&lt;br /&gt;
&lt;p /&gt;
Perl Script: &lt;br /&gt;
VMopen() failed, 4000 The virtual machine cannot be found &lt;br /&gt;
&lt;p /&gt;
Here is part of my code:&lt;br /&gt;
&lt;p /&gt;
C++:&lt;br /&gt;
&lt;p /&gt;
VixHandle hostHandle = VIX_INVALID_HANDLE;&lt;br /&gt;
	VixHandle jobHandle = VIX_INVALID_HANDLE;&lt;br /&gt;
	VixHandle vmHandle = VIX_INVALID_HANDLE;&lt;br /&gt;
	VixError err;&lt;br /&gt;
	char vmxFilePath[] = "c:\\home&lt;br clear="all" /&gt;My Virtual Machines&lt;br clear="all" /&gt;Windows Server 2003 Enterprise Edition&lt;br clear="all" /&gt;Windows Server 2003 Enterprise Edition.vmx";&lt;br /&gt;
&lt;p /&gt;
	jobHandle = VixHost_Connect(1, &lt;br /&gt;
		VIX_SERVICEPROVIDER_VMWARE_WORKSTATION,&lt;br /&gt;
		"10.55.10.100",                    // hostName&lt;br /&gt;
		902,                       // hostPort&lt;br /&gt;
		"xxxxxx",                    // userName               &lt;br /&gt;
		"yyyyyyy",                    // password&lt;br /&gt;
		0,                       // options&lt;br /&gt;
		VIX_INVALID_HANDLE,      // propertyListHandle&lt;br /&gt;
		NULL,                    // callbackProc&lt;br /&gt;
		NULL);                   // clientData&lt;br /&gt;
&lt;p /&gt;
	// Wait for completion of operation.&lt;br /&gt;
	err = VixJob_Wait(jobHandle, &lt;br /&gt;
		VIX_PROPERTY_JOB_RESULT_HANDLE,&lt;br /&gt;
		&amp;#38;hostHandle,&lt;br /&gt;
		VIX_PROPERTY_NONE);&lt;br /&gt;
&lt;p /&gt;
	if (VIX_OK != err) {&lt;br /&gt;
		goto abort;&lt;br /&gt;
	} else {&lt;br /&gt;
		printf ("connect success\n");&lt;br /&gt;
	}&lt;br /&gt;
&lt;p /&gt;
	Vix_ReleaseHandle(jobHandle);&lt;br /&gt;
&lt;p /&gt;
	// Use VixVM_Open with the hostHandle and the vmxFilePath to open your virtual machine.&lt;br /&gt;
	jobHandle = VixVM_Open(hostHandle,&lt;br /&gt;
		vmxFilePath,&lt;br /&gt;
		NULL,           // callbackProc&lt;br /&gt;
		NULL);          // clientData&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
	err = VixJob_Wait(jobHandle,&lt;br /&gt;
		VIX_PROPERTY_JOB_RESULT_HANDLE,&lt;br /&gt;
		&amp;#38;vmHandle,&lt;br /&gt;
		VIX_PROPERTY_NONE);&lt;br /&gt;
&lt;p /&gt;
	if (VIX_OK != err) {&lt;br /&gt;
		goto abort;&lt;br /&gt;
	} else {&lt;br /&gt;
		printf ("%s: open success\n",vmxFilePath);&lt;br /&gt;
	}&lt;br /&gt;
&lt;p /&gt;
	// Use VixVM_PowerOn to power on your VM.&lt;br /&gt;
&lt;p /&gt;
	jobHandle = VixVM_PowerOn(vmHandle,&lt;br /&gt;
		VIX_VMPOWEROP_NORMAL,           // options&lt;br /&gt;
		VIX_INVALID_HANDLE,             // propertyListHandle&lt;br /&gt;
		NULL,                           // *callbackProc,&lt;br /&gt;
		NULL);                          // *clientData&lt;br /&gt;
&lt;p /&gt;
	err = VixJob_Wait(jobHandle, VIX_PROPERTY_NONE);&lt;br /&gt;
&lt;p /&gt;
	if (VIX_OK != err) {&lt;br /&gt;
		goto abort;&lt;br /&gt;
	} else {&lt;br /&gt;
		printf ( "%s: power on success\n",vmxFilePath);&lt;br /&gt;
	}&lt;br /&gt;
&lt;p /&gt;
	Vix_ReleaseHandle(jobHandle);&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Perl Code:&lt;br /&gt;
&lt;p /&gt;
use VMware::Vix::Simple;&lt;br /&gt;
use VMware::Vix::API::Constants;&lt;br /&gt;
&lt;p /&gt;
my $err = VIX_OK;&lt;br /&gt;
my $hostHandle = VIX_INVALID_HANDLE;&lt;br /&gt;
my $vmHandle = VIX_INVALID_HANDLE;&lt;br /&gt;
&lt;p /&gt;
($err, $hostHandle) = HostConnect(1,&lt;br /&gt;
                                  VIX_SERVICEPROVIDER_VMWARE_WORKSTATION,&lt;br /&gt;
                                  "10.55.10.100", # hostName&lt;br /&gt;
                                  902, # hostPort&lt;br /&gt;
                                  "xxxxxx", # userName&lt;br /&gt;
                                  "yyyyyyy", # password&lt;br /&gt;
                                  0, # options&lt;br /&gt;
                                  VIX_INVALID_HANDLE); # propertyListHandle&lt;br /&gt;
&lt;p /&gt;
die "HostConnect() failed, $err ", GetErrorText($err), "\n" if $err != VIX_OK;&lt;br /&gt;
&lt;p /&gt;
($err, $vmHandle) = VMOpen($hostHandle,&lt;br /&gt;
                           "c:\\home&lt;br clear="all" /&gt;My Virtual Machines&lt;br clear="all" /&gt;Windows Server 2003 Enterprise Edition&lt;br clear="all" /&gt;Windows Server 2003 Enterprise Edition.vmx");&lt;br /&gt;
die "VMOpen() failed, $err ", GetErrorText($err), "\n" if $err != VIX_OK;&lt;br /&gt;
&lt;br /&gt;
$err = VMPowerOn($vmHandle,&lt;br /&gt;
                 VIX_VMPOWEROP_LAUNCH_GUI, # powerOnOptions&lt;br /&gt;
                 VIX_INVALID_HANDLE);  # propertyListHandle&lt;br /&gt;
die "VMPowerOn() failed, $err ", GetErrorText($err), "\n" if $err != VIX_OK;&lt;br /&gt;
&lt;p /&gt;
$err = VMWaitForToolsInGuest($vmHandle,&lt;br /&gt;
                             300); # timeoutInSeconds&lt;br /&gt;
die "VMWaitForToolsInGuest() failed, $err ", GetErrorText($err), "\n" if $err != VIX_OK;&lt;br /&gt;
&lt;p /&gt;
$err = VMLoginInGuest($vmHandle,&lt;br /&gt;
                      "administrator", # userName&lt;br /&gt;
                      "C*vmuser$$", # password&lt;br /&gt;
                      0); # options&lt;br /&gt;
die "VMLoginInGuest() failed, $err ", GetErrorText($err), "\n" if $err != VIX_OK;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
Help please.  Both work well with the localhost when I change the hostname and port to NULL and 0.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Thanks &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <pubDate>Tue, 05 Feb 2008 21:04:04 GMT</pubDate>
      <author>geck123</author>
      <guid>http://communities.vmware.com/thread/124852</guid>
      <dc:date>2008-02-05T21:04:04Z</dc:date>
      <clearspace:dateToText>3 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>26</clearspace:messageCount>
      <clearspace:replyCount>25</clearspace:replyCount>
    </item>
    <item>
      <title>WaitForToolsInGuest does not return and hangs</title>
      <link>http://communities.vmware.com/thread/220371</link>
      <description>&lt;br /&gt;
I'm using VIX API 1.6.2 on 32 bit Windows 2003 (SP2) to control vitrual machines running on another 64-bit machine running ESXi 4.0.0 (171294).&lt;br /&gt;
&lt;p /&gt;
The Virtual machine is running 32-bit Windows 2003 (SP2)  and has VMWare tools installed.&lt;br /&gt;
&lt;p /&gt;
Using the VIX API I first revert to a named snapshot (that has the machine in shutdown state), then I power it on and wait for tools in guest before I run programs inside the VM. &lt;br /&gt;
&lt;p /&gt;
The problem is that WaitForToolsInGuest ( ) does not return and hangs indefinately even after the OS has booted up successfully.&lt;br /&gt;
&lt;p /&gt;
The code below works fine for ESX 3.5 (update 3) and also VMWare Server 2.0.1 but does not work forESXi 4.0.0 (171294)&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
My VBScript code that uses VIX API looks like this:&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
' Create the VIX library &lt;br /&gt;
&lt;p /&gt;
Dim lib&lt;br /&gt;
&lt;p /&gt;
Set lib = CreateObject("VixCOM.VixLib")&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
' Connect to ESXi server &lt;br /&gt;
&lt;p /&gt;
Dim jobConnect&lt;br /&gt;
Set jobConnect = lib.Connect(VixCOM.Constants.VIX_API_VERSION, VixCOM.Constants.VIX_SERVICEPROVIDER_VMWARE_VI_SERVER, "https://myesxiserver:443/sdk/", 0, "root", "mypwd", 0, Nothing, Nothing) &lt;br /&gt;
&lt;p /&gt;
Set connectResults = Nothing&lt;br /&gt;
err = jobConnect.Wait(Array(VixCOM.Constants.VIX_PROPERTY_JOB_RESULT_HANDLE), connectResults)&lt;br /&gt;
If lib.ErrorIndicatesFailure(err) Then&lt;br /&gt;
       Wscript.Echo "Connecting to host failed with error code "&lt;br /&gt;
       WScript.Quit(err)&lt;br /&gt;
End If&lt;br /&gt;
&lt;p /&gt;
Dim host&lt;br /&gt;
&lt;p /&gt;
Set host = connectResults(0)&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
 ' Open the virtual machine&lt;br /&gt;
&lt;p /&gt;
Set jobOpenVM = host.OpenVM("&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=datastore"&gt;datastore&lt;/a&gt; myvm/myvm.vmx", Nothing)&lt;br /&gt;
&lt;br /&gt;
Set openVMResults = Nothing&lt;br /&gt;
err = jobOpenVM.Wait(Array(VixCOM.Constants.VIX_PROPERTY_JOB_RESULT_HANDLE), openVMResults)&lt;br /&gt;
If lib.ErrorIndicatesFailure(err) Then&lt;br /&gt;
       WScript.Echo "Opening virtual machine failed with error code "&lt;br /&gt;
       WScript.Quit(err)&lt;br /&gt;
End If&lt;br /&gt;
&lt;br /&gt;
' The vm object will be first element in the results array.    &lt;br /&gt;
&lt;p /&gt;
Dim vm&lt;br /&gt;
Set vm = openVMResults(0)&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
' Power on the virtual machine&lt;br /&gt;
&lt;p /&gt;
Dim jobPowerOn&lt;br /&gt;
Set jobPowerOn = vm.PowerOn(VixCOM.Constants.VIX_VMPOWEROP_NORMAL, Nothing, Nothing)&lt;br /&gt;
err = jobPowerOn.WaitWithoutResults()&lt;br /&gt;
If lib.ErrorIndicatesFailure(err) Then&lt;br /&gt;
        WScript.Echo "Powering on guest failed with error code "&lt;br /&gt;
        WScript.Quit(err)&lt;br /&gt;
End If&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
' Wait until VMWare tools starts inside the guest&lt;br /&gt;
&lt;p /&gt;
Dim jobWaitForTools &lt;br /&gt;
&lt;p /&gt;
Set jobWaitForTools = vm.WaitForToolsInGuest(0, Nothing)&lt;br /&gt;
err = jobWaitForTools.WaitWithoutResults()&lt;br /&gt;
If lib.ErrorIndicatesFailure(err) Then&lt;br /&gt;
       WScript.Echo "Waiting for tools in guest failed with error code "&lt;br /&gt;
       WScript.Quit(err)&lt;br /&gt;
&lt;p /&gt;
End If&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Thanks in advance.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <category domain="http://communities.vmware.com/tags?communityID=2417">vix</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">api</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">1.6.2</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">waitfortoolsinguest</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">hang</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">hangs</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">does_not_return</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">waits_indefinitely</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">indefinitely</category>
      <pubDate>Fri, 10 Jul 2009 10:20:34 GMT</pubDate>
      <author>GoodGuy123</author>
      <guid>http://communities.vmware.com/thread/220371</guid>
      <dc:date>2009-07-10T10:20:34Z</dc:date>
      <clearspace:dateToText>3 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>6</clearspace:messageCount>
      <clearspace:replyCount>5</clearspace:replyCount>
    </item>
    <item>
      <title>Session Update! VIX APIs - Managing and Automating Guest OS</title>
      <link>http://communities.vmware.com/thread/221625</link>
      <description>&lt;b&gt;Sessions # DE-02&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Session Abstract:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The VIX APIs provide an easy-to-use, high-level&lt;br /&gt;
programming interface that combines virtual machine management operations with&lt;br /&gt;
actions in the guest operating system, such as running programs and copying&lt;br /&gt;
files to and from the guest. Users can leverage VIX to write scripts and&lt;br /&gt;
programs in C, Perl, C# or Visual Basic, and use a simple command-line tool for&lt;br /&gt;
writing shell scripts. This session will provide an overview of the VIX API,&lt;br /&gt;
along with detailed examples and demonstrations. &lt;br /&gt;
&lt;br /&gt;
{youtube} &lt;a class="jive-link-external" href="http://www.youtube.com/watch?v=pJQtcNE39m4"&gt;http://www.youtube.com/watch?v=pJQtcNE39m4&lt;/a&gt; {youtube}&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;b&gt;Learn about our speakers:&lt;/b&gt;&lt;br /&gt;
&lt;img src="http://communities.vmware.com/servlet/JiveServlet/downloadImage/6356/lamantia.jpeg" alt="http://communities.vmware.com/servlet/JiveServlet/downloadImage/6356/lamantia.jpeg" class="jive-image"  /&gt; &lt;br /&gt;
Matt LaMantia is the manager of the VIX API team at VMware, focusing on enabling users and &lt;br /&gt;
independent software vendors to interface with VMware's platform offerings. Prior to working at VMware, &lt;br /&gt;
he was on the J2EE Server team at Art Technology Group and the speech recognizer team at &lt;br /&gt;
Dragon Systems, Inc. He received his MS in engineering management at MIT in 2006 and a BA in &lt;br /&gt;
computer science from Harvard in 1994.&lt;br /&gt;
&lt;br /&gt;
&lt;img src="http://communities.vmware.com/servlet/JiveServlet/downloadImage/6357/richards.jpeg" alt="http://communities.vmware.com/servlet/JiveServlet/downloadImage/6357/richards.jpeg" class="jive-image"  /&gt; &lt;br /&gt;
Matt Richards is a senior software engineer for VMware, where he is the engineering lead for the &lt;br /&gt;
VIX API. While at VMware, he has worked on areas including platform scalability, product security, &lt;br /&gt;
and API and protocol design. He received his BS in computer science from Stanford University.</description>
      <category domain="http://communities.vmware.com/tags?communityID=2417">vmworld</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">technology</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">exchange</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">developer</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">day</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">event</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">vix</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">apis</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">automation</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">manging</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">guest</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">os</category>
      <pubDate>Fri, 17 Jul 2009 16:23:18 GMT</pubDate>
      <author>navadavuluri</author>
      <guid>http://communities.vmware.com/thread/221625</guid>
      <dc:date>2009-07-17T16:23:18Z</dc:date>
      <clearspace:dateToText>3 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>1</clearspace:messageCount>
    </item>
    <item>
      <title>Throwing vmodl.fault.RequestCanceled without actually having cancelled a request</title>
      <link>http://communities.vmware.com/thread/223288</link>
      <description>I'm running VMware Server 2.0.0, Build 122956, and Vix 1.6.2, Build 127388, on an Ubuntu 8.04.03-LTS system. The setup works reasonably well most of the time - I've been able to do VM management via the Perl portion of the API, and generally speaking, it's good to go.&lt;br /&gt;
&lt;br /&gt;
The reason I'm here is that I'm having an intermittent failure of the system that makes no sense (as best I can tell). The system is primarily used to manage a pair of virtual machines that I'm using to run a virus testing sandbox, with my Perl script running a process that boils down to:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Grab infected file, copy it over to clean virtual machine A&lt;/li&gt;
&lt;li&gt;Start tcpdump on the host OS (which requires me to fork off a child process so it doesn't block)&lt;/li&gt;
&lt;li&gt;Run the infected file on virtual machine A (clean virtual machine B is just sitting there so that it can be infected, and I can capture the traffic going over the network)&lt;/li&gt;
&lt;li&gt;Wait 5 minutes&lt;/li&gt;
&lt;li&gt;Kill the tcpdump process (no further fork, just a syscall)&lt;/li&gt;
&lt;li&gt;Revert both virtual machines to their clean, pre-infected state&lt;/li&gt;
&lt;li&gt;Loop back to the start with another file.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
It works well for about 2-3 days, before my Perl script hangs during the process of reverting the second virtual machine. At that point, my hostd.log shows the following:&lt;br /&gt;
&lt;br /&gt;
&lt;strike&gt;2009-07-22 14:42:14.684 'Vmomi' 3064437648 info&lt;/strike&gt; Activation &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=N5Vmomi10ActivationE%3A0xcdcaf20"&gt;N5Vmomi10ActivationE:0xcdcaf20&lt;/a&gt; : Invoke done &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=waitForUpdates"&gt;waitForUpdates&lt;/a&gt; on &lt;strike&gt;vmodl.query.PropertyCollector:ha-property-collector&lt;/strike&gt;&lt;br /&gt;
&lt;strike&gt;2009-07-22 14:42:14.685 'Vmomi' 3064437648 info&lt;/strike&gt; Throw vmodl.fault.RequestCanceled&lt;br /&gt;
&lt;strike&gt;2009-07-22 14:42:14.685 'Vmomi' 3064437648 info&lt;/strike&gt; Result:&lt;br /&gt;
(vmodl.fault.RequestCanceled) {&lt;br /&gt;
   dynamicType = &amp;lt;unset&amp;gt;,&lt;br /&gt;
   msg = ""&lt;br /&gt;
}&lt;br /&gt;
&lt;strike&gt;2009-07-22 14:42:14.686 'Vmomi' 3064437648 info&lt;/strike&gt; Activation &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=N5Vmomi10ActivationE%3A0xd111108"&gt;N5Vmomi10ActivationE:0xd111108&lt;/a&gt; : Invoke done &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=waitForUpdates"&gt;waitForUpdates&lt;/a&gt; on &lt;strike&gt;vmodl.query.PropertyCollector:ha-property-collector&lt;/strike&gt;&lt;br /&gt;
&lt;strike&gt;2009-07-22 14:42:14.686 'Vmomi' 3064437648 info&lt;/strike&gt; Throw vmodl.fault.RequestCanceled&lt;br /&gt;
&lt;strike&gt;2009-07-22 14:42:14.686 'Vmomi' 3064437648 info&lt;/strike&gt; Result:&lt;br /&gt;
(vmodl.fault.RequestCanceled) {&lt;br /&gt;
   dynamicType = &amp;lt;unset&amp;gt;,&lt;br /&gt;
   msg = ""&lt;br /&gt;
}&lt;br /&gt;
&lt;strike&gt;2009-07-22 14:42:14.686 'Vmomi' 3064437648 info&lt;/strike&gt; Activation &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=N5Vmomi10ActivationE%3A0xd06a6d8"&gt;N5Vmomi10ActivationE:0xd06a6d8&lt;/a&gt; : Invoke done &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=waitForUpdates"&gt;waitForUpdates&lt;/a&gt; on &lt;strike&gt;vmodl.query.PropertyCollector:ha-property-collector&lt;/strike&gt;&lt;br /&gt;
&lt;strike&gt;2009-07-22 14:42:14.687 'Vmomi' 3064437648 info&lt;/strike&gt; Throw vmodl.fault.RequestCanceled&lt;br /&gt;
&lt;strike&gt;2009-07-22 14:42:14.687 'Vmomi' 3064437648 info&lt;/strike&gt; Result:&lt;br /&gt;
(vmodl.fault.RequestCanceled) {&lt;br /&gt;
   dynamicType = &amp;lt;unset&amp;gt;,&lt;br /&gt;
   msg = ""&lt;br /&gt;
}&lt;br /&gt;
&lt;strike&gt;2009-07-22 14:42:14.701 'PropertyProvider' 3064437648 verbose&lt;/strike&gt; RecordOp REMOVE: sessionList, ha-sessionmgr&lt;br /&gt;
&lt;strike&gt;2009-07-22 14:42:14.702 'ha-eventmgr' 3064437648 info&lt;/strike&gt; Event 3653 : User akirk logged out&lt;br /&gt;
&lt;strike&gt;2009-07-22 14:42:14.702 'PropertyProvider' 3064437648 verbose&lt;/strike&gt; RecordOp ASSIGN: latestEvent, ha-eventmgr&lt;br /&gt;
&lt;br /&gt;
Obviously, I'm not manually issuing a cancellation request of any kind, since the goal is to just let my script run as long as it has files to process (which is essentially infinitely, given the amount of data I'm trying to look at). Is there any other reason such a request might be issued? Do I need to do a host disconnect and reconnect on each iteration of my loop? Or can VMware Server and/or VIX just not handle a long-running loop like that well?</description>
      <category domain="http://communities.vmware.com/tags?communityID=2417">vix</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">perl</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">loop</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">requestcanceled</category>
      <pubDate>Tue, 28 Jul 2009 15:23:28 GMT</pubDate>
      <author>schnarff</author>
      <guid>http://communities.vmware.com/thread/223288</guid>
      <dc:date>2009-07-28T15:23:28Z</dc:date>
      <clearspace:dateToText>3 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>7</clearspace:messageCount>
      <clearspace:replyCount>6</clearspace:replyCount>
    </item>
    <item>
      <title>How do I script changing from Bridged to NAT?</title>
      <link>http://communities.vmware.com/thread/218768</link>
      <description>&lt;br /&gt;
I want to be able change from Bridged to NAT on a running VM and have it take effect immediately. I need to do this with a script. How can I do it?&lt;br /&gt;
&lt;p /&gt;
My host is Vista. My guest is Server 2003. I am running VMware server 2x</description>
      <pubDate>Tue, 30 Jun 2009 19:47:42 GMT</pubDate>
      <author>mswarbrick77</author>
      <guid>http://communities.vmware.com/thread/218768</guid>
      <dc:date>2009-06-30T19:47:42Z</dc:date>
      <clearspace:dateToText>3 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>23</clearspace:messageCount>
      <clearspace:replyCount>22</clearspace:replyCount>
    </item>
    <item>
      <title>PowerOff after shutdown timeout</title>
      <link>http://communities.vmware.com/thread/211726</link>
      <description>&lt;br /&gt;
I am using VMware server 2.0 for testing end-user Windows applications.  Sometimes, when I try to do a soft shutdown of a guest OS, the shutdown halts.  When this happens via the VI web page, the interface will not allow me to perform a hard power off while it waits indefinitely for the soft shutdown.&lt;br /&gt;
&lt;p /&gt;
 I have a pretty extensive backup script that I have written to shuts down VM's before archiving and compressing them.  Currently, I simply use a blocking synchronous wait (WaitWithoutResults).  I know I can create a timeout wait by just  looping on the VM power status instead.  Before I bother actually modifying the code to do this, I want to ask the simple question.  Can I actually force a hard power off using the VixCOM package if I have already initiated a soft shutdown?  I know I can't using the VI interface; I just want to know if I can programatically.</description>
      <category domain="http://communities.vmware.com/tags?communityID=2417">backup</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">poweroff</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">vbscript</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">wait</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">waitwithoutresults</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">vi</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">vixcom</category>
      <pubDate>Mon, 25 May 2009 20:21:04 GMT</pubDate>
      <author>kplusalot</author>
      <guid>http://communities.vmware.com/thread/211726</guid>
      <dc:date>2009-05-25T20:21:04Z</dc:date>
      <clearspace:dateToText>3 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>4</clearspace:messageCount>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>Any infos on the new 1.6.2 Version?</title>
      <link>http://communities.vmware.com/thread/221129</link>
      <description>Hello all,&lt;br /&gt;
&lt;p /&gt;
I just stumpled on VMware-vix-1.6.2-156745.exe available on the VMware Server 2 download page. The package's date: 30/3/2009, product version: 2.0.1 build-156745&lt;br /&gt;
Unfortunately, I could not find a changelog or something like that anywhere. &lt;br /&gt;
The VIX API landing page still claims that VMware-vix-1.6.2-127388.exe (03/12/2008, product version: 2.0.0 build-127388) is the most recent version of the VIX API.&lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.vmware.com/support/developer/vix-api/"&gt;http://www.vmware.com/support/developer/vix-api/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Can anyone point me to a changelog?&lt;br /&gt;
&lt;br /&gt;
Thanks in advance.&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
Patrick</description>
      <pubDate>Wed, 15 Jul 2009 09:34:22 GMT</pubDate>
      <author>patrickschneider</author>
      <guid>http://communities.vmware.com/thread/221129</guid>
      <dc:date>2009-07-15T09:34:22Z</dc:date>
      <clearspace:dateToText>4 months, 3 days ago</clearspace:dateToText>
      <clearspace:messageCount>3</clearspace:messageCount>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Is there a 64bit ovftool?</title>
      <link>http://communities.vmware.com/thread/207160</link>
      <description>&lt;br /&gt;
I've been using v1.0 of the ovftool on my 32bit W/S.  Now I'm moving to a 64bit.  Is there a version for linux-x86-64?  Or how does one load the needed 32bit VMware libs?&lt;br /&gt;
&lt;p /&gt;
--will</description>
      <pubDate>Mon, 27 Apr 2009 18:43:31 GMT</pubDate>
      <author>wduncanSF</author>
      <guid>http://communities.vmware.com/thread/207160</guid>
      <dc:date>2009-04-27T18:43:31Z</dc:date>
      <clearspace:dateToText>4 months, 3 days ago</clearspace:dateToText>
      <clearspace:messageCount>2</clearspace:messageCount>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>How can i reconfigure a VM using VIX API</title>
      <link>http://communities.vmware.com/thread/222106</link>
      <description>&lt;br /&gt;
Hi,,&lt;br /&gt;
&lt;p /&gt;
I want to reconfigure VM  using VIX API, let say i want to change memory share and cpu share in VM consider it as a X, and i want to remove one nic from. How to achieve this using VIX API.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Thank &amp;#38; Regards,&lt;br /&gt;
&lt;p /&gt;
HelpmeforLinux.</description>
      <category domain="http://communities.vmware.com/tags?communityID=2417">vix</category>
      <category domain="http://communities.vmware.com/tags?communityID=2417">api</category>
      <pubDate>Tue, 21 Jul 2009 11:53:41 GMT</pubDate>
      <author>helpmeforvmware</author>
      <guid>http://communities.vmware.com/thread/222106</guid>
      <dc:date>2009-07-21T11:53:41Z</dc:date>
      <clearspace:dateToText>4 months, 3 days ago</clearspace:dateToText>
      <clearspace:messageCount>1</clearspace:messageCount>
    </item>
    <item>
      <title>CopyDatastoreFile_Task strange behaviour</title>
      <link>http://communities.vmware.com/thread/222079</link>
      <description>&lt;br /&gt;
Hello,&lt;br /&gt;
&lt;p /&gt;
I need to copy virtual disks (or files) between datastors in VI. I am using VMware Infrastructure (VI) API from perl. Initialy I tried to use CopyVirtualDisk_Task, but it apeared that it works just with ESX servers not virtual center. Then I tried to use  CopyDatastoreFile_Task. CopyDatastoreFile_Task works fine with copying files in general, but it has strange behaviour when VM disk files ".vmdk" should be copied. When copying vmdk files it just creates very smallfile in destination - I think that it is some kind of reference to original file. Why it is so?&lt;br /&gt;
&lt;p /&gt;
Following code is used in perl script to do the copy.&lt;br /&gt;
&lt;p /&gt;
my $service_content = Vim::get_service_content();&lt;br /&gt;
my $file_mgr = Vim::get_view(mo_ref =&amp;gt; $service_content-&amp;gt;fileManager);&lt;br /&gt;
$file_mgr-&amp;gt;waitForTask($file_mgr-&amp;gt;CopyDatastoreFile_Task(sourceName =&amp;gt; $SourceName,sourceDatacenter =&amp;gt; $SourceDatacenter,destinationName =&amp;gt; $DestName,destinationDatacenter =&amp;gt; $DestDatacenter));&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
I also tried to move the file using MoveDatastoreFile_Task - it renamed source file dummy.vmdk to dummy-flat.vmdk, but in destination it again created very small file dummy.vmdk. But after that I was able to copy dummy-flat.vmdk with CopyDatastoreFile_Task. Can somebody explain this strange behaviour? Is there something wrong in those perl lines above? Files with extentions vmx, vmsd, vmxf I was able to copy successfuly.&lt;br /&gt;
&lt;p /&gt;
Regards,&lt;br /&gt;
&lt;p /&gt;
Roberts</description>
      <category domain="http://communities.vmware.com/tags?communityID=2417">vi_sdk</category>
      <pubDate>Tue, 21 Jul 2009 10:24:14 GMT</pubDate>
      <author>r123</author>
      <guid>http://communities.vmware.com/thread/222079</guid>
      <dc:date>2009-07-21T10:24:14Z</dc:date>
      <clearspace:dateToText>4 months, 3 days ago</clearspace:dateToText>
      <clearspace:messageCount>2</clearspace:messageCount>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>VixPowerState 0x0408  on ViX API 1.6.2</title>
      <link>http://communities.vmware.com/thread/221952</link>
      <description>Hi.&lt;br /&gt;
&lt;br /&gt;
I am working with the ViX API to get the state of a VM, according to the documentation here are the expected return values:&lt;br /&gt;
&lt;br /&gt;
typedef int VixPowerState;&lt;br /&gt;
enum {&lt;br /&gt;
      VIX_POWERSTATE_POWERING_OFF    = 0x0001,&lt;br /&gt;
      VIX_POWERSTATE_POWERED_OFF     = 0x0002,&lt;br /&gt;
      VIX_POWERSTATE_POWERING_ON     = 0x0004,&lt;br /&gt;
      VIX_POWERSTATE_POWERED_ON      = 0x0008,&lt;br /&gt;
      VIX_POWERSTATE_SUSPENDING      = 0x0010,&lt;br /&gt;
      VIX_POWERSTATE_SUSPENDED       = 0x0020,&lt;br /&gt;
      VIX_POWERSTATE_TOOLS_RUNNING   = 0x0040,&lt;br /&gt;
      VIX_POWERSTATE_RESETTING       = 0x0080,&lt;br /&gt;
      VIX_POWERSTATE_BLOCKED_ON_MSG  = 0x0100,&lt;br /&gt;
      VIX_POWERSTATE_PAUSED          = 0x0200,&lt;br /&gt;
      VIX_POWERSTATE_RESUMING        = 0x0800,&lt;br /&gt;
};&lt;br /&gt;
&lt;p /&gt;
But I am getting the code 0x0408 sometimes when the VM is currently powered on, can somebody tell me the meaning of this code, is it providing extra information about the VM??&lt;br /&gt;
&lt;p /&gt;
Thank you.</description>
      <pubDate>Mon, 20 Jul 2009 18:17:34 GMT</pubDate>
      <author>Aristizabal</author>
      <guid>http://communities.vmware.com/thread/221952</guid>
      <dc:date>2009-07-20T18:17:34Z</dc:date>
      <clearspace:dateToText>4 months, 4 days ago</clearspace:dateToText>
      <clearspace:messageCount>5</clearspace:messageCount>
      <clearspace:replyCount>4</clearspace:replyCount>
    </item>
  </channel>
</rss>

