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

全部博文(67)

文章存档

2011年(9)

2010年(36)

2009年(8)

2008年(5)

2007年(5)

2006年(4)

我的朋友

分类: LINUX

2009-09-14 15:48:03

1. 配置PXE (略)
2. 将iso文件解压出来,放到/ks/iso/32/esx40/iso下。
3. 将/ks/iso/32/esx40/iso/isolinux下的vmlinuz和initrd.img copy到tftpboot下
4. 添加启动行
LABEL ks_32_esx40
  menu label esx4.0
  kernel bootimg/32/esx40/vmlinuz
  append initrd=bootimg/32/esx40/initrd.img mem=512m quiet ks=nfs:10.224.106.11:/ks/iso/32/esx40/esx4.cfg
5. 配置ks脚本
[root@szpxe esx40]# cat esx4.cfg
#root Password
rootpw pass
# Authconfig
authconfig --enableshadow --enablemd5
# BootLoader (Use grub by default.)
bootloader --location=mbr
# Timezone
timezone America/Los_Angeles
#Install
install nfs --server=10.224.106.11 --dir=/ks/iso/32/esx40/iso
#Network install type
network --bootproto=dhcp --nodns
#Keyboard
keyboard us
#Reboot after install?
reboot
# Clear partitions
clearpart --firstdisk
autopart --firstdisk
# Partitioning
#VMware Specific Commands
accepteula
%post
注意:一定要将iso解压出来才可以。
阅读(1113) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~