oracle netbox6,oracle linux 6.5 安装 virtualbox

本文详细指导了在Oracle Linux 6.5环境中安装VirtualBox 4.3.6,包括依赖包的安装、 DKMS模块编译、虚拟机扩展包的获取与安装,以及VBoxWeb服务器的配置。重点介绍了如何解决模块注册问题并配置Apache+PHP环境。
摘要由CSDN通过智能技术生成

oracle linux 6.5 安装 virtualbox

1.安装依赖包

yum -y install gcc kernel-uek-devel kernel-PAE-devel

wget http://linux.dell.com/dkms/permalink/dkms-2.2.0.3-1.noarch.rpm

rpm -ivh dkms-2.2.0.3-1.noarch.rpm

2.下载virtualbox包

https://www.virtualbox.org/wiki/Linux_Downloads

wget http://download.virtualbox.org/virtualbox/4.3.6/VirtualBox-4.3-4.3.6_91406_el6-1.x86_64.rpm

3.下载virtualbox扩展包

http://www.downloadcrew.com/article/20279-virtualbox_extension_pack

4.安装依赖

yum install gcc-c++ libcap-devel libcurl-devel libIDL-devel libstdc++-static   \

libxslt-devel libXmu-devel openssl-devel pam-devel pulseaudio-libs-devel   \

python-devel qt-devel SDL_ttf-devel SDL-static texlive-latex wine-core   \

device-mapper-devel wget subversion subversion-gnome kernel-devel   \

glibc-static zlib-static glibc-devel.i686 libstdc++.i686 libpng-devel

5.安装virtualbox

[root@oracle-v src]# rpm -ivh VirtualBox-4.3-4.3.6_91406_el6-1.x86_64.rpm

warning: VirtualBox-4.3-4.3.6_91406_el6-1.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 98ab5139: NOKEY

Preparing...                ########################################### [100%]

1:VirtualBox-4.3         ########################################### [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 DKMSError! echo

Your kernel headers for kernel 2.6.32-431.el6.x86_64 cannot be found at

/lib/modules/2.6.32-431.el6.x86_64/build or /lib/modules/2.6.32-431.el6.x86_64/source.

[FAILED]

(Failed, trying without DKMS)

Recompiling VirtualBox kernel modules [FAILED]

(Look at /var/log/vbox-install.log to find out what went wrong)

重新启动后问题解决

[root@oracle-v ~]# /etc/init.d/vboxdrv setup

Stopping VirtualBox kernel modules                         [  OK  ]

Uninstalling old VirtualBox DKMS kernel modulesError! There are no instances of module: vboxhost

4.3.6 located in the DKMS tree.

[  OK  ]

Trying to register the VirtualBox kernel modules using DKMS[  OK  ]

Starting VirtualBox kernel modules                         [  OK  ]

6.安装扩展

[root@oracle-v ~]# VBoxManage extpack install /usr/src/Oracle_VM_VirtualBox_Extension_Pack-4.3.6.vbox-extpack

0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

Successfully installed "Oracle VM VirtualBox Extension Pack".

7.

http://sourceforge.net/projects/phpvirtualbox/

unzip phpvirtualbox-4.3-0.zip

[root@oracle-v ~]# mkdir -p /data/www

[root@oracle-v ~]# mv /usr/src/phpvirtualbox /data/www/phpvir

8.配置vboxweb-server

[root@oracle-v ~]# cat /etc/vbox/vbox.cfg

VBOXWEB_USER=root

VBOXWEB_HOST=localhost

VBOXWEB_PORT=18083

VBOXWEB_TIMEOUT=300

VBOXWEB_CHECK_INTERVAL=5

VBOXWEB_THREADS=100

VBOXWEB_KEEPALIVE=100

VBOXWEB_LOGFILE=/var/log/vboxweb.log

9.启动

[root@oracle-v ~]# /etc/init.d/vboxweb-service start

10.设置授权

[root@oracle-v ~]# VBoxManage setproperty websrvauthlibrary null

11.修改配置文件

[root@oracle-v ~]# cd /data/www/phpvir/

[root@oracle-v phpvir]# vim config.php

var $username = 'root';

var $password = '123456';

var $language = 'en';

var $vrdeports = '9000-9100';

var $cachePath = '/data/www/vm';

12.安装apache+php

yum -y install httpd php

修改httpd.conf配置文件

将:

DirectoryIndex index.html index.html.var

改为:

DirectoryIndex index.php index.html index.html.var

添加如下内容:

AddType application/x-httpd-php .php

DocumentRoot "/data/www/phpvir"

13.添加php扩展模块

yum -y install php-soap

vim /etc/php.ini

extension = soap.so

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值