Virtualbox Installation notes under centos5.6 (1)

Source: Internet
Author: User

Recently, a large number of servers have been borrowed, so I want to promote virtualization technology. Virtual Machine Software selects Virtualbox, which is relatively simple. However, I was told that the software could not be installed, but I had to do it myself. I encountered a small problem in the middle and recorded it for my memo.

1. install the software environment

 
 
  1. yum install gcc 
  2. yum install kernel-devel 
  3. yum install kernel-headers 

Note that the current system uses the kernel version corresponding to installing the corresponding kernel-headers and kernel-devel. If the corresponding package cannot be found, use yum install kernel to upgrade the server to the same version, and then restart the new kernel. For Remote Installation, You can edit/boot/grub. conf to switch the specified inner core)

2. Install virtualbox Software

Rpm-ivh VirtualBox-4.1-4.1.6_74727_rhel5-1.x86_64.rpm

However, if you call vboxmanage list vms, you will find that the driver has not been compiled. Run the compilation command as prompted. the following error is returned:

 
 
  1. [Root @ localhost home] # sudo/etc/init. d/vboxdrv setup
  2.  
  3. Stopping VirtualBox kernel modules [OK]
  4.  
  5. Uninstalling old VirtualBox DKMS kernel modules [OK]
  6.  
  7. Removing old VirtualBox pci kernel module [OK]
  8.  
  9. Removing old VirtualBox netadp kernel module [OK]
  10.  
  11. Removing old VirtualBox netflt kernel module [OK]
  12.  
  13. Removing old VirtualBox kernel module [OK]
  14.  
  15. Trying to register the VirtualBox kernel modules using DKMS [failure]
  16.  
  17. (Failed, trying without DKMS)
  18.  
  19. Recompiling VirtualBox kernel modules [OK]
  20.  
  21. Starting VirtualBox kernel modules [failed]
  22.  
  23. (Running VirtualBox in a Xen environment is not supported)
After a brief look, it is caused by dkms not being installed.

3. Install dkms

This is relatively simple. You can download an installation at http://linux.dell.com/dkms.

Then execute the driver compilation command and find the error:


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.