SymptomsIn some rare cases running 'vzmigrate' command under 'sudo' account produces the following error:
[user@SourceNodeHostname:~]$ sudo vzmigrate DestinationNodeHostname 1010
Connection to destination node (DestinationNodeHostname) is successfully established
Moving/copying CT#1010 -> CT#1010, ,  ...
Checking external bind mounts
Check cluster ID
Checking keep dir for private area copy
Checking SLM-only mode
Checking license restrictions
Checking templates for CT
can't exec : No such file or directory
Destination node has not got required packages [can't exec : No such file or directory], use '-f' option
Can't move/copy CT#1010 -> CT#1010, ,  : Destination node has not got required packages [can't exec : No such file or directory], use '-f' option
CauseActual reason of the issue is that 'sudo' environment has no '/usr/sbin' directory in $PATH variable, and therefore 'vzmigrate' utility fails to find and run 'vzmsrc' command.
ResolutionTo 'work-around' this issue please export current $PATH to 'sudo' environment (make sure current account before executing 'sudo' command already has '/usr/sbin' directory in $PATH variable):
# sudo env PATH=$PATH vzmigrate DestinationNodeHostname 1010