虚拟机是由vmware工作站超编的。
我在运行centos 7的vm1 - 192.168.0.31上启动我的web服务器。我创建了启动文件ks.cfg并将其上传到192.168.0.31/ks.cfg。您可以查看下面的文件。
我局域网中的每个vm都可以访问ks.cfg并通过192.168.0.31/ks.cfg读取其内容。我用netinstall启动vm2,iso of centos 7,并在引导选项中添加ks=http://192.168.0.31/ks.cf,然后按enter键。我唯一想到的是,ks.cfg中的镜像地址是无效的,但我从官方的centos站点复制了它,并尝试了多个地址。我还试过在网上发现的镜子,它们都没有解决这个问题。
#platform=x86, AMD64, or Intel EM64T
#version=DEVEL
# Install OS instead of upgrade
install
# Keyboard layouts
keyboard 'us'
# Use network installation
url --url="http://mirrors.mit.edu/centos/7/os/x86_64/"
# System language
lang en_US
# System authorization information
auth --useshadow --passalgo=sha512
# Use graphical install
graphical
# SELinux configuration
selinux --enforcing
# Do not configure the X Window System
skipx
# Firewall configuration
firewall --disabled
# Network information
network --bootproto=dhcp --device=eth0
# Halt after installation
halt
# System timezone
timezone Africa/Abidjan
# System bootloader configuration
bootloader --location=mbr
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all发布于 2018-11-22 16:14:00
错误是启动文件,不包括自动安装所需的所有信息。网络运转良好。如果ks.cfg无法获取,将出现以下消息:

如果成功地获取了ks.cfg,但内容不够充分,那么以下内容可能会对我们产生影响:

若要修复No disks selected,请在GUI中手动定义分区。或者使用自动分区(在GUI中不可能,保留空白不会导致自动分区)- ks.cfg需要进行编辑,只需将autopart --type=lvm添加到文件的# System bootloader configuration部分即可。为了修复Nothing selected中的SOFTWARE SELECTION,我刚刚添加了以下内容:
%packages
%end在文件的末尾。
TL;DR:
在GUI中创建了跆拳道文件之后,需要用以下内容来补充它:
%packages
%end如果需要自动分区,可以通过在# System bootloader configuration部分中添加:D13文件来完成。在这种特殊情况下,我的错误是在GUI中保留所有分区选项的空白,认为这将导致自动分区。
https://unix.stackexchange.com/questions/481990
复制相似问题