colorful

zc qq:1337220912

 

virtualbox 安装 64位centos

前前后后差不多一天的时间,终于搞好了.

virtualbox 的无缝模式那真是一个cool, 帅呆了.
还是总结一下吧,免得下次又忘了.

----------------------------------------------------------
virtualbox 上安装64位操作系统,要满足三个条件 1 cpu是64位 2 cpu支持虚拟化(支持的话,可在bios里设置开启) 3:安装的系统为64位
vmware 也要注意这个问题

----------------------------------------------------------
centos 图形安装界面需 628M以上内存,

----------------------------------------------------------
我的 CentOS6.3 装在虚拟机里,在线升级后,突然不能进入桌面了,现象是进度条变成灰白,而启动的服务过程则在 Starting certmonger: [OK] 这里停止。
解决办法很简单,使用 SSH 连入系统,或使用 Ctrl + Alt + Fx 进入虚拟终端,然后执行下面的命令:
    # mv /etc/X11/xorg.conf /etc/X11/old_xorg.conf
接着重启系统,桌面回来了。

----------------------------------------------------------
在安装VBoxAddition 失败的情况, 用下面方法可以解决。 但正解安装后菜单上的无缝模式还是灰的,重装重启了N次还是灰的,后来资料上看到要通过 /etc/X11/xorg.conf来设置分辩率, 就照着设置了一下,结果重启后又卡在Starting certmonger那里,于是用上面的方法 mv了一下。然后重启。我去!!!!!无缝模式就不灰了.....
ps: 后来我又重新装了个centos6.2的, 安装好VBoxAddition 后重启就可以无缝模式了,不需要设置xorg.conf

----------------------------------------------------------
VBoxAddition 安装失败的解决方法
http://blog.csdn.net/lidongtang/article/details/8479900

CentOS6.3是安装在VirtualBox虚拟机上,安装好以后最好再将VBoxAdditions增强功能装上,主要目的是能够在虚拟机和宿主机之间能够共享文件。


1. 更新内核。CentOS 6.3对应的kernel默认为2.6.32-279.el6.i686:

# uname -r 
2.6.32-279.el6.i686

安装增强功能需要kernel-devel包,必须保证kernel-devel和kernel版本的一致。查看软件源中kernel-devel的版本:

复制代码
# yum info kernel-devel
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.163.com
Available Packages
Name : kernel-devel
Arch : i686
Version : 2.6.32
Release : 279.19.1.el6
Size : 7.6 M
Repo : updates
Summary : Development package for building kernel modules to match the
: kernel
URL : http://www.kernel.org/
License : GPLv2
Description : This package provides kernel headers and makefiles sufficient to
: build modules against the kernel package.

复制代码

当前的kernel-devel版本是2.6.32-279.19.1.e16。因此,必须升级kernel:

# yum update kernel

升级完后必须重启系统,新的kernel才能被使用。

 

2. 安装kernel-devel和gcc。

# yum install kernel-devel gcc gcc-c++

 

3. 安装增强功能。进入增强功能光盘根目录,执行Linux下的安装命令:

复制代码
# ./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.2.4 Guest Additions for Linux..........
VirtualBox Guest Additions installer
Removing installed version 4.2.4 of VirtualBox Guest Additions...
Removing existing VirtualBox non-DKMS kernel modules[确定]
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module[确定]
Building the shared folder support module[确定]
Building the OpenGL support module[确定]
Doing non-kernel setup of the Guest Additions[确定]
Starting the VirtualBox Guest Additions [确定]
Installing the Window System drivers
Installing X.Org Server 1.10 modules[确定]
Setting up the Window System to use the Guest Additions[确定]
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.


Installing graphics libraries and desktop services components[确定]

复制代码

posted on 2013-07-03 18:42 多彩人生 阅读(4784) 评论(0)  编辑 收藏 引用 所属分类: virtualbox


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理


导航

统计

常用链接

留言簿(3)

随笔分类

随笔档案

搜索

最新评论

阅读排行榜

评论排行榜