我的配置如下:Hyper-V 2012 R2 Host Oracle Enterprise Linux 6.5 VM Guest 从连接到 VM 的 iso 安装。
我在 NFS 共享上创建了一个 kickstart 文件,当我启动虚拟 DVD 时,我按下 tab 并附加 ks=nfs:XXX.XXX.XXX.XXX:/OEL6.5/test3.ks
它可以正常加载文件并开始安装,但它总是询问我是否要测试媒体。
我的 kickstart 文件中没有“mediacheck”,并且根据 RHEL,如果 ks 文件中没有此选项,则它不应该提示检查媒体。
下面是我的 kickstart 文件
#platform=x86, AMD64, or Intel EM64T
#version=DEVEL
# Firewall configuration
firewall --enabled --service=ssh
# Install OS instead of upgrade
install
# Use CDROM installation media
cdrom
# Root password
rootpw --plaintext password
# System authorization information
auth --useshadow --passalgo=sha512
# Use graphical install
graphical
firstboot --disable
# System keyboard
keyboard us
# System language
lang en_US
# SELinux configuration
selinux --disabled
# Installation logging level
logging --level=info
# Reboot after installation
reboot
# System timezone
timezone America/Phoenix
# Network information
network --bootproto=dhcp --device=eth0 --onboot=on
# System bootloader configuration
bootloader --append="crashkernel=auto rhgb quiet" --location=mbr --driveorder="sda"
# Partition clearing information
clearpart --all
# Disk partitioning information
part swap --fstype="swap" --size=8192
part /boot --fstype="ext4" --size=500
part / --fstype="ext4" --grow --size=1
%post --nochroot
######## Get repo and install Oracle preinstall then update ########
cd /etc/yum.repos.d/
wget http://public-yum.oracle.com/public-yum-ol6.repo
yum install oracle-rdbms-server-11gR2-preinstall
yum update
%packages
@base
@basic-desktop
@cifs-file-server
@client-mgmt-tools
@compat-libraries
@console-internet
@core
@debugging
@directory-client
@ftp-server
@general-desktop
@graphical-admin-tools
@hardware-monitoring
@internet-browser
@java-platform
@large-systems
@network-file-system-client
@network-tools
@nfs-file-server
@performance
@perl-runtime
@security-tools
@server-platform
@server-policy
@system-admin-tools
@x11
aide
arptables_jf
arpwatch
audispd-plugins
audit-viewer
certmonger
device-mapper-persistent-data
dos2unix
dropwatch
ebtables
firstaidkit-gui
genisoimage
krb5-workstation
logwatch
lslk
mtools
oddjob
pam_krb5
pax
perl-DBD-SQLite
policycoreutils-gui
python-dmidecode
sabayon
sabayon-apply
samba-winbind
setroubleshoot
sg3_utils
sgpio
squashfs-tools
system-config-kickstart
system-config-lvm
tigervnc-server
tuned-utils
unix2dos
wireshark
wireshark-gnome
wodim
x86info
%end