Chinaunix首页 | 论坛 | 博客
  • 博客访问: 119370
  • 博文数量: 2
  • 博客积分: 1435
  • 博客等级: 上尉
  • 技术积分: 561
  • 用 户 组: 普通用户
  • 注册时间: 2006-11-28 10:50
文章分类

全部博文(2)

文章存档

2008年(2)

我的朋友

分类:

2008-06-07 18:22:17

这几天一直在玩VirtualBox,发现这个小东西真是好,简单、方便、功能强大,而且是开源的!在Windows XP下虚拟了FreeBSD7.0,很容易就装上了,没有碰到什么问题。今天在Redhat Enterprise 4.4下装Solaris 10 update5倒是很费了一番周折。碰到的问题都已解决,记录一下做个备忘。
 
1、开始我在Sun官方网站上选择Host平台时下载的是VirtualBox-1.6.2_31466_rhel4-1.i586.rpm,安装很顺利就完成了,然后将我的root用户添加到vboxusers用户组中,启动VirtualBox,配置好Solaris的虚拟系统,再启动就出错了,错误是:
 
The VirtualBox kernel driver not installed. The vboxdrv kernel module was either not loaded or /dev/vboxdrv was not created for some reason. Re-setup the kernel module by executing '/etc/init.d/vboxdrv setup' as root.
VBox status code: -1908 (VERR_VM_DRIVER_NOT_INSTALLED).

Result Code: 0x80004005
Component: Console
Interface: IConsole {1dea5c4b-0753-4193-b909-22330f64ec45}

 
按照错误中的提示,运行/etc/init.d/vboxdrv setup,结果显示内核加载失败,用dmesg查看发现要在内核启动行加上nmi_watchdog=0,于是乖乖地在/boot/grub/menu.lst的kernel一行加上这一句,保存,重启,再运行VirtualBox,这回又提示出错了,错误如下:
 
The VirtualBox support driver which is running is from a different version of VirtualBox. You can correct this by stopping all running instances of VirtualBox and reinstalling the software.
VBox status code: -1912 (VERR_VM_DRIVER_VERSION_MISMATCH).

Fehlercode: 0x80004005
Komponente: Console
Interface: IConsole {d5a1cbda-f5d7-4824-9afe-d640c94c7dcf}
 
按照错误提示,我重装了VirtualBox,但是发现还是老问题。真是郁闷啊......
 
2、问题解决:经过自己的摸索和查询,终于在Sun的官方网站上找到了问题所在,就在我下载rpm的地方Sun就已经做了说明,说明如下:
 

 Sun xVM VirtualBox is available for many platforms.

Please note that the package architecture must fit your host operating system architecture. So if you are running a 32-bit kernel on a 64-bit capable CPU you have to install the 32-bit version (x86/i386). On the other hand you must install the AMD64 version (this is the same as x86_64) if your host kernel is 64-bit!

Warning: saved states and snapshots are not compatible between different versions of VirtualBox. Merge all snapshots, restore all saved states and shutdown all VMs properly before attempting to upgrade.

 
其中第二段已经很明确地说明了所安装的包的架构必须与Host系统的架构匹配,在64位cpu上如果安装的host系统是32位内核,那么你就只能安装32位版本的包(x86/i386),否则如果你的Host系统内核是64位的,那就要安装AMD64位版本的包(与x86_64通用)。我的Redhat Enterprise 4.4是64位版本,所以也得选择64位版本下载,但是Sun网站上只提供Redhat Enterprise 4.4 i386的版本,而且Redhat Enterprise 5 AMD64运行也有问题,所以我只好选择通用的AMD64版本的包了(Linux(AMD64))。下载
VirtualBox-1.6.2-Linux_amd64.run,这是一个bourne shell的可执行脚本,所以直接运行:
 
#./VirtualBox-1.6.2-Linux_amd64.run
 
安装成功后,配置root用户到vboxusers组,同时还是要将nmi_watchdog=0放在内核启动行。再次启动VirtualBox就搞定了。
 
阅读(2972) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:在VirtualBox中安装Solaris的一点说明

给主人留下些什么吧!~~