尝试启动CENTOS 7,并得到一个意想不到的消息。 kickstart文件已经与5和6之前的工作。 有些事情已经改变了。 有没有人遇到过这个?
Installation 1) [x] Timezone settings 2) [x] Installation source (America/Toronto timezone) (http://centos.mirror.iweb.ca/7 3) [!] Software selection /os/x86_64/) (Installation source not set up 4) [x] Install Destination ) (Custom partitioning selected) 5) [x] Network settings (Wired (eth0) connected)
Kickstart的
install text url --url http://centos.mirror.iweb.ca/7/os/x86_64/ lang en_US.UTF-8 keyboard us network --device eth0 --bootproto dhcp --ipv6 xxxxx::10/64 --gateway xxxxx:1 --nameserver --hostname foo.example.com rootpw xxxxxxxxxxxxx firewall --disabled authconfig --enableshadow --enablemd5 timezone America/Toronto bootloader --location=mbr --append="rhgb quiet console=tty0 console=ttyS0,115200n8" user --name=neil --password=xxxxxxxxxxxx zerombr clearpart --initlabel --all part /boot --fstype ext4 --size=200 --ondisk=vda --asprimary part pv.3 --size=100 --grow --ondisk=vda volgroup vg01 pv.3 logvol / --fstype ext4 --name=lv01 --vgname=vg01 --size=3072 --grow logvol swap --fstype swap --name=swaplv01 --vgname=vg01 --size=1024 %packages --ignoremissing vim* tmux openssl-devel pcre-devel make gcc fakeroot %end
在日志中find:
22:59:18,869 DEBUG packaging: adding yum repo anaconda with baseurl http://centos.mirror.iweb.ca/7/os/x86_64/ and mirrorlist None 22:59:19,036 ERR packaging: base repo (url/http://centos.mirror.iweb.ca/7/os/x86_64/) not valid -- removing it
我相信你需要从kickstart中的network命令中删除–device eth0。 Centos7现在使用一些奇怪的networking设备名称(例如,在我的vmware Centos7 VM上,它自动将networking设备检测为Eno160,而不是eth0)
network --bootproto dhcp --ipv6 xxxxx::10/64 --gateway xxxxx:1 --nameserver --hostname foo.example.com
我猜错误信息是由错字造成的: url --url http://centos.mirror.iweb.ca/7/os/x86_64/应该是url --url= http://centos.mirror.iweb.ca/7/os/x86_64/顺便说一下,我认为你应该在“%packages”部分添加“@core” 它包含一组最基本的RPMs。
有两件事会导致这个问题:
我检查了回购,并显示正确。
但是,你的软件包列表看起来不正确。 特别:
%packages --ignoremissing
这应该出现在一行上,即:
%packages --ignoremissing
最近我一直在苦苦挣扎 – 跟你使用本地仓库不一样,但是最终结果是一样的。 当提取ISO文件时,repodata中的文件被截断了。 比较你的repodate文件夹(例如) http://mirror.ox.ac.uk/sites/mirror.centos.org/7/os/x86_64/repodata/
此信息可能会帮助其他人通过search错误find此页面。