[Openstack] Migration of 2 VMs to the same Compute node

Adnan Smajlovic a.smajlovic at gmail.com
Mon Feb 16 15:55:38 UTC 2015


On 16 February 2015 at 14:22, Christian Berendt <christian at berendt.io>
wrote:

> On 02/14/2015 06:54 PM, Daniel Spiekermann wrote:
> > is it possible to migrate 2 different VMs to the same compute node?
>
> Have you tried it with nova live-migration or only with nova migrate?
>
> With nova live-migration it is possible to specify the target host.
>
> usage: nova live-migration [--block-migrate] [--disk-over-commit]
>                            <server> [<host>]
>
> Migrate running server to a new machine.
>
> Positional arguments:
>   <server>            Name or ID of server.
>   <host>              destination host name.
>
> Christian.
>

Initially I thought that the server group affinity filter (available since
Icehouse) would be suitable for the use case you have outlined: -
http://docs.openstack.org/trunk/config-reference/content/section_compute-scheduler.html#servergroupaffinityfilter

However it seems that it is currently only honoured at boot and updated for
the upcoming Kilo release -
https://blueprints.launchpad.net/nova/+spec/anti-affinity-on-migration.
Until then live migration may indeed be your only way to achieve the
required affinity behaviour.

Regards,

--
Adnan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20150216/c02baa83/attachment.html>


More information about the Openstack mailing list