两个命令在虚拟机中执行,将两个命令放在kickstart文中即可
On the virtual machine, add ‘console=ttyS0‘ at the end of the kernel lines in the /boot/grub2/grub.cfg file:
# grubby --update-kernel=ALL --args="console=ttyS0"
# reboot
转载于:https://blog.51cto.com/sonlich/2065737