VMware Cloud Community
Yyy_wanna
Contributor
Contributor
Jump to solution

Custom Script modifies Ubuntu18.04

Hi,everyone:

     It has something wrong with running script on Ubuntu18.04, it cannot be automatically connected after deployed,but others could.

     Here is some screenshots.

pastedImage_0.png

Description:

On the afternoon of 2020/01/17 5:22:52

An error occurred setting the network properties for the client operating system.For more information, see the log file /var/log/vmware-imc/ toolsdeploypkk.log in the client operating system.

Event type description:

The custom script cannot set parameters in the corresponding Linux configuration file or Windows registry

Possible reasons:

Custom specifications contain invalid hostname or domain name operations: provide a valid hostname for the target client operating system.The name must conform to the hostname and domain name definitions in RFC 952, 1035, 1123, 2181.

Unable to find NIC operation with MAC address specified in custom packet: verify that the virtual machine NIC MAC address was not changed during the creation and deployment of custom packet.After dispatching the custom packets, they are deployed when the virtual machine is first booted.

Custom code requires read/write permissions for certain configuration files.These permissions are not granted to the "root" account on Linux or to the account used by VMware Tools Service on the Windows client operating system.Action: grant read/write privileges to a "root" account on Linux, or to an account used by VMware Tools Service on a Windows client operating system, along with registry keys that need to be modified by custom code

pastedImage_1.png

Event type description:

The custom component cannot set the required parameters within the client operating system

Possible reasons:

On Windows, the user account used to run the custom code does not have read/write rights to the registry keys used by the custom code.Custom code is usually run using a "local system" account, but you can change this account by selecting another account for the execution of VMware Tools Service.Action: determine which user account is selected for the VMware Tools Service execution, and verify that the account has read/write rights to the registry keys used by the custom code

On Windows, the user account used to run the custom code does not have read/write rights to the files and folders used by the custom code.Custom code is usually run using a "local system" account, but you can change this account by selecting another account for the execution of VMware Tools Service.Action: determine which user account is selected for the VMware Tools Service execution, and verify that the account has read/write rights to the files and folders used by the custom code

On Linux, an invalid or unsupported time zone is passed to the custom script, resulting in a failed time zone configuration operation: verify that a supported time zone is passed in the custom specification.

On Linux, the client operating system "root" account does not have read/write rights to the configuration files that the custom script needs to modify (" /etc/hosts ") : the client operating system "root" account is granted read/write rights to these configuration files

On Linux, if you use open-vm-tools, you must also install the deployPkg plug-in to enable client customization.How to: install the open-vm-tools deployPkg plug-in as per the instructions on kb.vmware.com/kb/2075048.

Custom target client operating system operations are not supported: consult VMware to learn when specific Linux distributions will be supported.If the newer version already supports Linux distribution, consider upgrading.

But I can correctly do it with Ubuntu16.04,CentOS7.6 or others. I feel confused about it !

Thanks.

Reply
0 Kudos
1 Solution

Accepted Solutions
jburen
Expert
Expert
Jump to solution

I'm not into Linux but maybe these articles might help: VMware Knowledge Base , VMware Knowledge Base

Consider giving Kudos if you think my response helped you in any way.

View solution in original post

Reply
0 Kudos
1 Reply
jburen
Expert
Expert
Jump to solution

I'm not into Linux but maybe these articles might help: VMware Knowledge Base , VMware Knowledge Base

Consider giving Kudos if you think my response helped you in any way.
Reply
0 Kudos