VMware Cloud Community
Richmand
Contributor
Contributor

How can I change the password policy in catalog template

In the catalog template, I can not change the password policy

But, I can change the password policy of the vm in vapp

Now, I want to change the password policy of the vm in the catalog template. so that I can fix the password when I allocate vm.

0 Kudos
3 Replies
Richmand
Contributor
Contributor

In the catalog template,the password policy of the vm can not be changed

0 Kudos
Richmand
Contributor
Contributor

pic

0 Kudos
cfor
Expert
Expert

This is not an official way - and I have not done testing on it (so use information at your own risk).

It seems this information is stored in the vcloud database ... so you might be able to tweak the settings in the database - however I would contact VMware support first to make sure this is ok as I can not speak for what all this will do.

Query showing the info from the database:

select
  vapp.name,
  vm.name,
  gpi.admin_password,
  gpi.admin_password_enabled,
  gpi.admin_password_auto
from guest_personalization_info gpi with(NOLOCK)
join vm with(NOLOCK) on vm.id = gpi.vm_id
join vm_container vapp with(NOLOCK) on vapp.sg_id = vm.sg_id and vapp.sg_type=2
where vapp.name = 'MyVapp Name'
ChrisF (VCP4, VCP5, VCP-Cloud) - If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful