找回密码
 注册
搜索
热搜: 回贴
微赢网络技术论坛 门户 服务器 Linux/BSD 查看内容

做实验的东西(安装VirtualBox虚拟机)

2009-12-20 13:26| 发布者: admin| 查看: 46| 评论: 0|原作者: 玄霄



虚拟机应该很熟悉了吧,至少学Linux的人对虚拟机应该很熟悉的,基本上新手学Linux都是在虚拟机中进行的。这里就是多说虚拟机了,不知道的自己去查资料。虽然现在已用Linux了,但一些操作还是不敢在自己的Linux中进行,所以想到虚拟机。下面来安装VirtualBox虚拟机(想了解VirtualBox虚拟机是什么咚咚,自己去查资料)。
首先,查下是否安装了依赖包,如下:
# rpm -qa qt SDL
qt-3.3.6-23.el5
SDL-1.2.10-8.el5
就是上面两个依赖包,我已经安装上了。如果没有,则需要先安装上,如下:
# rpm -ivh
qt-3.3.6-23.el5.i386.rpm
# rpm -ivh
SDL-1.2.10-8.el5.i386.rpm
上面两个依赖包也可以用yum来安装(如果有依赖关系,用yum能解决):
# yum -y install libqt-mt.so.3
# yum -y install libSDL-1.2.so.0
上面的libqt-mt.so.3和libSDL-1.2.so.0分别是qt-3.3.6-23.el5和SDL-1.2.10-8.el5包中的文件,最终安装的还是上面的qt和SDL这两个包。
然后,下载
VirtualBox
软件,运行run包,如果出现下面错误:
# ./VirtualBox-1.4.0_21864_rhel5-1.i586.rpm.run
bash: ./VirtualBox-1.4.0_21864_rhel5-1.i586.rpm.run: 权限不够
要先设置运行权限,如下:
# chmod 766 VirtualBox-1.4.0_21864_rhel5-1.i586.rpm.run
只允许root用户运行就可以了,然后运行run包,如下:
# ./VirtualBox-1.4.0_21864_rhel5-1.i586.rpm.run
这时,有一段英文(我英文差就没看了),到下面的地方输入“yes”回车:
Do you agree to the above license terms? [yes or no] yes
这时rpm包从run包中提取到当前目录中,安装它:
# rpm -ivh VirtualBox-1.4.0_21864_rhel5-1.i586.rpm
基本上就算安装上了。
最后,还要把用户加入到vboxusers用户组才可以使用,如下:
# usermod -G vboxusers -a ???
(???为你的用户名)
到这里才算安装完成了。最好重新启动下电脑,因为我按上面的安装完后就使用,结果出显“虚拟机启动失败”把我郁闷了。去网上查资料,解决方法就是重新启动下计算机(@_@),所以还要重启一下系统才能用。下面的是VirtualBox的安装过程,随便看(^_^):
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http:///fileicon/zip.gif');}" onmousewheel="return imgzoom(this);" alt="" />

文件:VirtualBox.install.tar.bz2
大小:2KB
下载:
下载

计算机重启后就可以使用了(应用程序->系统工具->innotek VirtualBox)。
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://blog.chinaunix.net/photo/76337_080918014707.png');}" onmousewheel="return imgzoom(this);" alt="" />
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://blog.chinaunix.net/photo/76337_080918014742.png');}" onmousewheel="return imgzoom(this);" alt="" />
注:
1、就是上面说的,安装完后要重启系统(不知道什么原因)。
2、确认vboxdrv服务是否起动了(系统->管理->服务)。
3、确认/dev/vboxdrv这文件,虚拟机启动失败也可以改该文件的权限。










最新评论

QQ|小黑屋|最新主题|手机版|微赢网络技术论坛 ( 苏ICP备08020429号 )

GMT+8, 2024-9-30 05:27 , Processed in 0.101992 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

返回顶部