Disable vms from HA

powersupport

Active Member
Jan 18, 2020
278
2
38
30
HI,

Is there any way in proxmox to disable all VMs in HA altogether?

Thank you
 
Hi,
what do you mean by disable all VMs in HA, could you elaborate a bit more on what you want to achieve?
 
Hi,

you mean remove all services from being HA managed in a single step?

The web UI/API and CLI only allows for removing a service at once, but if you want to remove all you can simply remove the whole config where it's defined which service should be managed by HA, e.g.:
Bash:
rm /etc/pve/ha/resources.cfg

Note that it might need a few minutes until that went through to all notes, and the run-status of the VMs & CTs themselves should not be affected by this.
 
  • Like
Reactions: Chris
Hi,

May I know if it is risky to do that? will any other services affected?

Also, rename the file and add back later will work?

Thank you
 
May I know if it is risky to do that?
I don't know anything about your setup so cannot give a definitive answer, but as removing services from being managed by the HA stack isn't inherently risky, doing so en masse isn't really either.
will any other services affected?
What do you mean with "other services"?
Also, rename the file and add back later will work?
Yes, that will also work.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!