Hi Team,
We are using vijava5120121125.jar currently in our project to do below operations from our java based web application.
1)Mounting ISO image/Floppy image to CD-ROM : using "VirtualMachineManager.editCDROM(vm, OPTICAL_DRIVE_1,dataStoreName, isoFileName);"
2)Powering Off Vm: using "vmMgr.powerOff(vm);"
3)Powering ON Vm: using "vmMgr.powerOn(vm);"
4)Mounting our webserver as NFS data store on ESXI.: using "addNFSDataStore API from com.cisco.cibu.virtualization.manager.HostManager package"
We need some details about the API's we are using:
1)Mounting ISO image/Floppy image to CD-ROM USING VirtualMachineManager.editCDROM
Upon using the above command for mounting ISO/flopy image to the vm on ESXI, we are not able to get to know the failures upon mount. I mean upon ISO/Floppy mount, using "editCDROM" command does not give any failure upon mounting failures. The failures we can only see in the ESXi logs as below:
1)Cannot connect file "/vmfs/volumes/63544923-98453c52/filename.iso" as a CD-ROM image: Input/output error
2)InvalidDatastore
3) Insufficient permission to access the file
Can you please let us know how can we get the above error status from the API's after the usage of editCDROm command.So that these errors can be displayed in our application immediately. And also what could be the reasons for these errors and what would be the solution as well to fix these issues.
2)webserver adding as NFS datastore to ESXi:
While adding our webservers as NFS datastore to ESXI, sometime the NFS mount does not happen and we does not know what is the cause for it and how to resolve it a swell. Can you please let us know are there any API's to get to know about excat failure and also tell us few suggestions that what could be the reasons for failures.
Also please reply us if any link is there which talks about different API's that can be used.
Please let us know any more information requires.
Thanks In Advance,
Anjana
Hi,
I'm no developer, but from their pages at Sourceforge (VMware Infrastructure (vSphere) Java API) there was a beta-release of vijava supporting vSphere 5.5 released back in 2013. No new and especially final releases anymore since then.
You are using the final version compatible up to vSpehere 5.1. So maybe it's just a version conflict here and that's why you get the errors?
The error messages you get in logfiles are pretty straight-forward, all more or less access/permission errors.
cykVM
Thanks for the info. But I want to know that can we get any status after using the below API's from the ESXi, whether the mount is success or failure? And the below mentioned errors were I was facing in 5.1 ESXi only. Permission is the one which is very straight forward but not sure about the other two. How can we resolve those? And also the main concern here is, to know about the status of the API upon usage, so that the application can get to know the failures immediately other than opening the ESXi and watching it for status.
Regards,
Anjana
Message was edited by: Newbie407
Maybve you should contact the developer of that Java API then, he should know if this is possible or not.
Any link to any other community where developers can engage and answer my queries??
Following the discussions in vijava's forum (see: VMware Infrastructure (vSphere) Java API / Discussion / Discussion) the project seems to be kind of dead.
But some guy on that forum made a fork of the 5.5 beta release and he's maintaining that on Github, see: VMware Infrastructure (vSphere) Java API / Discussion / VI Java API:should i stop using vijava?
or even: michaelrice/yavijava · GitHub
This seems to be still active and under development.
Thanks for the info. I will try there .