Hi All,
I'm trying to change the hostname of a linux VM. but it fail to set the hostname, i'm not sure how to set VcCustomizationName.
var myVcCustomizationLinuxPrep = new VcCustomizationLinuxPrep();
var myVcCustomizationName = new VcCustomizationName();
myVcCustomizationLinuxPrep.domain="mylocaldomain";
myVcCustomizationName="MyCustVM3";
myVcCustomizationLinuxPrep.hostName=myVcCustomizationName;
custspec.identity=myVcCustomizationLinuxPrep;
newVM.customizeVM_Task(custspec);
Can anyone help to solve this issue?
Also, how to change the root password?