After we deployed VM guest server by , probably we should modify hostname and ip in guest server. Actually we can do it by VMware SDK API.
Environment: vSphere 4.1 + ESXi4.1 +
vSphere SDK for Perl 4.1 + vmtools
For Windows as a guest serveron VC server
1. Download and extract the sysprep 1.1 (), as well as the Windows Server 2003 Service Pack 1 32-bit Deployment Tools ()
2. Logon to the VirtualCenter Server console (not the VI client)
3. Locate or create the sysprep files folder on the Windows server where VirtualCenter Server is installed:
\Application Data\Vmware\VMware
VirtualCenter\sysprep\
4. Copy extracted files and folders from step 1 to the appropriate sysprep files folder. All the extracted files and folders must be copied into the appropriate folder. Q257813_W2K_spl_X86_EN.exe should be extracted to 1.1 and WindowsServer2003-KB892778-SP1-DeployTools-x86-ENU.cab to svr2003
5. Sysprep is now ready to customize VMware supported Windows guest operating systems
on API server
Please run the script which I wroted
eg: #./customize_windows.pl --server=10.224.106.90 --username=administrator --password=password --vmname=tt --computername=tes --netmask=255.255.255.0 --gateway=10.224.106.1 --ip=10.224.106.67 --productid "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
then boot up guest server.
For Linux as a guest server
on API server
Please run the script which I wroted
eg: #./customize_linux.pl --server=10.224.106.90 --username=administrator --password=password --vmname=testovf --computername=testovf --domain=sz.webex.com --netmask=255.255.255.0 --gateway=10.224.106.1 --ip=10.224.106.15 --timezone=Asia/Shanghai --dnsdomain webex.com.cn --dnsserver 10.224.106.22:10.224.106.23
then boot up guest server.
|
文件: | customize_guest.tar.gz |
大小: | 2KB |
下载: | 下载 |
|
阅读(7168) | 评论(0) | 转发(0) |