VMware

This Question is Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
7 Replies Last post: Nov 6, 2009 11:37 AM by extorue  

"One of the parameters was invalid" while performing guest operations posted: Aug 20, 2008 11:03 AM

Click to view articblast's profile Novice 9 posts since
Aug 5, 2008

I have an application that copies files to a VM Image, runs and applications, and then copies the result files back.

The application loops through several configurations, at the begining of the loop it connects to a Server and opens a connection to an image.

At the end of the loop it closes the connection to the Server.

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.

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.

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.

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.


Click to view mattrich's profile Expert 510 posts since
Nov 29, 2006
What VMware product are you using?

What version of the VIX API?
Click to view extorue's profile Lurker 3 posts since
Nov 6, 2009

Hi,

I am getting the same error. My code just power on the virtual machine, loggin and then run a program in a virtual machine.

I use 2 webservices, one is published in a server, the other is published in some PCs with VMWare Server installed.

So I can with the server webservice manipulate the virtual machines in the differents PCs throught the webservice on it.

Some times runs sucessfull, other does not. And does not crash in the same line neither.

I am usin VMWare Server 2.0 and vestris API versio 1.6.

Anybody can help me about it?

Thanks in adavance

Click to view dblock's profile Enthusiast 110 posts since
Dec 9, 2008
I think you're hitting the VIXCOM 1.6 bugs. You might be able to work around them by setting all objects that are unused to null and garbage collecting at the right places, but it's a painful process. Upgrading would help you, especially with the next VMWareTasks 1.4, I think I managed to wrap all the crash scenarios within the library so you don't have to worry about it.
Click to view extorue's profile Lurker 3 posts since
Nov 6, 2009
Thanks a lot, I will try it.
Click to view extorue's profile Lurker 3 posts since
Nov 6, 2009
I keep getting the same error :(
This is the trace of the exception, in case it can help
" at Vestris.VMWareLib.VMWareInterop.Check(UInt64 errCode)\r\n at Vestris.VMWareLib.VMWareJob.WaitT](Object[ properties)\r\n at Vestris.VMWareLib.VMWareJob.WaitT](Object[ properties, Int32 index, Int32 timeoutInSeconds)\r\n at Vestris.VMWareLib.VMWareJob.Wait[T](Int32 propertyId, Int32 timeoutInSeconds)\r\n at Vestris.VMWareLib.VMWareVirtualHost.Open(String fileName, Int32 timeoutInSeconds)\r\n at ModelVM.VirtualMachine.OpenVirtualMachine(Int32 timeoutInSeconds) in D:\\WebServices\\ModelVM\\ModelVM
VirtualMachine.cs:line 796\r\n at ModelVM.VirtualMachine.OpenVirtualMachine() in D:\\WebServices\\ModelVM\\ModelVM
VirtualMachine.cs:line 783\r\n at ModelVM.VirtualMachine.get_GetVMWareVirtualMachine() in D:\\WebServices\\ModelVM\\ModelVM
VirtualMachine.cs:line 96\r\n at ModelVM.VirtualMachine.IsRunning() in D:\\WebServices\\ModelVM\\ModelVM
VirtualMachine.cs:line 364\r\n at ModelVM.VirtualMachine.Login(String username, String password, Int32 timeoutInSeconds) in D:\\WebServices\\ModelVM\\ModelVM
VirtualMachine.cs:line 294"

Any idea?

Developer Social Media

Communities