安装virtualbox过程

  • 格式:doc
  • 大小:31.00 KB
  • 文档页数:10

安装包 VirtualBox-4.1-4.1.16_78094_rhel6-1.x86_64.rpm [root@oc6846431152 Downloads]# rpm -ivh VirtualBox-4.1-4.1.16_78094_rhel6-1.x86_64.rpm

warning: VirtualBox-4.1-4.1.16_78094_rhel6-1.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 98ab5139: NOKEY

error: Failed dependencies: libSDL-1.2.so.0()(64bit) is needed by VirtualBox-4.1-4.1.16_78094_rhel6-1.x86_64

[root@oc6846431152 Downloads]# yum install SDL Loaded plugins: downloadonly, ibm-check-lotus-updates, ibm-kvm-repo, ibm-repository, refresh-packagekit, security

Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package SDL.x86_64 0:1.2.14-2.el6 will be installed --> Finished Dependency Resolution

Dependencies Resolved =================================================================================================================================

Package Arch Version Repository Size =================================================================================================================================

Installing: SDL x86_64 1.2.14-2.el6 RHEL-62-x86_64 194 k

Transaction Summary =================================================================================================================================

Install 1 Package(s)

Total download size: 194 k Installed size: 469 k Is this ok [y/N]: y Downloading Packages: SDL-1.2.14-2.el6.x86_64.rpm | 194 kB 00:00

Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : SDL-1.2.14-2.el6.x86_64 1/1 Installed: SDL.x86_64 0:1.2.14-2.el6

Complete!

[root@oc6846431152 Downloads]# rpm -ivh VirtualBox-4.1-4.1.16_78094_rhel6-1.x86_64.rpm

warning: VirtualBox-4.1-4.1.16_78094_rhel6-1.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 98ab5139: NOKEY

Preparing... ########################################### [100%] 1:VirtualBox-4.1 ########################################### [100%]

Creating group 'vboxusers'. VM users must be member of that group! No precompiled module for this kernel found -- trying to build one. Messages emitted during module compilation will be logged to /var/log/vbox-install.log.

Stopping VirtualBox kernel modules [ OK ] Uninstalling old VirtualBox DKMS kernel modules [ OK ] Trying to register the VirtualBox kernel modules using DKMS [FAILED] (Failed, trying without DKMS) Recompiling VirtualBox kernel modules [FAILED] (Look at /var/log/vbox-install.log to find out what went wrong) [root@oc6846431152 Downloads]# cat /var/log/vbox-install.log Makefile:172: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again. Stop.

[root@oc6846431152 Downloads]# /etc/init.d/vboxdrv setup Stopping VirtualBox kernel modules [ OK ] Uninstalling old VirtualBox DKMS kernel modules [ OK ] Trying to register the VirtualBox kernel modules using DKMS[FAILED] (Failed, trying without DKMS) Recompiling VirtualBox kernel modules [FAILED] (Look at /var/log/vbox-install.log to find out what went wrong)

[root@oc6846431152 Downloads]# yum install dkms Loaded plugins: downloadonly, ibm-check-lotus-updates, ibm-kvm-repo, ibm-repository, refresh-packagekit, security

Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package dkms.noarch 0:2.1.0.1-1.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ====================================================================================================================================

Package Arch Version Repository Size

====================================================================================================================================

Installing: dkms noarch 2.1.0.1-1.el6 epel 99 k

Transaction Summary ====================================================================================================================================

Install 1 Package(s)

Total download size: 99 k Installed size: 214 k Is this ok [y/N]: y Downloading Packages: dkms-2.1.0.1-1.el6.noarch.rpm | 99 kB 00:00

Running rpm_check_debug