As mentioned, yes in this earlier thread: If you're new, please go over the SDK getting started document and post any follow up questions you may have after reading through the document. ...
See more...
As mentioned, yes in this earlier thread: If you're new, please go over the SDK getting started document and post any follow up questions you may have after reading through the document. ========================================================================= William Lam VMware vExpert 2009 VMware ESX/ESXi scripts and resources at: Twitter: @lamw VMware Code Central - Scripts/Sample code for Developers and Administrators VMware Developer Comuunity If you find this information useful, please award points for "correct" or "helpful".
I have not yet migrated to vSphere and am using Virtual Center 2.x and ESX 3.5. I'm trying to determine if there is an automated way to invoke the discovery of a Datastore, either NFS or ...
See more...
I have not yet migrated to vSphere and am using Virtual Center 2.x and ESX 3.5. I'm trying to determine if there is an automated way to invoke the discovery of a Datastore, either NFS or SAN. Ideally this would be a CLI or scriptable command that could be executed to pick up a new volume, create a VMFS filesystem and assign a datastore name. Any idea if something like this exists, or if all datastores have to be allocated by hand?
Trying to get some of my tools back to vmware code rather than leverage external datasources. One major place I am trying to revert back to is my fesderated search routine over a bunch of VCs....
See more...
Trying to get some of my tools back to vmware code rather than leverage external datasources. One major place I am trying to revert back to is my fesderated search routine over a bunch of VCs. Basically I use a cache of inventory from a bunch of VCs now, but the new X-Hive source may have what I need. What I am lacking is some good examples of code around pulling data from those (preferrably C# but I will make do). First order of business is doing a session creation via vws\Login, but I don't know what I am missing for params and I get consistent 400s. Tried sending in some HTTP Basic stuff and verified in Fiddler that it was properly created in the header, but still no dice. Anyone dive into Query or Health yet and have some code to share? J
As mentioned in the previous reply, if you meet all requirements then yes it will be. ========================================================================= William Lam VMware vExp...
See more...
As mentioned in the previous reply, if you meet all requirements then yes it will be. ========================================================================= William Lam VMware vExpert 2009 VMware ESX/ESXi scripts and resources at: Twitter: @lamw VMware Code Central - Scripts/Sample code for Developers and Administrators VMware Developer Comuunity If you find this information useful, please award points for "correct" or "helpful".
Hi William, Thank you for your help. My Inventory has one Datacenter. Under it, is one Cluster. Three hosts exist in this Cluster: pal-eesx-01.abc.local, pal-eesx-02.abc.local, pa...
See more...
Hi William, Thank you for your help. My Inventory has one Datacenter. Under it, is one Cluster. Three hosts exist in this Cluster: pal-eesx-01.abc.local, pal-eesx-02.abc.local, pal-eesx-03.abc.local If click one Virtual Machine, I can see from "Summary" tag on the right part of the screen that Host: pal-eesx-03.abc.local If I set the host parameter as pal-eesx-02.abc.local, Will this vm be powered on 02.abc.local? Looking forward for your reply
As noted in the API reference for PowerOnVM_Task, the second option is optional and is primarily used if you're in a cluster in which multiple ESX(i) host exists and can communicate with the same...
See more...
As noted in the API reference for PowerOnVM_Task, the second option is optional and is primarily used if you're in a cluster in which multiple ESX(i) host exists and can communicate with the same storage the VM in question is on, you can specify which host the VM is powered on. To do so, you just need to get a reference to the host and pass that into the 2nd parameter, if you're working with a standalone, then you don't need to worry about it. ========================================================================= William Lam VMware vExpert 2009 VMware ESX/ESXi scripts and resources at: Twitter: @lamw VMware Code Central - Scripts/Sample code for Developers and Administrators VMware Developer Comuunity If you find this information useful, please award points for "correct" or "helpful".
Hi, I am a new developer from another country. These days I encounter a problem that: I want to invoke a vm by the API powerOnVMTask in the class VimPortType. I successfully do it w...
See more...
Hi, I am a new developer from another country. These days I encounter a problem that: I want to invoke a vm by the API powerOnVMTask in the class VimPortType. I successfully do it with the second parameter value as null. But I donot know how to use the second parameter "host". Is it mean that if I indicate host value, the vm will be poweroned on that host? Or other meaning? I googled for 2 days but can not find out the answer. Could anybody help me answer this question? I will be very happy if anybody pay attention to my question. Thank you very much!
Antony These are tough to isolate. Have you been able to reproduce issue ? Might be best to file an SR into VMW with more info, log files, vCenter version, ESX version, SDK version, and sampl...
See more...
Antony These are tough to isolate. Have you been able to reproduce issue ? Might be best to file an SR into VMW with more info, log files, vCenter version, ESX version, SDK version, and sample code to reproduce issue.. Regards, Pablo
Hi, Occasionally SDK calls to vCenter server fails in one customer deployment with following error in vpxd.log Connection to server localhost:8085 failed with error Only one usage of each ...
See more...
Hi, Occasionally SDK calls to vCenter server fails in one customer deployment with following error in vpxd.log Connection to server localhost:8085 failed with error Only one usage of each socket address (protocol/network address/port) is normally permitted. . 'ProxySvc Req00040' 3472 error] Connection to server localhost:8085 failed with error Only one usage of each socket address (protocol/network address/port) is normally permitted. . Retrying... 'ProxySvc Req00040' 3472 error] Connection to server localhost:8085 failed with error An operation was attempted on something that is not a socket. . Retrying... 'ProxySvc Req00040' 3472 error] Connection to server localhost:8085 failed with error An operation was attempted on something that is not a socket. . Retrying... 'ProxySvc Req00040' 3472 error] Connection to server localhost:8085 failed with error An operation was attempted on something that is not a socket. . Retrying... netstat gives more than 300 rows with TCP 127.0.0.1:1097 127.0.0.1:8085 LAST_ACK What can be the problem ? Any pointers will be helpful. Best regards, Antony
You can get this information by looking at the storageInfo for a given VM MO: http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.vm.StorageInfo.html which returns back...
See more...
You can get this information by looking at the storageInfo for a given VM MO: http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.vm.StorageInfo.html which returns back an array of objects which will specify committed, uncommitted, shared and datastore moref for the storage allcoated/used per VM and its disks across the datastores that its stored on. Here's a script that shows how to extract these properties: ========================================================================= William Lam VMware vExpert 2009 VMware ESX/ESXi scripts and resources at: Twitter: @lamw VMware Code Central - Scripts/Sample code for Developers and Administrators VMware Developer Comuunity If you find this information useful, please award points for "correct" or "helpful".
Hi, Can any one help me to CopyFileFromHostToGuest using the Web Services in C#. Any sample code would be greatly appreciated. I am using VIX PAI call VixVM_CopyFileFromHostToGuest. ...
See more...
Hi, Can any one help me to CopyFileFromHostToGuest using the Web Services in C#. Any sample code would be greatly appreciated. I am using VIX PAI call VixVM_CopyFileFromHostToGuest. But this call seems to be not working corectly. The VIX API call only working when i specify the particular directory on th Host System and it is copying all the files in the directory to the destination. If I specify the particular file to copy it is throwing the error. Thanks a lot for the Help!
One of my collegues managed to figure out a way to perform the connection through the use of a sequence of vmware-vim-cmd invocations. First a list of vms is gotten grepping on the known name ...
See more...
One of my collegues managed to figure out a way to perform the connection through the use of a sequence of vmware-vim-cmd invocations. First a list of vms is gotten grepping on the known name of the vm. Then a list of devices is gotten for that specific vm instance grepping on the cdrom. Lastly the device id for the cdrom is then used to perform the final command to connect the cdrom device. vmware-vim-cmd vmsvc/device.connection <vmid> <device id> true Note that the iso file name needs to be correct (really exists) or the device will still not connect.
The problem: Automate loading of multiple iso image "product" onto a virtual machine. Searching I've found that changing the iso image for a cdrom virtual drive in a virtual machine seems...
See more...
The problem: Automate loading of multiple iso image "product" onto a virtual machine. Searching I've found that changing the iso image for a cdrom virtual drive in a virtual machine seems to be a common problem, but seldom is there any solution. I've found references to vmware-cmd disconnectdevice/connectdevice. I've also found "legacy" script APIs that can essentially perform the same thing. However, seems this isn't available for vmware server 2 (only ESX and GSX server...). I've found that vmrun is replacement for vmware-cmd, with the exception that there are some things vmware-cmd could do that doesn't appear as an option in any documentation I can find with vmrun. The same goes for the VIX APIs. Again nothing found that helps with the connection issue. I've already figured out how to use the writeVariable option with vmrun to modify the iso pointed to for the virtual cdrom. The only step missing in automation is the automatic re-connecting of the virtual cdrom. If I manually start a console and click on the cdrom icon in the bottom and select connect, everything works. Problem is, I want to have that accomplished programatically and prefereably not through some gui automator. Is this just a limitation of vmware server 2 product? i.e. I need to get ESX instead? I guess an alternative is to make a giant iso so no switching is required, but that just postpones the problem. Is installation of software via iso images just so unpopular on linux that its not a frequent enough problem to address? Maybe I've just been searching too long and developed "tunnel vision". Any help/advice anyone can provide would be greatly appreciated. vmware server 2.01 on SLES 10 SP2 with guest also containing SLES 10 SP2 on x86-64 hardware.
If we also specify the path of the WSDL's along with the genvimstubs.cmd in VS command propmt Example: C:\visdk\SDK\samples\DotNet>genvimstubs.cmd C:\visdk\SDK\wsdl\vim25 got the ...
See more...
If we also specify the path of the WSDL's along with the genvimstubs.cmd in VS command propmt Example: C:\visdk\SDK\samples\DotNet>genvimstubs.cmd C:\visdk\SDK\wsdl\vim25 got the Vimsevice2005 and vimservice2005.xmlserializers dll's generated at samples/dotnet diretory. Thanks!
I am using Visula Studio 2008 and set the envionment variables as suggested. When i run the Buildcmd.2005 in VS 2008 command prompt i got C:\visdk\SDK\samples\DotNet>Build2005.cmd Visual ...
See more...
I am using Visula Studio 2008 and set the envionment variables as suggested. When i run the Buildcmd.2005 in VS 2008 command prompt i got C:\visdk\SDK\samples\DotNet>Build2005.cmd Visual Studio 2005 is installed The system cannot find the batch label specified - err_no_VSTOOLS The system cannot find the batch label specified - err_no_VSTOOLS Building Samples in Debug mode Done Building optimized Stubs and all Samples But when i go to the bin directoy of the samples I did not find any exe's genearated. Even I was unable to generate the Vim25service2005.dll and also Vimservice25.xmlserializers When I run the genvimstubs.cmd in VS 2008 ommand prompt I got the below message C:\visdk\SDK\samples\DotNet>genvimstubs.cmd The system cannot find the path specified. Error: Directory for WSDL files vim.wsdl and vimService.wsdl not specified Please specify WSDL files to generate stubs for The system cannot find the file specified. E.g. genvimstubs.cmd .\ Or to customize namespace stubfilename and dll names etc... genvimstubs.cmd .\ VimApi .\stubdir MyVimStubs.cs .\dlldir MyVimStubs ECHO is off. Error: No Visual Studio 2005 environment settings found Please run this script inside a Visual Studio 2005 Command Prompt ECHO is off. Stub generation Failed! ECHO is off. Any help is appreciated! Thanks a lot!
Hi I am trying to implement the web services that are available at in C# windows app. Can you pleases help me out. I sucess fully extracted the WSDL and generated the class file ou...
See more...
Hi I am trying to implement the web services that are available at in C# windows app. Can you pleases help me out. I sucess fully extracted the WSDL and generated the class file out of it. Can any one provide me a simpe windows app using the webservices. I tried to understand the samples provided with the download. But confusing to me! Please help me out. Thanks a lot!
Hi. I need to check whether a virtual disk is in persistent mode or not. no need to change it, just get the current state. code is in C#. I know how to get the power state and so,...
See more...
Hi. I need to check whether a virtual disk is in persistent mode or not. no need to change it, just get the current state. code is in C#. I know how to get the power state and so, but never gone too deep. if anyone can help with a sample or so, i'll be very happy. Thanks !! Jo.
HI, My name is Bill Orth and I am looking for help. I just started a new job and I am not at all familiar with VMware. We currently have a red hat linux server 4.0 running VW 1.069. I am not fam...
See more...
HI, My name is Bill Orth and I am looking for help. I just started a new job and I am not at all familiar with VMware. We currently have a red hat linux server 4.0 running VW 1.069. I am not familiar with Linux either and I would like to eliminate Linux from the equation and convert to ESXI. The problem is, I don't know how to do this. It looks as if the person whom I replaced made backups of the existing system by creating tar files. Can you please tell me what the easiest and safest way is to convert my current setup to ESXI. I know this is a lot to ask of a strangers but I am somewhat desperate. I have 20+ years of experience in IT, but the setup in my new employment is totally different than anything I have ever experienced. I received no training and am terrified that I am going to walk in to work and the servers will be down and I wont have a clue as to how to get them up and running. Please, any help would be appreciated.