Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am using vSphere 5 java SDK for provision vmware. I could able to create Linux vmware. But I want to create users inside the newly created Guest vmware?

Is there any API to create users?

share|improve this question
add comment

2 Answers

Such an API does not exist. This needs to be handled outside of the vSphere framework itself. Using a follow-on script to handle post-startup config is a pretty solid way of handling further customizations needed.

share|improve this answer
add comment

This should be possible using the StartProgramInGuest method in GuestProcessManager.

http://pubs.vmware.com/vsphere-50/index.jsp?topic=/com.vmware.wssdk.apiref.doc_50/vim.vm.guest.ProcessManager.html

See this tread for an example:

http://communities.vmware.com/message/1836761

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.