Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Create VMs in antiaffinity layers for high availability

Before you begin, design your layers:

  • You cannot rename a layer when there are deployed VMs in the layer

  • You cannot move a deployed machine into a layer with a VM deployed on the same hypervisor

To create a layer:

  1. Go to myCloud → Virtual datacenters

  2. Open a virtual appliance and go to Virtual machines

  3. From the options menu, select Add a layer 

  4. Enter the Name

  5. Add VMs to the layer 

...

Layers ensure that VMs deploy on separate hypervisors, so the following rules apply:

...

Layer type

...

Rules

...

New layer

...

  • You can add any VM to a new layer

...

Layer with deployed VMs

...

  • You can add a VM that is not deployed

  • You can add a powered-off VM if it deployed on a different hypervisor from the other VMs in the layer

...

Different layer

...

  • You cannot move a deployed VM directly to a different layer. First, power off the machine and remove the machine from the old layer, then delete the old layer.
    Now you will be able to add the machine to a different layer.

Web stack use case for layers

The following diagram shows a possible anti-affinity layers use case of a simple web stack.

...

In Abiquo, you could deploy this configuration as follows:

  • ApplicationServers layer: Tomcat1, Tomcat2

  • DatabaseServers layer: Database1, Database2

VMs not in layers: Apache server(s), firewall, load balancer

If the deploy of a virtual appliances with layers fails, it may be because there are not enough physical machines available in your virtual datacenter. Or some physical machines may be reserved for specific enterprises, for example. Check with your system administrator.See Create VM layer

...

Modify a virtual appliance with antiaffinity layers

...

To change the name of a layer:

  1. Check that all the VMs in the layer are not deployed, which means they are in the NOT_ALLOCATED state. For example, they are new in a virtual appliance that is deployed or they are in a virtual appliance that has been undeployed.

  2. Next to the layer name, click the pencil Edit button. 

  3. Enter the new layer name

...

To remove a VM that is not deployed from an anti-affinity layer, drag the machine outside the layer and into the general VM area

...

To remove one or more deployed VMs from a layer:

  1. Shut down the VMs 

    • You do not have to wait for each one to finish shutting down before moving to the next one

  2. One by one, drag each VM out of the layer into the general VM area

...

To delete a layer:

  1. Power off all the VMs

  2. Remove all the VMs except one from the layer

  3. Delete the layer

The layer will be deleted and the VM will be moved to the general VM area. 

...

To move a deployed VM to a different layer:

  1. Power off the VM

  2. Move the VM to the general VM area

  3. If the new layer does not already exist, create the new layer

  4. Add the VM to the new layer