Hi Stumpr,
You are right but if i looked into various object its seems i end up with some of the parameter which is mandatory.
Like
CustomizationSpec->new(
# encryptionKey => "",
identity => $customization_sysprep,
globalIPSettings => $customization_global_ip_settings,
nicSettingMap => \@ifconfig
);
$customization_sysprep = CustomizationSysprep->new(
guiUnattended => $customization_gui_unattended,
identification => $customization_identification,
userData => $customization_user_data
);
In CustomizationSysprep its looks like the field mentioned in the userData => $customization_user_data is mandatory and could not be avoid, can you please let me know if its possible.
my $customization_user_data = CustomizationUserData->new( |
computerName => $customization_name, |
fullName => $fullname, |
orgName => $orgname, |
productId => $licensekey |
Apart from computerName rest of the things can be taken as it is. but when we ran without this parameter it report failure.
Due to such delay in deployment of VM from template, we are trying to deploy VM using Linked VM. i.e VM->Snapshot->Linked VM, this works great in Linux but in windows it still takes 6 minutes, during boot-up process i noticed that windows machines perform all the task which initial windows machine takes, i.e setting up video driver, preparing network connect, just like we start windows first time also it perform reboot during this time which adds up to time. is it the expected behavior in windows? We have got the script from ghetto on which i have added get_customization_spec subroutine from template2vm.pl.
Can you please let me know how can we optimize time to deploy using linked VM on windows.
I am very thankful to you for the valuable comment and suggestion you extended to me, appreciated.
Please find the linked VM creation script and the option we use for windows.
deplyVMLinked.pl --server vcenter1.company.com --username admin--vmhost host.company.com --vmname macs6161 --vmname_destination msc6161CLD --snapname Wx64Gold --password <pwd> --dnsdomain company.com --gateway <ip address> --dnsservers <ip address> --netmask <ip address> --ipaddress <ip address> --datastore pool1_LUN_004 --resourcepool cloud-company --domain company.com --plaintextpassword --guestid windows7_64Guest --customize_guest yes --domainuserpassword <ip address> --domainuser admin --autologon --localadminpwd <pwd>
What is missing/require in windows section of customization I appreciate your quick response.
Thanks,
Nilesh