All Posts

Hello,     I want to develop a web client plug-in. This plug-in is used to display hardware information on ESXi. The hardware vendor provides a command-line tool. My question is how to call the ... See more...
Hello,     I want to develop a web client plug-in. This plug-in is used to display hardware information on ESXi. The hardware vendor provides a command-line tool. My question is how to call the command line on ESXi through web service sdk. As far as I know, web service sdk provides a ‘ServiceManager’ class(http://pubs.vmware.com/vsphere-55/index.jsp#com.vmware.wssdk.apiref.doc/vim.ServiceManager.html) . However, I found that it contains only two commands(Esxtop and VscsiStats ). How to put my command added to the list of commands in ServiceManager.      Thanks.
Hey Guys, Last few days I have been working on creating linkedClones in bulk for some of the testing purpose. Since I did not had my vCenter up and running so I spend few minutes to write a si... See more...
Hey Guys, Last few days I have been working on creating linkedClones in bulk for some of the testing purpose. Since I did not had my vCenter up and running so I spend few minutes to write a simple script to create a linkClones on standalone ESX host. My script create full clone of given VM, then creates snapshot on it and starts creating linkedClones from the delta vmdk files (it just create new directory for linkedClone VM's and copies those delta files to new location and then point it to base disk, nothing magic here ). Now this script is working perfectly fine for me, and I can power on all the VM's which is pointing to base disk. Later I tried creating linkedClones using vCenter API's as well which seems to be doing the similar thing. So I just want to check with you guys if my script is Ok or thats not the way to do it (this may be unsupported way of creating linkedClones but I just want a way to create linkedClones on standalone esxi host as I may not have vCenter server available everytime) ?
Is there a vSphere CLI [esxcli] or equivalent command available to access the VM console from the esxcli ? I am trying to find a way to include the mgt IP and ssh for the host OS on a VM when ... See more...
Is there a vSphere CLI [esxcli] or equivalent command available to access the VM console from the esxcli ? I am trying to find a way to include the mgt IP and ssh for the host OS on a VM when it boots up. One way that I can think of would be to access the VM console via the ESXi CLI. Another would be to write the same to the vmdk file. Does anyone know how to do either ?
Hi there, We are trying to execute a sample in VMware-vSphere-SDK-5.1.0-774886 built with JDK 1.6b22, but it failed with the following exception. Pls help to solve it. Thanks in advance! Br... See more...
Hi there, We are trying to execute a sample in VMware-vSphere-SDK-5.1.0-774886 built with JDK 1.6b22, but it failed with the following exception. Pls help to solve it. Thanks in advance! Br, Sharnbo [Exception info] D:\changbo\JavaFolder\VMware_vSphere\src\java\JAXWS\samples>java -Djavax.net.ssl .trustStore=%VMKEYSTORE% com.vmware.general.SimpleClient --url https://192.168.1 0.80/sdk --username root --password 12345678 javax.xml.ws.WebServiceException: class com.vmware.vim25.RetrieveServiceContentR equestType do not have a property of the name {urn:vim25}_this         at com.sun.xml.internal.ws.client.sei.BodyBuilder$DocLit.<init>(Unknown Source)         at com.sun.xml.internal.ws.client.sei.SEIMethodHandler.<init>(Unknown So urce)         at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.<init>(Unknown S ource)         at com.sun.xml.internal.ws.client.sei.SEIStub.<init>(Unknown Source)         at com.sun.xml.internal.ws.client.WSServiceDelegate.createEndpointIFBase Proxy(Unknown Source)         at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(Unknown Sour ce)         at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(Unknown Sour ce)         at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(Unknown Sour ce)         at javax.xml.ws.Service.getPort(Unknown Source)         at com.vmware.vim25.VimService.getVimPort(VimService.java:56)         at com.vmware.general.SimpleClient.connect(SimpleClient.java:152)         at com.vmware.general.SimpleClient.main(SimpleClient.java:391) Caused by: javax.xml.bind.JAXBException: {urn:vim25}_this is not a valid propert y on class com.vmware.vim25.RetrieveServiceContentRequestType         at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getElementProper tyAccessor(Unknown Source)         ... 12 more
Hello AutomatetheCloud, We tried the script but it failed to start.. Line 85 char 1 Error: The handle is invalid Code: 80070006 Source: (null) It looks like we get an access denied wh... See more...
Hello AutomatetheCloud, We tried the script but it failed to start.. Line 85 char 1 Error: The handle is invalid Code: 80070006 Source: (null) It looks like we get an access denied when using wscript.stdout.writeline If we replace wscript.stdout.writeline with wscript.echo the script is running. But this results in pressing manually OK a couple of times for every folder the script finds and also not all thinapps get registered. We are going to continue troubleshooting.. We found the error.. you also need to set quotes for the foldername(FileName). (otherwise the Thinreg.exe command failes when using spaces in the file and foldername). Change: MyThinReg = "thinreg " & FileName & " /nodesktoprefresh" To: MyThinReg = "thinreg " & Chr(34) & FileName & Chr(34) & " /nodesktoprefresh" Cheers, Dennis
Hi, My applicaiton is currently sitting inside Virtual machine (Guest OS). With that application I can able to create a RDM lun but I want to map that RDM lun on windows host, so we are going... See more...
Hi, My applicaiton is currently sitting inside Virtual machine (Guest OS). With that application I can able to create a RDM lun but I want to map that RDM lun on windows host, so we are going ahead and performing rescan on the initiator which is used to create that RDM lun. After that rescan how can I check whether current lun arrived on ESX host properly, is there any way programatically we can check..?
And here you can find an updated version of the script that includes the thinreg utility to aviod the flashing desktop. http://automatethecloud.blogspot.com/2012/01/recursive-thinreg-with-no-d... See more...
And here you can find an updated version of the script that includes the thinreg utility to aviod the flashing desktop. http://automatethecloud.blogspot.com/2012/01/recursive-thinreg-with-no-desktop.html
Hi, You're posting in the wrong forum, this is for a custom vSphere Health Check script, not for CIM/SMASH. Try posting your question here http://communities.vmware.com/community/vmtn/develope... See more...
Hi, You're posting in the wrong forum, this is for a custom vSphere Health Check script, not for CIM/SMASH. Try posting your question here http://communities.vmware.com/community/vmtn/developer/forums/managementapi#CIM-SDK Thanks
Thi is related to my other question about where to check the memory/hard drive usage through CIM/SMASH. I THINK this is not possible because VMWare did not implement/populate the classes required... See more...
Thi is related to my other question about where to check the memory/hard drive usage through CIM/SMASH. I THINK this is not possible because VMWare did not implement/populate the classes required to do so. I'm hoping someone will tell me I'm wrong about that But if I'm right...then is it possible to add this functionality to the CIM framework? I have breifed through the CIM Development guide, and get the impression this can be done. However, being new to CIM and having a deadline...there are some things I'm hoping to learn before I invest too much time trying to learn the manual. Remembering that I'M NOT A VENDOR...and only have access to the technology/firmware/SMART/ETC. already existing in my hardware... - Can a new class be added to the CIM framework on ESXi? BRIEFLY...how? (I don't expect a whole tutorial - Can an existing class be told to begin querying the hardware for the information if VMWare is not already doing this?           - Is this a function of VMWare, or the hardware agent (I.e. IBMs server agent for CIM)?           - If so, how ? Thanks! 
Hi, Can I get reference to using result of queryHostPatch_Task in java code Thanks
Hi, ManagedObjectReference t = VIM_PORT.installHostPatchV2_Task(patchManager, null, null, vibUrl, null); TaskInfoState tis = null; do {      TaskInfo ti = (TaskInfo) getManagedObjectPropert... See more...
Hi, ManagedObjectReference t = VIM_PORT.installHostPatchV2_Task(patchManager, null, null, vibUrl, null); TaskInfoState tis = null; do {      TaskInfo ti = (TaskInfo) getManagedObjectProperty(t, "info");      tis = ti.getState();      try {           Thread.currentThread().sleep(1000);      } catch (InterruptedException e) {      e.printStackTrace();           LOG something      } } while(tis != TaskInfoState.success); v.setInstallSuccessful(true); In the above code snippet I find that TaskInfoState is sucess with no exception thrown. But when I check on my esx host, vib didnt install. Can you please suggest how I can check vib's installation status ? I am using esx5.0 ivisor host Thanks.
VMware Standalone Converter 5 will align your disks for you when you import a server. So you could potentially just do a V2V and this will align your disks for you as well as installing the la... See more...
VMware Standalone Converter 5 will align your disks for you when you import a server. So you could potentially just do a V2V and this will align your disks for you as well as installing the latest version of VMware Tools etc. GParted will also align your disks for you, but this is a manual process. Cheers, Paul
I've done this on the customer. But my customer didn't like.... He said : "It's a lot of work ... " Thanks for your help. Nasc NetApp - Enjoy it!
Maybe you will have better luck than I did with that, but I eventually just stood up a single ESX box for the explicite purpose of aligning everything that needed to be aligned and then tore it d... See more...
Maybe you will have better luck than I did with that, but I eventually just stood up a single ESX box for the explicite purpose of aligning everything that needed to be aligned and then tore it down.  If you are using fiber channel storage and you have an extra server this might be the easiest way to go.  If you are using iSCSI storage you could just use a linux virtual machine.
Hello, I have access to NOW site, but the MBRAlign Tools only works with ESX. It doesn't work with ESXi. I'd like to have any kind of direction in which API should I use to develop it to ESXi... See more...
Hello, I have access to NOW site, but the MBRAlign Tools only works with ESX. It doesn't work with ESXi. I'd like to have any kind of direction in which API should I use to develop it to ESXi. Thanks, Nasc NetApp - Enjoy it!
I would check out NetApp's MBRSCAN/MBRALIGN tools if you have access to their NOW site. Hosted
In a situation of DR induction, in which you decide to use 2 Virtual Centers  (one production and one DR site, just mirroring storage), the main problem is the use of dvswitch. In fact, precisely... See more...
In a situation of DR induction, in which you decide to use 2 Virtual Centers  (one production and one DR site, just mirroring storage), the main problem is the use of dvswitch. In fact, precisely the architecture of vSphere, when you go to register on the DR site (even for testing purposes for example) before production mirrored the datastore and then turned off the machines that we are on, they show big problems on the virtual network cards with error "invalid Backin" which means that they do not find references to the new vCenter dvportgroup. And God forbid... Thanks to the functions created by the LUCD about dvswitch this problem can be overcome, although work is required due to the fact that virtual machines with multiple network cards in PROD should have exactly the same networks allocated on DR. The script can be improved especially in the csv export side to this: I left in my case because they are regularly scheduled in other scripts ... but if you want you can assign to array you're working command directly without exporting... and then re-importing. Following is the "scriptone" http://vmgmt.wordpress.com/2011/07/25/automatizzazione-step-di-disaster-recovery-asincrono-relativo-ai-distribuited-virtual-switch/
Hi All, I have to align 425 vmdks from 425 desktops. Nowdays, it is 3x ESXi 4.1 HA Clusters. I wanna create a very simple program using vSphere APIs to make this task. Looking for the API, I... See more...
Hi All, I have to align 425 vmdks from 425 desktops. Nowdays, it is 3x ESXi 4.1 HA Clusters. I wanna create a very simple program using vSphere APIs to make this task. Looking for the API, I believe that I need to use VDDK to accomplish this mission. My questions: 0. I know that I need to create a new vmdk, with the same size from the original. After create it, how I make this alignment? 1. With the alignment done, I need to copy all the contents of the original partition(misaligned) to the new vmdk into the new partition aligned. How to do this? Please, help me, you don need to send me the code, only give a direction .... I appreciate any help! Thanks, Nascimento
Hi all I'm triying to find an answer to a simple question: I'm a programmer that is using the vsphere api in order to create an internal "cloud" with some features, including snapshot of th... See more...
Hi all I'm triying to find an answer to a simple question: I'm a programmer that is using the vsphere api in order to create an internal "cloud" with some features, including snapshot of the virtual machines. In my infrasturcture I have some storage that implements VAAI. Therefore, the question: do I have to implement something special (from the programing side) in order to take adventage of the VAAI features? (I wonder, some special calls for snapshot or cloning to use the VAAI advantages) thanks a lot Regards
Sorry, I should explain our customers business case: We have 80% floating desktops in 3 pools, 20% physical clients and a roaming profile solution (flex profiles) in combination with folder redi... See more...
Sorry, I should explain our customers business case: We have 80% floating desktops in 3 pools, 20% physical clients and a roaming profile solution (flex profiles) in combination with folder redirection. There are some obstacles in such business cases: Folder redirection is perfect to minimize the profile size, however in combination with thinapp packages we have to manage the dynamically created startmenu, programs menu, quicklaunch bar and desktop icons placement. In short: users want to place their icons where they want. So a technical obstacle with recursive thinapp registration is the menu order and icon placement preservation. We try to manage that by waiting until all thinapps have been registered and recover afterwards placement and order settings. That's the reason why we don't display the screen already because users complain that the icons don't appear where they expect. Another obstacle is - we call it "cross client functionality" - if a user is roaming from a virtual desktop  to physical client with not the identical software base (native installed and thinapps). To manage that we deregister thinapps on logoff (so folder redirection won't carry those settings to a physical client). The menu order and icon placement preservation should be stored client specific ( but actually this doesn't work as expected...). How do you guys manage those things? Are there any out-of-the-box solutions?