使用kickstart通过FTP安装RHEL / CentOS

我有下面的命令来使用我在192.168.122.1上的虚拟vsFTP服务器来安装CentOS:

virt-install --name kickstart.example.com --ram 768 \ --disk path=/var/lib/libvirt/images/kickstart.example.com.img,size=12 \ --location ftp://192.168.122.1/pub/inst -x "ks=ftp://192.168.122.1/pub/ks.cfg" 

ks.cfg肯定存在,因为wget 192.168.122.1/pub/ks.cfg下载文件。 我可以导航到ftp://192.168.122.1/pub/ks.cfg并查看ny kickstart文件。

我得到的错误是:

 ERROR Error validating install location: Could not find an installable distribution at 'ftp://192.168.122.1/pub/inst' The location must be the root directory of an install tree. 

这是关于权限或SELinux(SELinux是强制)。

ls -lZ在192.168.122.1/pub/及其子目录和kickstart文件是这样的:

 -rw-r--r--. root root system_u:object_r:public_content_t:s0 /var/ftp/pub/ks.cfg 

有任何想法吗? 非常感谢 :)。

ISO映像是否可用,如“安装指南”的“ 准备networking安装”部分中所述 ?

安装程序不是抱怨kickstart文件,而是抱怨缺less安装树。

我的猜测是你复制了源DVD中的文件,但错过了“.discinfo”文件。 如果没有这个隐藏文件,Kickstart将无法识别安装源。

检查以确保iptables不会造成任何问题。 一个简单的方法来检查是通过运行刷新所有设置:

 iptables -F 

如果这样做后运行,那么你知道这是由于iptables设置。