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
- Yum clean all
- 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
- [Root @ localhost VBOXADDITIONS_4.2.12_84980] #./VBoxLinuxAdditions. run
The following error may occur during installation:
[Plain]View plaincopy
- 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
- Yum install kernel-headers
- Yum install kernel
- Yum install gcc *
- 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
- 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.