Centos7 (PXE) 自动安装最终引导至 live-DVD 登录

Centos7 (PXE) 自动安装最终引导至 live-DVD 登录

编辑:2015-03-29 16:14 UTC+1:下载映像后,虚拟机抛出错误“无法安装 RPC Pipe Filesystem”

我正在尝试通过 PXE 自动安装 CentOS 7。

我的 PXE 服务器默认安装 CentOS 7,因为这是测试:

我的/srv/tftp/pxelinux.cfg/default

#prompt 1
timeout 600

default centos7
label centos7
    menu label ^Install CentOS 7
    kernel centos/images/pxeboot/vmlinuz
    append vga=normal initrd=centos/images/pxeboot/initrd.img ks=http://**.***.**.***/kickstart7.cfg priority=critical IPAPPEND 2

我的文件/srv/tftp/centos/images/pxeboot似乎没问题:

root@dvxtest:/srv/tftp/centos/images/pxeboot# md5sum *
b643733cacd1a8b6715f00ba669e69ed  initrd.img
064652e5c5e03bdc96f7b7b10d1c5c61  TRANS.TBL
b76341074e5d68b4e315d00b29fb11fb  upgrade.img
1f8a3bc847320572e531251fbf7e546b  vmlinuz

我在 CentOS 官方论坛上读到,这可能是错误的文件启动,所以我只是下载了完整的 CentOS 安装 dvd iso 文件,并使用它而不是解压的文件进行安装。

当我启动我的虚拟机时,它似乎没问题:

Trying to load: /pxelinux.cfg/default    ok
Loading centos/images/pxeboot/vmlinuz.......
Loading centos/images/pxeboot/initrd.img....................................

之后,它从给定存储库下载所有需要的文件,并警告“update.img”和“product.img”不存在。根据https://bugzilla.redhat.com/show_bug.cgi?id=722409这应该没问题,因为“product.img”与 RHEL 相关,并且“update.img”仅在“某些情况”下需要

此后,我的虚拟机在启动时抛出错误“无法安装 RPC 管道文件系统”,然后启动实时登录

我的kickstart.cfg

# System authorization information
auth --enableshadow --passalgo=sha512
# Use network installation
repo --name=base --baseurl=http://mirror.cogentco.com/pub/linux/centos/7/os/x86_64/
url --url="http://mirror.cogentco.com/pub/linux/centos/7/os/x86_64/"
# Run the Setup Agent on first boot
firstboot --enable
ignoredisk --only-use=sda
# Keyboard layouts
keyboard --vckeymap=sg --xlayouts='ch'
# System language
lang de_CH.UTF-8

# Network information
network  --bootproto=static --device=enp4s0 --gateway=192.168.100.1 --ip=192.168.0.130 --nameserver=192.168.100.1 --netmask=255.255.255.0 --ipv6=auto --activate --hostname=roflcopter.lh
# Root password
rootpw --plaintext test123
# System timezone
timezone Europe/Zurich --isUtc
# System bootloader configuration
bootloader --location=mbr --boot-drive=sda
autopart --type=lvm
# Partition clearing information
clearpart --all --initlabel --drives=sda

%packages
@core

%end

到目前为止我尝试过的:

到目前为止,我完全不知道问题是什么,甚至不知道如何调试它。

抱歉,如果我可能忘记了任何有用的信息,请告诉我,我会提供。

任何帮助表示赞赏

感谢您的时间。

答案1

我找到了答案,但我无法解释“为什么”,因为它没有任何意义和/或我不理解文档。我仍然会将其作为答案发布,因此如果其他人有同样的问题,他将在他的“尝试与错误”之旅中尝试另一件事。

文档:http://www.syslinux.org/wiki/index.php/SYSLINUX#APPEND_-

删除centos安装标签中IPAPPEND 2文件末尾的default确实解决了问题。

我可以重现该错误,添加回来IPAPPEND 2会使其再次停止工作。

相关内容