CentOS 7 調整text console解析度

環境

XenServer 7.0下面的CentOS7虛擬機

  • 編輯/etc/default/grub,加入video=640×480
  • GRUB_TIMEOUT=5
    GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
    GRUB_DEFAULT=saved
    GRUB_DISABLE_SUBMENU=true
    GRUB_TERMINAL_OUTPUT="console"
    GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet video=640x480"
    GRUB_DISABLE_RECOVERY="true"
    

     

  • grub2-mkconfig -o /boot/grub2/grub.cfg
  • reboot

 

參考

  • https://www.centos.org/forums/viewtopic.php?t=48413