![Kickstart 文字安裝掛起](https://rvso.com/image/83703/Kickstart%20%E6%96%87%E5%AD%97%E5%AE%89%E8%A3%9D%E6%8E%9B%E8%B5%B7.png)
我正在文字模式下使用 Kickstart 檔案對 CentOS 7 VM 進行測試安裝,但一段時間後安裝掛起在此畫面上(這是主終端 VT1):
這是 VT4 的內容(透過++Ctrl看到):AltF4
使用的 Kickstart 檔案是這樣的:
#version=RHEL7
# System authorization information
auth --enableshadow --passalgo=sha512
# Use CDROM installation media
cdrom
# Use graphical install
install
text
# Run the Setup Agent on first boot
firstboot --enable
ignoredisk --only-use=vda
# Keyboard layouts
keyboard --vckeymap=ch --xlayouts='ch'
# System language
lang en_US.UTF-8
# Network information
network --bootproto=static --device=eth0 --gateway=192.168.77.1 --ip=192.168.77.222 --nameserver=8.8.8.8 --netmask=255.255.255.0 --ipv6=auto --activate
network --hostname=localhost.localdomain
# Root password
rootpw --iscrypted $6$CmjyBHZ.4piG.00J$JESV6h1LUaMxB2n2sJEkjd97GobnYIdAYPJmQtlKQMpiaPPKMpAD.4z3RPb9KxUvIg8SlFVC2KhG..2.6ivwI/
# System timezone
timezone America/Santiago --isUtc --nontp
# X Window System configuration information
xconfig --startxonboot
# System bootloader configuration
bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=vda
autopart --type=lvm
# Partition clearing information
clearpart --none --initlabel
%packages
@base
@core
%end
%addon com_redhat_kdump --enable --reserve-mb='auto'
%end
VM 是透過以下命令建立的:
virt-install --virt-type=kvm --name=centos7test6 --disk path=/var/lib/libvirt/images/centos7test6.img,size=6 --initrd-inject=/root/kickstart-tests/test.ks --ram=1024 --vcpus=1 --os-variant=rhel7 --accelerate --graphics vnc -v -l http://mirror.centos.org/centos/7/os/x86_64/ --network bridge:virbr0 --extra-args="console=tty0 console=ttyS0,115200 ks=file:/test.ks"
圖形安裝工作正常,但我想測試文字安裝,然後自訂 %pre- 和 %post-install 部分。可以採取什麼措施來解決這個問題?