Hi all,
at the moment I am performing a shutdown by mean of
XenAPI.VM.hard_shutdown(_session, byVnUUID);
When a Virtual Machine has never been migrated the reference of a stopped machine remains by calling xm list.
On the other side if the machine has been migrated at least once by mean of
XenAPI.VM.migrate(_session, byVnUUID, hostname, live,
null);
the very same shutdown command destroys completely the virtual machine.
Why this behavior?
P.S.
Disk image is on a storage shared by all xen hosts and these are the config on xml
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>