I am using the minimum install of CentOS 7 with command line access only (no graphic support installed). After spending hours reading online about editing grub files, installing guest additions, and setting VB options, absolutely nothing is working for me. First, guest additions is installed. Secondly, the only grub file I have is /boot/grub2/grub.cfg, and it says not to edit it as it's dynamically generated.
VirtualBox is the excellent and user-friendly Type 2 Hypervisor that supports all the major operating systems.A Type 2 Hypervisor requires a host operating system to.
Finally, editing the Display under VB's Machine settings to automatic, none, or hint with the resolution I want does not make a difference. Step by step, what exactly do I have to do in order to get my screen resolution to be larger than 640 x 400 as well as provide for a buffer (currently there is no buffer)? CentOS 7 still uses the vga parameter. You wanted step-by-step, you get it:.
Make yourself root: sudo su. vi /etc/default/grub. In Vi, press i or Insert-key on your keyboard to enter the edit mode. Add vga=792 inside the '-quotes for GRUBCMDLINELINUX, f.ex. GRUBCMDLINELINUX='crashkernel=auto rhgb quiet vga=792'. Press Esc and type:wq and hit Enter to save and exit Vi. grub2-mkconfig -o /boot/grub2/grub.cfg.
reboot This procedure applies not just Mac, but all host operating systems running Virtualbox: Windows, Linux. @garethTheRed's answer might work in some versions of some Linux distros, but the trick is to find the correct parameters for your environment. At least with some Red Hat distros you need to fall back to old, deprecated habits.
Above all, I followed in @John Mayor's steps and made up a specific way. Hope it helps to someone. Tested Environment CentOS 7.4.1708 on VMWARE Workstation 12 Player (kernel 3.10.0-693.21.1.el7.x8664). Edit GRUBCMDLINELINUX value in /etc/default/grub file Before: GRUBCMDLINELINUX='crashkernel=auto. Rhgb quiet' After: GRUBCMDLINELINUX='crashkernel=auto.
Rhgb quiet vga=ask'. grub2-mkconfig -o /boot/grub2/grub.cfg ( CentOS, Tested ) grub2-mkconfig -o /boot/grub2/grub.conf ( Fedora, Not Tested ). Reboot. A message is displayed like below, press Press to see video modes available. Or wait 30 sec. Choose one of the out values and note it example row ) z 342 1152x864x32 VESA.
Type z and press for test. Boot continues.
After boot, confirm the resolution is changed. Edit GRUBCMDLINELINUX value in /etc/default/grub file again change vga value from ask to 0x0342 what you memoized value previous step. ※ Display mode number must be hexadecimal. Or not, it would be printed Before: GRUBCMDLINELINUX='crashkernel=auto. Rhgb quiet vga=ask' After: GRUBCMDLINELINUX='crashkernel=auto. Rhgb quiet vga=0x0342'. Grub Update again grub2-mkconfig -o /boot/grub2/grub.cfg ( CentOS ) grub2-mkconfig -o /boot/grub2/grub.conf ( Fedora ).
Reboot and confirm it. You need to inform the guest's kernel of the required size of your terminal. At the grub prompt, use the cursor keys to move to the kernel that you are intending to boot and press the E key to edit.
Use the cursor key to move to the line that starts linux and at the end of the line add: video=800x600-24 for 800 x 600 resolution with 24 bit colour. Press whatever key combination grub needs to boot. If that works, you'll need to make this permanent: Modify /etc/default/grub and append the stanza above to the GRUBCMDLINE line. Next run: # grub2-mkconfig -o /boot/grub2/grub.cfg which will make 800x600@24 the default for all current and future kernels.