How to reset the Linux OS password with the module? Print

  • 0

To reset the Linux OS's password with the VMware module, you have to configure/setup the module cron file with your WHMCS server cron job setting.

With our module, you can see that we are providing some cron files. You have to configure these files with your server cron job setting.

Set the cron command like this PHP -q /your whmcs dir path/crons/update_vm_root_pw.php

Set this cron command with an interval of 5 minutes.

Note This cron script will only set the password for Centos, Ubuntu, Almalinux, Debian, Rhel, Cloudlinux, Kalilinux operating systems.

 

Please also make sure of the things given below with the created VM.

1. Internet must be working on the VM

2. Make sure you are able to make SSH connection using existing VM template password with assigned IP.

3. Assigned IP must be reachable from your WHMCS server and there will not be any restriction on your WHMCS server to make SSH connection with VM IP and port.

4. "update_vm_root_pw.php" cron must be configured with your WHMCS server. If cron is configured but still not working then try to hit that file manually via command line or with browser (if your crons folder exists under public path)

Command:

php -q /your crons folder path/crons/update_vm_root_pw.php

Cron URL:

https://yourwhmcsurl/crons/update_vm_root_pw.php

5. SSH port must be 22 with the VM template.

Note. Most important your VM template names must include correct name like centos, ubuntu, alma or almalinux, debian, rhel, cloudlinux or cloud, kali or kalilinux in your vCenter. If there any spelling mistake in your vm template then must correct it in your vCenter and update correction update that VM template name with configured VM template under VMware addon module >> OS Mapping >> VM Clonning/Mapping . To make test place new order with fresh VM because module storing data in custom DB table "mod_vmware_pw_linux_vm". 


Was this answer helpful?

« Back