Jump to content

omidkosari

Member
  • Posts

    6
  • Joined

  • Last visited

About omidkosari

omidkosari's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. Yes it solved . Silly mistake . You should write the username vsphere.local\user1 instead of user1@vsphere.local - - - Updated - - - But now another problem appeared . When the script tries to create a VM following fatal error appears . Fatal error: Uncaught SoapFault exception: [serverFaultCode] The object has already been deleted or has not been completely created in /var/www/mysite.com/public/modules/servers/aisovmwarededsrv/aisovmwarededsrv.php:0 Stack trace: #0 /var/www/mysite.com/public/modules/servers/aisovmwarededsrv/aisovmwarededsrv.php(0): SoapClient->__call('FindChild', Array) #1 /var/www/mysite.com/public/modules/servers/aisovmwarededsrv/aisovmwarededsrv.php(0): VMwareAPI->AutoProvisionVM() #2 /var/www/mysite.com/public/includes/modulefunctions.php(0): aisovmwarededsrv_CreateAccount(Array) #3 /var/www/mysite.com/public/admin/clientshosting.php(0): ServerCreateAccount() #4 {main} thrown in /var/www/mysite.com/public/modules/servers/aisovmwarededsrv/aisovmwarededsrv.php on line 0
  2. Yes. $maryVMwareConsoleTempUsers = Array("user1@vsphere.local"=>"123456","user2@vsphe re.local"=>"123456"); $mstrVMwareConsoleTempUserToCopyRoleFrom = "user1@vsphere.local"; both users user1@vsphere.local and user2@vsphere.local created in vcenter . Then created an unused vm . for that vm Manage -> Permissions -> ADD -> Domain : VSPHERE.LOCAL -> user1@vsphere.local -> Assigned Role = WHMCSROLE But the script still could not find the RoleId . Can you explain how did you this steps ?
  3. A client can reboot,poweroff,poweron,etc his vm but when tries to VM Console an error appears "Could not set console user to vm, please contact us." . In source of that page it shows a html comment "Could not get VMware Role ID" .
  4. Thanks for help . Yes i have created user but i guess the problem is there . can you guide me please . What i did . I have used administrator@vsphere.local with vCenter IP address to add new server with the type "Aisovmwarededsrv" in whmcs configuration . This part works fine because i can see in the logs of vCenter and also i can power off/on existing VMs. Then in vCenter > Administration > User and Groups added user1 and user2 and in aiso-vmware-settings.php $maryVMwareConsoleTempUsers = Array("user1@vsphere.local"=>"123456","user2@vsphere.local"=>"123456"); $mstrVMwareConsoleTempUserToCopyRoleFrom = "user1@vsphere.local"; Then in vCenter > Administration > Roles added a role named WHMCSROLE with permission Virtual Machine->Interaction->Console interaction After that the try and false begins with no success . I did a lots of work but prefer not to say . Any help appreciated . Thanks
  5. It looks interesting . I am trying to install trial version . now a client can reboot,poweroff,poweron,etc his vm but when tries to VM Console an error appears "Could not set console user to vm, please contact us." . In source of that page it shows a html comment "Could not get VMware Role ID" . Anybody could help ?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated