- 论坛徽章:
- 0
|
求大神帮指点,昨晚搞到深夜死活找不到错误。
架构:虚拟机A,挂载系统的iso光盘到ftp的匿名用户的家目录下的某个子目录,同时开启ftp服务功能,ks.cfg放置在ftp家目录下。。
创建新虚拟机B,启动的时候设置ks=ftp://A机器ip/ks.cfg
ks.cfg配置如下:
[root@node2 pub]# cat ks.cfg
#platform=x86, AMD64, or Intel EM64T
# System authorization information
auth --useshadow --enablemd5
# System bootloader configuration
bootloader --location=mbr
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --initlabel
# Use graphical install
graphical
# Firewall configuration
firewall --disabled
# Run the Setup Agent on first boot
firstboot --disable
# System keyboard
keyboard us
# System language
lang en_US
# Installation logging level
logging --level=info
# Use CDROM installation media
cdrom
# Network information
network --bootproto=dhcp --device=eth0 --onboot=on
# Reboot after installation
reboot
#Root password
rootpw --iscrypted $1$S.4R/coC$6ymnuuJNkNp048thoVEJ0.
# SELinux configuration
selinux --disabled
# Do not configure the X Window System
skipx
# System timezone
timezone Asia/Shanghai
# Install OS instead of upgrade
install
# Disk partitioning information
part /boot --bytes-per-inode=4096 --fstype="ext3" --size=300
part swap --bytes-per-inode=4096 --fstype="swap" --size=2048
part / --bytes-per-inode=4096 --fstype="ext3" --grow --size=1
part /boot --bytes-per-inode=4096 --fstype="ext3" --size=300
part swap --bytes-per-inode=4096 --fstype="swap" --size=2048
part / --bytes-per-inode=4096 --fstype="ext3" --grow --size=1
|
|