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
need to migrate vms on ahv (intra cluster)
Turned off vm’s are not bound to a host. So what you want isnt possible. Turned off vm’s are only using storage.
![Neighborly Badge](https://uploads-us-west-2.insided.com/nutanix-us/attachment/3e130f3b-3c5e-4d36-980d-b905195225da_thumb.png)
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.
![](https://uploads-us-west-2.insided.com/nutanix-us/attachment/44975452-5927-454a-a1cf-ed6ab88c444f.png)
![Neighborly Badge](https://uploads-us-west-2.insided.com/nutanix-us/attachment/3e130f3b-3c5e-4d36-980d-b905195225da_thumb.png)
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.
![](https://uploads-us-west-2.insided.com/nutanix-us/attachment/44975452-5927-454a-a1cf-ed6ab88c444f.png)
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
![Neighborly Badge](https://uploads-us-west-2.insided.com/nutanix-us/attachment/3e130f3b-3c5e-4d36-980d-b905195225da_thumb.png)
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)
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.
![Neighborly Badge](https://uploads-us-west-2.insided.com/nutanix-us/attachment/3e130f3b-3c5e-4d36-980d-b905195225da_thumb.png)
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.
![Neighborly Badge](https://uploads-us-west-2.insided.com/nutanix-us/attachment/3e130f3b-3c5e-4d36-980d-b905195225da_thumb.png)
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
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.