need to migrate vms on ahv (intra cluster) | Nutanix Community
Skip to main content
Solved

need to migrate vms on ahv (intra cluster)


Forum|alt.badge.img+1

i want to migrate VMs from ahv to ahv in the same cluster (let say from node A to node B) but the VMs status is powered off, in my case i dont want to powered on the VMs, i just want to migrate the VMs to another host without powered it on(live migrate). 

is there any workaround to do that ?

Thank you all

Best answer by mikkisse

When you delete the affinity rule, your VM can be started on Node A next time. 

If VM is powered off, as Jeroen said, VM is not bound to any host. Powered-off VMs are not located on any of the hosts.

The location (Node A/B/C) of the VM is decided by the Acropolis Dynamic Scheduler during VM powering on.

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

10 replies

JeroenTielen
Forum|alt.badge.img+8

Turned off vm’s are not bound to a host. So what you want isnt possible. Turned off vm’s are only using storage. 


Forum|alt.badge.img+1
  • Author
  • Trailblazer
  • 12 replies
  • July 23, 2024
JeroenTielen wrote:

Turned off vm’s are not bound to a host. So what you want isnt possible. Turned off vm’s are only using storage. 

so, i can’t move or change the VMs from Node A to Node B while the VM is turned off ? 

can i move the vm host from Node A to Node B so when the VM is up, the status is changed from Node A to Node B ?


mikkisse
Forum|alt.badge.img+4
  • Vanguard
  • 107 replies
  • July 23, 2024

Hello.

There is no such thing as migrating a powered-off VM and you don’t need manage it (I assume you consider it the same as in VMware).

If you want to make sure that VM will be started on the specified group of hosts, you can use affinity rules and “pin” this VM (It’s not recommended, but sometimes it may be a requirement).

This will not “migrate” the VM, but will limit the options for where the VM can work.

 

 


Forum|alt.badge.img+1
  • Author
  • Trailblazer
  • 12 replies
  • July 23, 2024
mikkisse wrote:

Hello.

There is no such thing as migrating a powered-off VM and you don’t need manage it (I assume you consider it the same as in VMware).

If you want to make sure that VM will be started on the specified group of hosts, you can use affinity rules and “pin” this VM (It’s not recommended, but sometimes it may be a requirement).

This will not “migrate” the VM, but will limit the options for where the VM can work.

 

 

Thank you, can i use this workaround for temporary purposes, after turned on the VM and then i unpin the vm from targeted host, and also delete the affinity rules  


mikkisse
Forum|alt.badge.img+4
  • Vanguard
  • 107 replies
  • July 23, 2024

What are you exactly trying to achieve with that?

 

 

 


Forum|alt.badge.img+1
  • Author
  • Trailblazer
  • 12 replies
  • July 23, 2024
mikkisse wrote:

What are you exactly trying to achieve with that?

 

 

 

i just want the VM is changed/move from Node A to Node B (the vm status is currently off and i dont want the VM is live migrate), but without using vm affinity feature (or if required to use affinity rules, can i use this workaround for temporary purposes, after turned on the VM and then i unpin the vm from targeted host(Node B), and also delete the affinity rules)


mikkisse
Forum|alt.badge.img+4
  • Vanguard
  • 107 replies
  • Answer
  • July 23, 2024

When you delete the affinity rule, your VM can be started on Node A next time. 

If VM is powered off, as Jeroen said, VM is not bound to any host. Powered-off VMs are not located on any of the hosts.

The location (Node A/B/C) of the VM is decided by the Acropolis Dynamic Scheduler during VM powering on.


Forum|alt.badge.img+1
  • Author
  • Trailblazer
  • 12 replies
  • July 23, 2024
mikkisse wrote:

When you delete the affinity rule, your VM can be started on Node A next time. 

If VM is powered off, as Jeroen said, VM is not bound to any host. Powered-off VMs are not located on any of the hosts.

The location (Node A/B/C) of the VM is decided by the Acropolis Dynamic Scheduler during VM powering on.

Thank you so much mikkisse for your response


mikkisse
Forum|alt.badge.img+4
  • Vanguard
  • 107 replies
  • July 23, 2024

If you use acli vm.get vm_name, you may see, that powered off VM don’t has attributes host_name and host_uuid, while powered on has.

 

 

Forum|alt.badge.img+1
  • Author
  • Trailblazer
  • 12 replies
  • July 23, 2024
mikkisse wrote:

If you use acli vm.get vm_name, you may see, that powered off VM don’t has attributes host_name and host_uuid, while powered on has.

 

 

Noted, Thank you once again