Install CentOS7 in VirtualBox

Source: Internet
Author: User
Installation environment: win764-bit operating system required software: VirtualBox-4.2.12-84980-Win.exeCentOS Image: CentOS-7.0-1406-x86_64-DVD.isoVirtualBox installation here is not described here, here mainly records some problems encountered during the installation process. 1. modify the yum source. here, the 163 source is used, http://mirrors.163.com/, click CE

Installation environment: win764-bit operating system
Software: VirtualBox-4.2.12-84980-Win.exe
CentOS Image: CentOS-7.0-1406-x86_64-DVD.iso

The installation of VirtualBox is not described here. it mainly records some problems encountered during the installation process.
1. change yum source
Here we use the 163 source, http://mirrors.163.com/. click the centoshelper, as shown in
According to its instructions for operation, the current site does not provide CentOS7 repo file, you can download CentOS6 repo file for modification, the modification content is as follows to change the repo file in the RPM-GPG-KEY-CentOS-6 to RPM-GPG-KEY-CentOS-7, for more information, see http://developer.centos.org/centos /.

[Plain]View plaincopy
  1. Yum clean all
  2. Yum makecache

The image source is updated.

2. install the VisualBox enhancement tool

Choose "device"> "install enhancement" from the menu bar of VisualBox, as shown in.
The installation image is automatically loaded to the optical drive. run the following command under the permissions of the Super Administrator:

[Plain]View plaincopy
  1. [Root @ localhost VBOXADDITIONS_4.2.12_84980] #./VBoxLinuxAdditions. run

The following error may occur during installation:

[Plain]View plaincopy
  1. Building the VirtualBox Guest Additionskernel modules [failed] (Look at/var/log/vboxadd-install.log to find out what went wrong)
The cause of the problem is that compilation is required when the enhancement function is installed. Therefore, you need to execute the following command:

 

 

 

 

[Plain]View plaincopy
  1. Yum install kernel-headers
  2. Yum install kernel
  3. Yum install gcc *
  4. Yum install make
After the update is complete, check whether the kernel version is consistent with the installed gcc, make, and kernel-headers. the command for viewing the kernel version is as follows: [Plain]View plaincopy
  1. Rpm-qa | grep kernel * | sort
If the version is the same, you must Restart Linux (select the updated kernel to enter the system)And then install

Now we have installed CentOS7 in VirtualBox. if you have any questions, please contact us.
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.