Chinaunix首页 | 论坛 | 博客
  • 博客访问: 482549
  • 博文数量: 67
  • 博客积分: 2952
  • 博客等级: 少校
  • 技术积分: 679
  • 用 户 组: 普通用户
  • 注册时间: 2006-01-24 10:50
文章分类

全部博文(67)

文章存档

2011年(9)

2010年(36)

2009年(8)

2008年(5)

2007年(5)

2006年(4)

我的朋友

分类:

2010-11-29 09:47:54

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 server
on 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
下载:下载


阅读(7174) | 评论(0) | 转发(0) |
0

上一篇:用perl发送邮件

下一篇:issue of udev hangs

给主人留下些什么吧!~~