html tool

显示标签为“v-box”的博文。显示所有博文
显示标签为“v-box”的博文。显示所有博文

2013年3月21日星期四

Vbox 在CentOS 的安装 III


 参考:
http://wiki.centos.org/HowTos/Virtualization/VirtualBox
https://forums.virtualbox.org/viewtopic.php?f=7&t=45540

[popexizhi]vbox安装完成后启动时提示错误“(Running VirtualBox in a Xen environment is not supported)”
[来源]https://forums.virtualbox.org/viewtopic.php?f=7&t=45540
原文中提到应该是系统的启动方式问题,查看了一下
vim /boot/grub/grub.conf
  server 是CentOS (2.6.18-348.3.1.el5xen)
好吧!修改一下默认启动的系统,重启再次运行就ok了
原文中说PEA方式,这个也不是,应该是可以的查了一下testlink的配额也不是PEA的,直接为kernel的。
【next】go一下xen的使用    

2013年3月18日星期一

Vbox 在CentOS 的安装 II


4-1 安装dkms no
  • [popexizhi]
    110 just setup ok,
    #uname -a
    Linux xxx 2.6.18-348.3.1.el5xen #1 SMP Mon Mar 11 20:28:48 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux
    本以为这此Kernel 2.6 可以直接安装Vbox了,但是setup就提示:
    Stopping VirtualBox kernel module                          [  OK  ]
    Recompiling VirtualBox kernel module                       [FAILED]
      (Look at /var/log/vbox-install.log to find out what went wrong)

    开始以为是dkms没有安装呢,so
    #yum install yum
    但却提示“No package dkms available.”
    go了一下,发现 还是看一下/var/log/vbox-install.log 吧!
    “Makefile:181: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again。 停止。”

    这次再[go]
    来源:http://www.linuxquestions.org/questions/linux-desktop-74/latest-version-of-virtualbox-kernel-errors-on-centos-5-i386-645991/
    应该是这个,回去看看上次在testlinke 上 稀里糊涂的setup ok的setp中就有
    yum install dkms kernel-PAE-devel qt qt-xll gcc

    这个PAE上次在高配置的win7上因为没有选择就报错很久

    查看http://www.linuxquestions.org/questions/linux-desktop-74/latest-version-of-virtualbox-kernel-errors-on-centos-5-i386-645991/
    【原文】
    Hi. You're in luck because I'm doing the same exact thing (except my server is x86_64.)

    You will need the kernel sources. Downloading kernel-devel or kernel-headers does not work. CentOS kernel sources aren't available through yum, so I used these steps from the CentOS wiki.
    http://wiki.centos.org/HowTos/I_need_the_Kernel_Source

    Getting CentOS kernel sources to build VirtualBox kernel module
    of course, you may not run some of these commands if you already have the packages installed.

    as root:
    Code:
    # yum groupinstall "Development Tools"
    # yum groupinstall "Development Libraries"
    # yum install unifdef rpm-build


    【popexizhi:应该是内核源码没有下载的问题,按原文安装了一下,重启系统。
    然后
    export KERN_DIR=/usr/src/kernels/2.6.18-128.1.10.el5-PAE-i686/
    /etc/init.d/vboxdrv setup

    ok 了】

    【note】
    yum groupinstall ----批量安装软件【参见:http://zhangjun2915.blog.163.com/blog/static/380862362010528104646736/】
    Vbox 的CPU PAE/NX 选项 --扩展CPU访问4GB以上的内存[参见http://baike.baidu.com/view/493711.htm 和 http://qubuntu.blog.163.com/blog/static/195703121201192212147796/]

2013年2月26日星期二

v-box "unable to boot-please use a kernel appropriate for your CPU"


是在window7 64位上 vbox 4.1.4 安装32bit 的unbantu 提示“unable to boot-please use a kernel appropriate for your CPU”
参考:https://forums.virtualbox.org/viewtopic.php?f=3&t=49351
勾选了 Enable PAE in your VM settings. 


go了一下PAE是什么,发现很全的介绍如下:
---------------------------------------------------------------------------------------------------------------------------
来源:http://yyjlinux.iteye.com/blog/1728974

在VirtualBox4.2.4上,启动安装CentOS-6.3时报错:
Java代码  收藏代码
  1. This kernel requires the following features not present on the CPU:  
  2. Unable to boot – please use a kernel appropriate for your CPU.  
产生原因:没有配置支持PAE/NX扩展特性
解决方法:在VirtualBox界面上,选中虚拟机,打开设置 -> 系统 -> 处理器,在“扩展特性”选项处,勾选“启用PAE/NX”即可。

关于PAE/NX
  • PAE:物理地址扩展(Physical Address Extension),PAE 支持 32位处理器可以访问 4GB 以上物理内存,是否支持PAE是由CPU决定的。如果你的CPU不支持PAE功能,又想安装高版本的Linux,那就要把超过3.2GB的内存取下来。安装Linux时,系统就不会使用PAE了。
  • NX:No eXecute位,NX 可让处理器帮助保护电脑免受恶意软件的攻击,并且PAE是 NX 的先决条件。
附注:Win8的安装是要CPU必须支持PAE/NX的,否则无法安装,具体参见:http://windows.microsoft.com/zh-CN/windows-8/what-is-pae-nx-sse2