Knowledge Base

|
Enabling the use of a non-root user for hot cloning of a Linux source machine (1008164)
Details
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.
Solution
1. Enable the use of sudo during conversion of Linux source machines.
- Browse for the
converter-agent.xmlfile in the following locations:- If Converter Standalone runs on a Windows system, go to
%ALLUSERSPROFILE%\Application Data\VMware\VMware vCenter Converter Standalone\. - If Converter Standalone is running on a Linux system, go to /etc/vmware-converter/
.
- If Converter Standalone runs on a Windows system, go to
- Open the
converter-agent.xmlfile in a text editor and change theuseSudoflag fromfalsetotrue.
- Restart Converter Standalone agent.
- If Converter Standalone agent runs on a Windows system, open the Services section in the Microsoft Management Console, find the VMware Converter Agent service and restart it.
- If Converter Standalone agent runs on a Linux system, find the Converter Agent process by running
ps -axu|grep "converter-agent.xml"and terminate it. The Converter Standalone agent starts automatically the next time you initiate a conversion task.
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:
- Add the following entry to
/etc/sudoersto replace username with the non-root user's name:
username ALL=(ALL) NOPASSWD: ALL
- Make sure the following entry is not present in the
/etc/sudoersfile:
Defaults requirettyIn 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 will be using and assign it user id 0/group 0. Ensure that you also still enable Allow root to ssh even though you are not using the root account.
Keywords
Update History
Request a Product Feature
- Updated:
- Categories:
- Languages:
- Product Family:
- Product(s):
- Product Version(s):

