通过 FTP 从 Kickstart 安装 CentOS 6.5 时如何修复“无法检索存储库元数据”?

通过 FTP 从 Kickstart 安装 CentOS 6.5 时如何修复“无法检索存储库元数据”?

我正在拔头发试图解决这个问题。我正在尝试从物理主机通过 KVM 上的 FTP 服务器安装 CentOS 6.5。我安装了 vsftpd,selinux 设置为宽容,并且 iptables 暂时刷新。我的安装被复制到/var/ftp/pub/inst/CentOS_6.5_Final/.我的启动配置是/var/ftp/pub/inst/ks.cfg. Ichmod -R 777用于文件和目录(不带-Rfor ks.cfg)。

我附加到安装菜单的第一个命令是,ks=x.x.x.x/pub/inst/ks.cfg 一旦我刷新了 iptables,虚拟机就能够轻松检索我的 ks.cfg。它开始重新格式化我的虚拟驱动器,没有任何问题。一旦它开始检索存储库,它就会吐出cannot retrieve repository metadata (repomd.xml) for repository.

当我在虚拟机内按 Ctl+Alt+F3 时,会显示以下输出: Failed to get <the path to my IP>/CentOS_6.5_Final/repodata/repomd.xml: [Errorno 14] PYCURL ERROR 7 - "couldn't connect to host"

这是我的启动配置:

# Kickstart file automatically generated by anaconda.
#version=DEVEL
install
url --url ftp://x.x.x.x/pub/inst/CentOS_6.5_Final/
lang en_US.UTF-8
keyboard us
network --onboot no --device eth0 --bootproto static --ip x.x.x.x --netmask x.x.x.x --gateway x.x.x.x --nameserver 8.8.8.8 --hostname <myhostname> --noipv6

rootpw  --iscrypted <very long string of hash>
firewall --service=ssh
authconfig --enableshadow --passalgo=sha512
selinux --enforcing
timezone --utc America/Denver
bootloader --location=mbr --driveorder=vda
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
zerombr
clearpart --drives=vda --all
ignoredisk --only-use=vda

#part None --fstype=efi --onpart=sda1 --noformat
#part None --fstype=ext4 --onpart=sda2 --noformat
#part swap --onpart=sda3 --noformat

part / --fstype=ext4 --size=8000
part /boot --fstype=ext4 --size=500
part /home --fstype=ext4 --size=1000
part swap --size=1000


#repo --name="CentOS" --baseurl=http://x.x.x.x/inst/ --cost=100

%packages
@base
@core
@debugging
@basic-desktop
@desktop-debugging
@desktop-platform
@directory-client
@fonts
@general-desktop
@graphical-admin-tools
@input-methods
@internet-applications
@internet-browser
@java-platform
@legacy-x
@network-file-system-client
@office-suite
@print-client
@remote-desktop-clients
@server-platform
@server-policy
@workstation-policy
@x11
mtools
pax
oddjob
wodim
sgpio
enisoimage
device-mapper-persistent-data
abrt-gui
samba-winbind
certmonger
pam_krb5
krb5-workstation
libXmu
%end
shutdown
firstboot --disabled`

编辑

好吧...我刚刚发现这是设置静态属性时的网络问题。之后我更改--bootproto static--bootproto dhcp并删除了除 之外的所有内容--noipv6。显然我需要更多地了解康卡斯特的新路由器调制解调器组合。我真的很讨厌那个调制解调器。

相关内容