VirtualBox Installing CentOS fullscreen

Source: Internet
Author: User

Installing the CentOS system in VirtualBox, you will encounter the "enhanced tool" does not install properly, the main reason is not found in the kernel library.

The error prompts are as follows:

By viewing the log file:

Cat/var/log/vboxadd-install.log

From the log, we can find out where the problem is.

1th Step: Install the gcc-c++ compiler

(Note: If your CentOS is installed all the way, then the default is already installed)

yum-y Install gcc-c++

Note: Make sure your network is unobstructed before installing because Yum is a network installation.

The total is about 40M, and it took me about 4 minutes to download.

2nd step: Install kernel kernal Library

Yum-y Install kernel Kernel-devel

3rd Step: Restart the system

Init 6

4th Step: Install the Enhancement tool again, wait a few minutes to succeed

Referenced from: http://www.php-note.com/article/detail/401

After successful installation

General VirtualBox installation of CentOS installation is done by default to 800x600 resolution.

Install guest additions. After the installation is complete, the resolution can be modified to 1024x768, and there are some higher resolutions, but no 1366x768.

Modify/etc/x11/xorg.config

After installing guest additions, the file default content is (or similar)

# VirtualBox generated configuration file  
# based on/etc/x11/xorg.conf.  
   
section "Monitor"   
  identifier  "monitor[0]"   
  ModelName     "VirtualBox Virtual Output"   
  vendorname  "Oracle corporation"    
endsection  
  
section "Device"   
  boardname    "VirtualBox Graphics"   
  driver      "Vboxvideo"   
  Identifier   "device[0]"   
  vendorname  "Oracle Corporation"   
endsection   
  
section "screen"   
  subsection "Display"   
    depth      24  
  endsubsection  
  device      " Device[0] "  
  identifier " screen[0] " 

Endsection

Modify section ' Screen ', add field modes "800x600" "1366x768"

Section "Screen"
Subsection "Display"
Depth 24
Modes "1366x768" "800x600" #在前面的分辨率是默认分辨率
Endsubsection
Device "Device[0]"
Identifier "Screen[0]"

Endsection

Note: Modes to be added between subsection, and cannot add only 1366x768, to add 800x600 at the same time.

Referenced from: http://www.linuxidc.com/Linux/2012-12/75447.htm

VirtualBox Installing CentOS fullscreen

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.