Article ID: 6592, created on Aug 7, 2009, last review on May 8, 2014

  • Applies to:
  • Virtuozzo containers for Linux 4.0

Symptoms

In 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 technologies
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

Cause

Actual 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.

Resolution

To '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

35c16f1fded8e42577cb3df16429c57a d02f9caf3e11b191a38179103495106f e8e50b42231236b82df27684e7ec0beb 2897d76d56d2010f4e3a28f864d69223

Email subscription for changes to this article
Save as PDF