CentOS 7 Installation VirtualBox

Source: Internet
Author: User

Yesterday to centos6.5 installed VirtualBox, installed a day did not, today idle nothing, try Centos7, the results of the success of PS younger brother is also a beginner Linux, many places just found a solution, but do not know why, MO see

Strange O (∩_∩) o ha!

1, install CENTOS7, this does not say, the installation of Centos7 than the old version is much simpler.

2, the network settings, just after the installation of CentOS with ifconfig view found no IP address, solution:

cd/etc/sysconfig/network-scripts/

VI ifcfg-eno16777736 #注意, we usually see is ifcfg_eth0, specifically what, with ifconfig look.

Onboot=yes #将onboot设为yes

Then restart the network card:/etc/init.d/network restart

2, installation VirtualBox:

1> Download the VirtualBox rhel repositories configuration file:

         CD/ETC/YUM.REPOS.D         wget Http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo

2> install Rpmforge.

First download the corresponding RPM file from http://pkgs.repoforge.org/rpmforge-release/, I downloaded the rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm, the specific version

For information, please refer to: Http://wiki.centos.org/zh/AdditionalResources/Repositories/RPMForge.

<span style= "Font-family:courier New;" >       RPM-IVH rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm</span>

3> Installing dkms (Dynamic Kernel Module)

        Yum Install dkms

4> Install the development environment and kernel:

<span style= "Font-family:courier New;" >      yum groupinstall "Development Tools"       Yum install kernel-devel</span>

5> Installing QT and qt-

       Yum Install QT qt-x11


6> installation VirtualBox

I was first downloaded on the official website, the version is virtualbox-4.3-4.3.26_98988_el7-1.x86_64.rpm, https://www.virtualbox.org/wiki/Downloads

       Yum Install virtualbox-4.3-4.3.26_98988_el7-1.x86_64.rpm

7> Installation Extensions:     

      

There's a problem with this place.

VBoxManage:error:Details:code ns_error_failure (0x80004005), Component Extpackfile, interface Iextpackfile, callee NsI Supports
VBoxManage:error:Context: "Install (Freplace, NULL, Ptrprogress.asoutparam ())" At line 1140 of file VBoxManageMisc.cpp

But now the system has virtualbox, so that this problem can be ignored, continue the next.

8>/etc/init.d/vboxdrv Setup

Another error has occurred here:

Building the VirtualBox Guest additions kernel modules [FAILED]
Your system does not seem to is set to build kernel modules.
Look At/var/log/vboxadd-install.log-Find out-what went wrong.
Once you has corrected it, you can run/etc/init.d/vboxadd setup to build them.
To view the error log:
/TMP/VBOX.O/MAKEFILE.INCLUDE.HEADER:97: * * *
Error:unable to find the source of your current Linux kernel. Specify kern_dir=<directory> and run make again. Stop.

Workaround:

    Yum install kernel-headers    yum install kernel-devel    yum install gcc*     yum install make    reboot

Restart

   /ETC/INIT.D/VBOXDRV Setup

Done


CentOS 7 Installation VirtualBox

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.