Forum
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC:

VM automatically start after shuttding down 10 years 10 months ago #6

  • Sunil Tumma
  • Sunil Tumma's Avatar Topic Author
  • Offline
  • Posts: 4
Hi,

I have recently configured HA for the Pool using HA-Lizard. When i am manually shutting down the VM, it automatically starts in 10 to 15 seconds. How to disable this option.


Thanks
Sunil Tumma

Please Log in or Create an account to join the conversation.

Last edit: by Sunil Tumma. Reason: Correction

VM automatically start after shuttding down 10 years 10 months ago #7

There are several ways to prevent a VM from auto-starting.

(1) When HA-Lizard is using the default settings and is configured for operating mode 2 (OP_MODE=2), all VMs within the pool are automatically managed by HA-Lizard. To prevent a specific VM from starting you can:
Set GLOBAL_VM_HA to 0 (using the CLI "ha-cfg set GLOBAL_VM_HA 0"). This tells HA-Lizard to no longer manage ALL VMs by default. You must now configure HA for each VM within the pool individually with the CLI (or XenCenter. If using XenCenter - read the documentation for properly configuring the required HA-Lizard fields within XenCenter).
Using the CLI:
check the HA status of each VM with "ha-cfg get-vm-ha"
Set the HA status of each VM with "ha-cfg set-vm-ha <true/false>"
In your case you would set the HA status to "false" for the VM you are rebooting and "true" for each managed VM.

(2) Consider switching to operating mode 1 (OP_MODE=1). In this case HA-Lizard does not manage individual VMs. Instead it will manage all appliances in the pool. This mode allows you to control HA status by simply assigning/removing VMs from appliances. The benefit here is that you can fully control HA via XenCenter and also benefit from VM start order/priority logic that is part of an appliance.

To prevent a VM from auto starting simply do not assign it to any appliance withing the pool.

Please post your results so others can benefit.

Please Log in or Create an account to join the conversation.

VM automatically start after shuttding down 10 years 10 months ago #8

  • Sunil Tumma
  • Sunil Tumma's Avatar Topic Author
  • Offline
  • Posts: 4
Thanks for the quick reply.

If i change the OP_MODE to 1, do i need to configur HA for invidual Host/Applicance using XenCentre or it will be automatically enabled for Host/Applicance and how to remove/assign a VM from Host/Appplicance to prevent auto start.

I have 2 XCP Server added in one Pool.

Please Log in or Create an account to join the conversation.

VM automatically start after shuttding down 10 years 10 months ago #9

If you set OP_MODE=1 then you should have at least one appliance created for the pool. Add any VMs that you want managed to this appliance. If you don't want a VM to be managed, simply exclude it from the appliance. You can create as many appliances as you need. All will be automatically detected by HA-Lizard and their VMs will be managed.

If you have appliances that you do Not want managed by HA-Lizard, the UUID of any appliances to be ignored should be set in the DISABLED_VAPPS settings (see documentation for using this feature). This is useful in cases where VMs need to be part of an appliance but not be managed by HA-Lizard.

Apart from setting OP_MODE=1, all of this can be done within XenCenter. Simply add/remove VMs from appliances to enable/disable HA per VM. Nothing else is required.

PLEASE NOTE: Any HA related settings within XenCenter that are not created by HA-Lizard pertain to the licenced HA feature from Citrix. These settings have no impact on HA-Lizard.
The following user(s) said Thank You: Robert Adams

Please Log in or Create an account to join the conversation.

VM automatically start after shuttding down 10 years 10 months ago #10

  • Sunil Tumma
  • Sunil Tumma's Avatar Topic Author
  • Offline
  • Posts: 4
Thanks for the reply. I am really sorry for asking this Question.

How to create a appliance? r u taking about the physical 2 hosts which i have or any thing else.

As i already mentioned in the previous discussion, i have 2 XCP servers added in 1 Pool.

Thanks again.

Please Log in or Create an account to join the conversation.

Last edit: by Sunil Tumma.

VM automatically start after shuttding down 10 years 10 months ago #11

If you are managing your hosts with XenCenter, create a new "vApp".

Highlight the pool name on the left window in XenCenter and rightclick. Select "Manage vApps" and proceed to create a new vApp. Once created, follow the steps in the previous post about adding VMs to the vApp to make them managed. Any VMs that are not part of the appliace will not be managed and will solve your problem with not being able to power off a VM for more than a few seconds.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2