Enabling the use of a non-root user for hot cloning of a Linux source machine
search cancel

Enabling the use of a non-root user for hot cloning of a Linux source machine

book

Article ID: 329067

calendar_today

Updated On:

Products

VMware

Issue/Introduction

By default, VMware vCenter Converter Standalone requires a root login to the source machine for Linux conversion tasks. However, you can also use non-root credentials after enabling the use of sudo and modifying the source machine to allow the sudo command to be executed.



Environment

VMware vCenter Converter Standalone 4.3.x
VMware vCenter Converter Standalone 4.0.x
VMware vCenter Converter Standalone 5.1.x
VMware vCenter Converter Standalone 5.0.x
VMware vCenter Converter Standalone 6.x

Resolution

1. Enable the use of sudo during conversion of Linux source machines.

  1. Browse for the converter-agent.xml and converter-worker.xml files in the following locations:
    • If Converter Standalone runs on a Windows system, go to %ALLUSERSPROFILE%\Application Data\VMware\VMware vCenter Converter Standalone\ or C:\ProgramData\VMware\VMware vCenter Converter Standalone 
  2. Open the converter-agent.xml file in a text editor and change the useSudo flag from false to true.
  3. Open the converter-worker.xml file in a text editor and change the useSudo flag from false to true.
  4. Restart Converter Standalone services:
    • To restart the Converter Standalone Worker, open the Services section in the Microsoft Management Console, find the VMware Converter Standalone Worker service and restart.
    • If Converter Standalone Agent runs on a Windows platform, open the Services section in the Microsoft Management Console, find the VMware Converter Standalone Agent and restart it.
    • Alternatively, instead of restarting Converter Standalone agent, you can reboot the system to make the changes to converter-agent.xml take effect.

2. Set up the source machine to allow the sudo command to be executed without prompting for a password, and without requiring a real tty, for example:

  1. Add the following entry to /etc/sudoers to replace username with the non-root user's name:

username ALL=(ALL) NOPASSWD: ALL

  1. Make sure the following entry is not present in the /etc/sudoers file:

Defaults requiretty

In case the file contains this entry, comment it out.

Note: The sudoers configuration might vary by system. For Ubuntu operating systems further configuration is needed. Target the specific user you are using and assign it user id 0/group 0. Ensure that you also enable Allow root to ssh even though you are not using the root account.

Additional Information

For translated versions of this article, see: