To resolve this issue on a virtual machine, manually add the double quotes to the DOMAIN:
- Open the /etc/sysconfig/network-scripts/ifcfg-eth0 file with a text editor.
- Edit the DOMAIN entry adding double quotes around the domain entry:
For Example:
DOMAIN="temp.domain.com name.domain.com domain.com"
- Save the file and reboot the virtual machine.
To correct this issue for future template deployments, edit the RHEL6Customization.pm file on the vCenter Server machine:
1. Open the RHEL6Customization.pm file in a plain text editor.
Note: The file is located at:
Windows: C:\Program Files\VMware\vCenter Server\vpxd\imgcust\linux\imgcust-scripts\RHEL6Customization.pm
vCenter Server Appliance: /usr/lib/vmware-vpx/imgcust/linux/imgcust-scripts/RHEL6Customization.pm
2. Change the following line:
push(@content, "DOMAIN=" . join(' ', @$dnsSuffixes) . "\n");
to:
push(@content, "DOMAIN=\"" . join(' ', @$dnsSuffixes) . "\"\n");
3. Save the file.