![CentOS 7 下的 CentOS 8 KVM — Kickstart 网络安装失败](https://linux22.com/image/754204/CentOS%207%20%E4%B8%8B%E7%9A%84%20CentOS%208%20KVM%20%E2%80%94%20Kickstart%20%E7%BD%91%E7%BB%9C%E5%AE%89%E8%A3%85%E5%A4%B1%E8%B4%A5.png)
我们在 CentOS 7 下运行 CentOS 8 KVM。一旦 KVM 启动并运行,一切似乎都运行良好。我们正在使用 kickstart 来引导 KVM。我们在自动化网络安装序列方面遇到了问题。
每次执行 virt-install 时,我们都需要手动填写安装菜单的“安装源”和“软件选择”。当我们这样做时,一切都正常进行。
如果我们将以下两个记录添加到我们的 kickstart 中,
# network installation -- minimal content
url --url="http://our-server/rhel8-install"
repo --name="Minimal" --baseurl=http://our-server/rhel8-install/Minimal
在显示手动安装菜单之前,安装顺序失败。上述记录是从成功的网络安装的 anaconda-ks.cfg 中复制的——通过安装菜单手动指定。
我们正在使用最新版本的 CentOS 7 和 8。这是缺陷还是我们做错了什么?
以下是安装程序的错误:
Starting installer, one moment...
anaconda 29.19.2.17-1.el8 for CentOS Linux 8 started.
* installation log files are stored in /tmp during the installation
* shell is available on TTY2
* if the graphical installation interface fails to start, try again with the
inst.text bootoption to start text installation
* when reporting a bug add logs from /tmp as separate text/plain attachments
16:04:26 Not asking for VNC because of an automated install
16:04:26 Not asking for VNC because text mode was explicitly asked for in kickstart
File "/usr/lib64/python3.6/site-packages/pyanaconda/anaconda.py", line 394, in initInterfac initInterface
self._intf = TextUserInterface(self.storage, self.payload,
File "/usr/lib64/python3.6/site-packages/pyanaconda/anaconda.py", line 199, in storage
self._set_default_fstype(self._storage)
File "/usr/lib64/python3.6/site-packages/pyanaconda/anaconda.py", line 310, in _set_default_fstype
storage.set_default_fstype(fstype)
File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock
return m(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/blivet/blivet.py", line 1070, in set_default_fstype
self._check_valid_fstype(newtype)
File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock
return m(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/blivet/blivet.py", line 1055, in _check_valid_fstyp
raise ValueError("new value %s is not valid as a default fs type" % newtype)
ValueError: new value xfs is not valid as a default fs type
Pane is dead (status 1, Wed Jun 24 16:04:26 2020)