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

i want to migrate VMs from ahv to ahv in the same cluster (let say from node A to node 😎 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

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


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 ?


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.

 

 


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  


What are you exactly trying to achieve with that?

 

 

 


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 😎, and also delete the affinity rules)


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.


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


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.

 

 

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