Hellow Guys,
I have a perfect customization spec. Working very good with rhel6 and centos6.
My problem started when I need to test the spec with the rhel7 or centos7.
Below, a litter bit the my code:
var myCustomizationFixedName = new VcCustomizationFixedName(); myCustomizationFixedName.name = HOSTNAME; //------------------------------------------------------------------------------------------ // Fixa o hostname e domain //------------------------------------------------------------------------------------------ var myCustomizationLinuxPrep = new VcCustomizationLinuxPrep(); myCustomizationLinuxPrep.domain = dnsDomain; myCustomizationLinuxPrep.hostName = myCustomizationFixedName; //------------------------------------------------------------------------------------------ // Cria um Custom Spec e attach os objetos de rede, DNS e adapter //------------------------------------------------------------------------------------------ var myCustomizationSpec = new VcCustomizationSpec(); myCustomizationSpec.identity = myCustomizationLinuxPrep; myCustomizationSpec.globalIPSettings = attGlobalIPSettings; myCustomizationSpec.nicSettingMap = attNicSettingMap; cloneSpec.config = configSpec; cloneSpec.customization = myCustomizationSpec;
When I use this spec, the VMware Orchestrator create the Virtual Machine, configure IP but doesn't configure the HOSTNAME. The problem it's!!!! Doesn't configure HOSTNAME.
Somebody already had this problem?
Thank very much!!!!