vmware converter で Linux 機を P2V するときは、基本的に移行元 Linux 機に SSH で root ログインできる必要があります。
しかし、root のパスワードを教えたくないなどのときには、設定ファイルを書き換えることによって sudo が使えるようになります。
converter-worker.xml
ファイル内に <useSudo>false</useSudo>
という項目がありますので、これを <useSudo>true</useSudo>
に書き換えて保存し、vmware-converter-worker のサービスを再起動します。
これによって converter が sudo を使うようになりますので、root 以外の、sudo が使用可能なユーザでログインして P2V ができます。
設定ファイル内にはこのように記述があります。
Flag to indicate whether to use non-root login + sudo during Linux P2V
Normally during Linux P2V, the user needs to provide a root login to the source in order to query and clone it.
However with this flag set to true, a user could provide a non-root login instead and Converter will use "sudo" to run priveleged commands on the source.
Important to note: when using "sudo", the user has to make sure by herself that nothing on the source is blocking "sudo" from remote without a sudo password.
E.g. they have to make sure no password is requrired when the non-root user is using "sudo". And also make sure "sudo" can be used without tty (comment out the line "Default requiretty" in the source's /etc/sudoers)
sudo の環境にも制限があり、/etc/sudoers
ファイル内で NOPASSWORD をつけておかないといけません。sudo するときにパスワードなどの入力が発生しないようにしておく必要があります。これだけ設定しておけば、root でなくても converter の作業を進めることができます。
関連: