Problem with windows vm cloudbase when HA enabled

meocon12

Renowned Member
Aug 7, 2014
23
0
66
Hello,
I used the instructions here:
https://forum.proxmox.com/threads/h...init-for-your-windows-based-instances.103375/
To use cloudbase with windows vm.
I am having the following problem:
Everything is working fine.
But when I used High Availability function, with the windows vm was not able to change the password of the correct vm.
I have edited 2 files:
/usr/share/perl5/PVE/API2/Qemu.pm
/usr/share/perl5/PVE/QemuServer/Cloudinit.pm

With linux virtual machine it still works fine. it looks like it's back to proxmox's default behavior.

I tried disabling HA and it worked fine again.

So when turning on HA cloudinit does it work like normal?
I use the latest version of proxmox 7.4-3.
Can anyone help me?

Thank you!
 
Hello,
I found out that if I turn on the VM and turn on the HA later everything works fine. But when I turn off the VM and turn on the VM again, the virtual machine is password changed.
when turning on HA proxmox will use different code (not the code I custom.)
Can anyone help me?

Thank you.
 
Hi,
not that this it is really not recommended to manually edit these things. Did you use systemctl reload-or-restart pve-ha-crm.service pve-ha-lrm.service after the edits? If you are using a cluster you need to make the edits on all nodes. Also, every upgrade of the qemu-server package will destroy your changes.

For reference, there is an open feature request to implement it properly: https://bugzilla.proxmox.com/show_bug.cgi?id=4493
 
  • Like
Reactions: meocon12
Hi,
not that this it is really not recommended to manually edit these things. Did you use systemctl reload-or-restart pve-ha-crm.service pve-ha-lrm.service after the edits? If you are using a cluster you need to make the edits on all nodes. Also, every upgrade of the qemu-server package will destroy your changes.

For reference, there is an open feature request to implement it properly: https://bugzilla.proxmox.com/show_bug.cgi?id=4493
I tried restarting the same service as you and it worked.
Looks like I have to restart the HA service.

Is there a way to push this functionality to be made fast.

Thank you very much.
 
Is there a way to push this functionality to be made fast.
You can subscribe to the CC-List of the bugtracker entry, but AFAIK, nobody is working on it at the moment.
 
  • Like
Reactions: meocon12
You can subscribe to the CC-List of the bugtracker entry, but AFAIK, nobody is working on it at the moment.
Hello,
Is there a dev community where I can pay them to do this functionality?
I have been manually working with your code editing for at least 3 to 4 years now.
Every time I update pve I have to edit every time.
Thank you!
 
Hello,
Is there a dev community where I can pay them to do this functionality?
Not that I know of, but there might be.
I have been manually working with your code editing for at least 3 to 4 years now.
You could try sending the changes as patches to the developer mailing list, following: https://pve.proxmox.com/wiki/Developer_Documentation
Every time I update pve I have to edit every time.
Thank you!