﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-colorful-随笔分类-virtualbox</title><link>http://www.cppblog.com/colorful/category/20596.html</link><description>zc qq:1337220912</description><language>zh-cn</language><lastBuildDate>Thu, 18 Jul 2013 21:18:54 GMT</lastBuildDate><pubDate>Thu, 18 Jul 2013 21:18:54 GMT</pubDate><ttl>60</ttl><item><title>virtualbox 安装 64位centos</title><link>http://www.cppblog.com/colorful/archive/2013/07/03/201496.html</link><dc:creator>多彩人生</dc:creator><author>多彩人生</author><pubDate>Wed, 03 Jul 2013 10:42:00 GMT</pubDate><guid>http://www.cppblog.com/colorful/archive/2013/07/03/201496.html</guid><wfw:comment>http://www.cppblog.com/colorful/comments/201496.html</wfw:comment><comments>http://www.cppblog.com/colorful/archive/2013/07/03/201496.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/colorful/comments/commentRss/201496.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/colorful/services/trackbacks/201496.html</trackback:ping><description><![CDATA[<div>前前后后差不多一天的时间，终于搞好了.<br /><br />virtualbox 的无缝模式那真是一个cool, 帅呆了.<br />还是总结一下吧，免得下次又忘了.<br /><br />----------------------------------------------------------<br />virtualbox 上安装64位操作系统，要满足三个条件 1 cpu是64位 2 cpu支持虚拟化(支持的话，可在bios里设置开启) 3:安装的系统为64位<br />vmware 也要注意这个问题<br /><br />----------------------------------------------------------<br />centos 图形安装界面需 628M以上内存， <br /><br />----------------------------------------------------------<br />我的 CentOS6.3 装在虚拟机里，在线升级后，突然不能进入桌面了，现象是进度条变成灰白，而启动的服务过程则在 Starting certmonger: [OK] 这里停止。<br />解决办法很简单，使用 SSH 连入系统，或使用 Ctrl + Alt + Fx 进入虚拟终端，然后执行下面的命令：<br />&nbsp;&nbsp;&nbsp; # mv /etc/X11/xorg.conf /etc/X11/old_xorg.conf<br />接着重启系统，桌面回来了。 <br /><br />----------------------------------------------------------<br />在安装VBoxAddition 失败的情况， 用下面方法可以解决。 但正解安装后菜单上的无缝模式还是灰的，重装重启了N次还是灰的，后来资料上看到要通过 /etc/X11/xorg.conf来设置分辩率, 就照着设置了一下，结果重启后又卡在Starting certmonger那里，于是用上面的方法 mv了一下。然后重启。我去!!!!!无缝模式就不灰了.....<br />ps: 后来我又重新装了个centos6.2的, 安装好VBoxAddition 后重启就可以无缝模式了,不需要设置xorg.conf<br /><br />----------------------------------------------------------<br />VBoxAddition 安装失败的解决方法<br />http://blog.csdn.net/lidongtang/article/details/8479900<br /><div><p style="margin:10px auto">CentOS6.3是安装在VirtualBox虚拟机上，安装好以后最好再将VBoxAdditions增强功能装上，主要目的是能够在虚拟机和宿主机之间能够共享文件。</p> <p style="margin:10px auto"><br /> 1. 更新内核。CentOS 6.3对应的kernel默认为2.6.32-279.el6.i686：</p>  <pre style="margin-top:0px; margin-bottom:0px; margin-left:22px; white-space:pre-wrap; word-wrap:break-word; font-family:'Courier New'"><span style="background-color:#f5f5f5"># </span><span style="line-height:1.5; color:#0000ff">uname</span><span style="background-color:#f5f5f5"> -</span><span style="line-height:1.5">r</span> <div id="cnblogs_post_body" style="word-break:normal!important; font-family:Verdana,'Lucida Grande',Arial,Helvetica,sans-serif; line-height:18px"><div style="background-color:#f5f5f5; font-family:'Courier New'; border:1px solid #cccccc; padding:5px; overflow:auto; margin:5px 0px; max-width:900px"><pre style="margin-top:0px; margin-bottom:0px; margin-left:22px; white-space:pre-wrap; word-wrap:break-word; font-family:'Courier New'">2.6.32-279.el6.i686</pre></div><p style="margin:10px auto">安装增强功能需要kernel-devel包，必须保证kernel-devel和kernel版本的一致。查看软件源中kernel-devel的版本：</p><div style="background-color:#f5f5f5; font-family:'Courier New'; border:1px solid #cccccc; padding:5px; overflow:auto; margin:5px 0px; max-width:900px"><div style="margin-top:5px"><span style="padding-right:5px; line-height:1.5"><a href="http://blog.csdn.net/lidongtang/article/details/8479900" title="复制代码" style="color:#1d58d1; text-decoration:none; border:none!important"><img src="http://common.cnblogs.com/images/copycode.gif" alt="复制代码" style="border:none!important" /></a></span></div><pre style="margin-top:0px; margin-bottom:0px; margin-left:22px; white-space:pre-wrap; word-wrap:break-word; font-family:'Courier New'"><div># yum info kernel-devel<br />Loaded plugins: fastestmirror, refresh-packagekit, security<br />Loading mirror speeds from cached hostfile<br /> * base: mirrors.163.com<br /> * extras: mirrors.163.com<br /> * updates: mirrors.163.com<br />Available Packages<br />Name        : kernel-devel<br />Arch        : i686<br />Version     : 2.6.32<br />Release     : 279.19.1.el6<br />Size        : 7.6 M<br />Repo        : updates<br />Summary     : Development package for building kernel modules to match the<br />            : kernel<br />URL         : http://www.kernel.org/<br />License     : GPLv2<br />Description : This package provides kernel headers and makefiles sufficient to<br />            : build modules against the kernel package.</div><br /></pre><div style="margin-top:5px"><span style="padding-right:5px; line-height:1.5"><a href="http://blog.csdn.net/lidongtang/article/details/8479900" title="复制代码" style="color:#1d58d1; text-decoration:none; border:none!important"><img src="http://common.cnblogs.com/images/copycode.gif" alt="复制代码" style="border:none!important" /></a></span></div></div><p style="margin:10px auto">当前的kernel-devel版本是2.6.32-279.19.1.e16。因此，必须升级kernel：</p><div style="background-color:#f5f5f5; font-family:'Courier New'; border:1px solid #cccccc; padding:5px; overflow:auto; margin:5px 0px; max-width:900px"><pre style="margin-top:0px; margin-bottom:0px; margin-left:22px; white-space:pre-wrap; word-wrap:break-word; font-family:'Courier New'"># yum update kernel</pre></div><p style="margin:10px auto">升级完后必须重启系统，新的kernel才能被使用。</p><p style="margin:10px auto">&nbsp;</p><p style="margin:10px auto">2. 安装kernel-devel和gcc。</p><div style="background-color:#f5f5f5; font-family:'Courier New'; border:1px solid #cccccc; padding:5px; overflow:auto; margin:5px 0px; max-width:900px"><pre style="margin-top:0px; margin-bottom:0px; margin-left:22px; white-space:pre-wrap; word-wrap:break-word; font-family:'Courier New'"># yum <span style="line-height:1.5; color:#0000ff">install</span> kernel-devel <span style="line-height:1.5; color:#0000ff">gcc</span> <span style="line-height:1.5; color:#0000ff">gcc</span>-c++</pre></div><p style="margin:10px auto">&nbsp;</p><p style="margin:10px auto">3. 安装增强功能。进入增强功能光盘根目录，执行Linux下的安装命令：</p><div style="background-color:#f5f5f5; font-family:'Courier New'; border:1px solid #cccccc; padding:5px; overflow:auto; margin:5px 0px; max-width:900px"><div style="margin-top:5px"><span style="padding-right:5px; line-height:1.5"><a href="http://blog.csdn.net/lidongtang/article/details/8479900" title="复制代码" style="color:#1d58d1; text-decoration:none; border:none!important"><img src="http://common.cnblogs.com/images/copycode.gif" alt="复制代码" style="border:none!important" /></a></span></div><pre style="margin-top:0px; margin-bottom:0px; margin-left:22px; white-space:pre-wrap; word-wrap:break-word; font-family:'Courier New'"><div># ./VBoxLinuxAdditions.run <br />Verifying archive integrity... All good.<br />Uncompressing VirtualBox 4.2.4 Guest Additions for Linux..........<br />VirtualBox Guest Additions installer<br />Removing installed version 4.2.4 of VirtualBox Guest Additions...<br />Removing existing VirtualBox non-DKMS kernel modules[确定]<br />Building the VirtualBox Guest Additions kernel modules<br />Building the main Guest Additions module[确定]<br />Building the shared folder support module[确定]<br />Building the OpenGL support module[确定]<br />Doing non-kernel setup of the Guest Additions[确定]<br />Starting the VirtualBox Guest Additions [确定]<br />Installing the Window System drivers<br />Installing X.Org Server 1.10 modules[确定]<br />Setting up the Window System to use the Guest Additions[确定]<br />You may need to restart the hal service and the Window System (or just restart<br />the guest system) to enable the Guest Additions.<br /><br /><br />Installing graphics libraries and desktop services components[确定]</div><br /></pre><div style="margin-top:5px"><span style="padding-right:5px; line-height:1.5"><a href="http://blog.csdn.net/lidongtang/article/details/8479900" title="复制代码" style="color:#1d58d1; text-decoration:none; border:none!important"><img src="http://common.cnblogs.com/images/copycode.gif" alt="复制代码" style="border:none!important" /></a></span></div></div></div></pre></div></div><img src ="http://www.cppblog.com/colorful/aggbug/201496.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/colorful/" target="_blank">多彩人生</a> 2013-07-03 18:42 <a href="http://www.cppblog.com/colorful/archive/2013/07/03/201496.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>