<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Shadow &#38; Honnix &#187; VirtualBox</title>
	<atom:link href="http://honnix.com/blog/archives/tag/virtualbox/feed" rel="self" type="application/rss+xml" />
	<link>http://honnix.com/blog</link>
	<description>she&#039;s growing up</description>
	<lastBuildDate>Sun, 15 Jan 2012 10:44:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>在虚拟机里安装openstack</title>
		<link>http://honnix.com/blog/archives/762</link>
		<comments>http://honnix.com/blog/archives/762#comments</comments>
		<pubDate>Sun, 15 Jan 2012 10:44:00 +0000</pubDate>
		<dc:creator>honnix</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[openstack]]></category>
		<category><![CDATA[VirtualBox]]></category>

		<guid isPermaLink="false">http://honnix.com/blog/?p=762</guid>
		<description><![CDATA[在VirtualBox的虚拟机里面按照这个文档把openstack装了一把。 准备工作： 创建虚拟机server1和server2，Ubuntu 64位 两块网卡，eth0 NAT，eth1 Internal Network server1分配两块硬盘，第二块专作nova的volume（需要特别指出，openstack的文档对这里没作任何说明，我是做到那步的时候才发现，sda6是神马东西！当然也可以单独分个区，我是没办法了才挂上一块新的硬盘，得亏是虚拟机） 安装OS，没有特别的 然后就是安装文档一步步下去。大部分地方都完全没有问题，有几点需要说一下。 1. 网络配置 VirtualBox虚拟出来的网关是10.0.2.2，不是10.0.2.1。 VirutalBox NAT模式下，两个虚拟机之间实际上是不通的，所以在server2上配置ntp以及nova的时候一定要使用192.168.3.1来连接server1。这一点实际上官方文档写得并不好，已经有了内部网络，为什么还要使用外部的呢？无论是从security还是从逻辑上都说不通。 server1： # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 10.0.2.14 netmask 255.255.255.0 broadcast 10.0.2.255 gateway 10.0.2.2 auto eth1 iface eth1 inet static address 192.168.3.1&#8230;]]></description>
			<content:encoded><![CDATA[<p>在VirtualBox的虚拟机里面按照<a title="starter" href="http://docs.openstack.org/diablo/openstack-compute/starter/content/" target="_blank">这个文档</a>把openstack装了一把。</p>
<p>准备工作：</p>
<ol>
<li>创建虚拟机server1和server2，Ubuntu 64位</li>
<li>两块网卡，eth0 NAT，eth1 Internal Network</li>
<li>server1分配两块硬盘，第二块专作nova的volume（需要特别指出，openstack的文档对这里没作任何说明，我是做到那步的时候才发现，sda6是神马东西！当然也可以单独分个区，我是没办法了才挂上一块新的硬盘，得亏是虚拟机）</li>
<li>安装OS，没有特别的</li>
</ol>
<p>然后就是安装文档一步步下去。大部分地方都完全没有问题，有几点需要说一下。</p>
<p>1. 网络配置</p>
<ul>
<li>VirtualBox虚拟出来的网关是10.0.2.2，不是10.0.2.1。</li>
<li>VirutalBox NAT模式下，两个虚拟机之间实际上是不通的，所以在server2上配置ntp以及nova的时候一定要使用192.168.3.1来连接server1。这一点实际上官方文档写得并不好，已经有了内部网络，为什么还要使用外部的呢？无论是从security还是从逻辑上都说不通。</li>
</ul>
<p>server1：</p>
<blockquote><p>
# The loopback network interface</p>
<p>auto lo</p>
<p>iface lo inet loopback</p>
<p># The primary network interface</p>
<p>auto eth0</p>
<p>iface eth0 inet static</p>
<p>address 10.0.2.14</p>
<p>netmask 255.255.255.0</p>
<p>broadcast 10.0.2.255</p>
<p>gateway 10.0.2.2</p>
<p>auto eth1</p>
<p>iface eth1 inet static</p>
<p>address 192.168.3.1</p>
<p>netmask 255.255.255.0</p>
<p>network 192.168.3.0</p>
<p>broadcast 192.168.3.255</p></blockquote>
<p>server2</p>
<blockquote><p># The loopback network interface</p>
<p>auto lo</p>
<p>iface lo inet loopback</p>
<p># The primary network interface</p>
<p>auto eth0</p>
<p>iface eth0 inet static</p>
<p>address 10.0.2.15</p>
<p>netmask 255.255.255.0</p>
<p>broadcast 10.0.2.255</p>
<p>gateway 10.0.2.2</p>
<p>auto eth1</p>
<p>iface eth1 inet static</p>
<p>address 192.168.3.2</p>
<p>netmask 255.255.255.0</p>
<p>network 192.168.3.0</p>
<p>broadcast 192.168.3.255</p></blockquote>
<p>2. 数据库</p>
<p>为了不跟Oracle扯到一起，没有用MySQL，安装文档上的步骤PostgreSQL完全没有问题。</p>
<p>3. ntp一定要配置正确，server2需要跟server1同步</p>
<p>ntp我不是很懂，配好之后怎么都不同步，把ntpd停掉之后手工跑了一把ntpdate 192.168.3.1，才搞定。应该是我哪里配置的不对。</p>
<p>4. 重启service</p>
<p>诡异得很，sudo restart nova-xxx或者sudo service nova-xxx restart经常不工作，用最土的方法解决：sudo /etc/init.d/nova-xxx restart</p>
<p>5. server2上面需要安装PostgreSQL的python module</p>
<p>sudo apt-get install python-psycopg2</p>
<p>否则nova-compute起不来</p>
<p>6. 试图安装Horizon，未果</p>
<p>Ubuntu上有openstack-dashboard这个包，装好之后按照<a title="OpenStackDashboard" href="http://wiki.openstack.org/OpenStackDashboard" target="_blank">这里</a>配置，还是没起来，应该是python的virtual env没有弄，不懂。</p>
<p>反正Horizon还在猛烈开发中，不怎么稳定，功能也有限，暂时不搞了吧。</p>
<p>7. 貌似server2根本不是必须的</p>
<p>估计就是为了nova-compute自己的分布，对于管理少量的虚拟机来说，一台机器应该足够了。</p>
]]></content:encoded>
			<wfw:commentRss>http://honnix.com/blog/archives/762/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VirtualBox里面的NumLock</title>
		<link>http://honnix.com/blog/archives/538</link>
		<comments>http://honnix.com/blog/archives/538#comments</comments>
		<pubDate>Thu, 18 Feb 2010 07:20:52 +0000</pubDate>
		<dc:creator>honnix</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[NumLock]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[Win]]></category>

		<guid isPermaLink="false">http://honnix.com/blog/?p=538</guid>
		<description><![CDATA[一直困惑我的问题，现在终于必须要解决了。 host是Mac，guest是Win，那么在guest里面shift+clear就是NumLock。简单，但是一直不知道。]]></description>
			<content:encoded><![CDATA[<p>一直困惑我的问题，现在终于必须要解决了。</p>
<p>host是Mac，guest是Win，那么在guest里面shift+clear就是NumLock。简单，但是一直不知道。</p>
]]></content:encoded>
			<wfw:commentRss>http://honnix.com/blog/archives/538/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>今天那叫一个郁闷，让X11给整得头大</title>
		<link>http://honnix.com/blog/archives/325</link>
		<comments>http://honnix.com/blog/archives/325#comments</comments>
		<pubDate>Sat, 16 May 2009 10:12:23 +0000</pubDate>
		<dc:creator>honnix</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[hal]]></category>
		<category><![CDATA[PyPanel]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[X11]]></category>
		<category><![CDATA[xorg-server]]></category>

		<guid isPermaLink="false">http://honnix.com/blog/?p=325</guid>
		<description><![CDATA[Gentoo，emerge -vuND world，结果X起不来了，现象就是鼠标、键盘完全没有反应，pypanel也出不来。 查log，发现vboxvideo内核模块找不到，于是加到autoload里面（真奇怪，这个模块是新版本的VirtualBox加的吧，原来我没加这个东西到autoload里面，也没有出错），结果还是不行，现象一样。 再查log，发现hal初始化错误：(EE) config/hal: couldn&#8217;t initialise context: (null) ((null))。于是核对xorg-server的编译选项，发现果然加入了hal。难道是hal的版本有问题？卸了重装，hal和xorg-server，还是不行。郁闷了～ 再仔细一想，hald没有启动，emerge没有把这个东西自动放到default的runlevel里面。启动hald，startx，终于工作了！ 还有一点要说的是，X启动之后不能只加载VBoxClient了，需要执行VBoxClient-all这个脚本，至于为什么，自己看看脚本就明白了。这个不兼容有点不爽。 顺便说一句，pypanel挺好用，但是不支持自动resise，也就调整分辨率之后它不会自动resize，有点不爽。尝试了一下hack，但是没有成功，给作者发了封信，看能不能收到回复。]]></description>
			<content:encoded><![CDATA[<p>Gentoo，emerge -vuND world，结果X起不来了，现象就是鼠标、键盘完全没有反应，pypanel也出不来。</p>
<p>查log，发现vboxvideo内核模块找不到，于是加到autoload里面（真奇怪，这个模块是新版本的VirtualBox加的吧，原来我没加这个东西到autoload里面，也没有出错），结果还是不行，现象一样。</p>
<p>再查log，发现hal初始化错误：<span id="main" style="visibility: visible;"><span id="search" style="visibility: visible;">(EE) <em>config</em>/<em>hal</em>: couldn&#8217;t <em>initialise context</em>: (null) ((null))。于是核对xorg-server的编译选项，发现果然加入了hal。难道是hal的版本有问题？卸了重装，hal和xorg-server，还是不行。郁闷了～</span></span></p>
<p><span style="visibility: visible;"><span style="visibility: visible;">再仔细一想，hald没有启动，emerge没有把这个东西自动放到default的runlevel里面。启动hald，startx，终于工作了！</span></span></p>
<p><span style="visibility: visible;"><span style="visibility: visible;">还有一点要说的是，X启动之后不能只加载VBoxClient了，需要执行VBoxClient-all这个脚本，至于为什么，自己看看脚本就明白了。这个不兼容有点不爽。</span></span></p>
<p><span style="visibility: visible;"><span style="visibility: visible;">顺便说一句，pypanel挺好用，但是不支持自动resise，也就调整分辨率之后它不会自动resize，有点不爽。尝试了一下hack，但是没有成功，给作者发了封信，看能不能收到回复。<br />
</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://honnix.com/blog/archives/325/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VirtualBox也跟我作对</title>
		<link>http://honnix.com/blog/archives/319</link>
		<comments>http://honnix.com/blog/archives/319#comments</comments>
		<pubDate>Sun, 26 Apr 2009 08:37:05 +0000</pubDate>
		<dc:creator>honnix</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[dd]]></category>
		<category><![CDATA[ISO]]></category>
		<category><![CDATA[VirtualBox]]></category>

		<guid isPermaLink="false">http://honnix.com/blog/?p=319</guid>
		<description><![CDATA[虚拟机用光盘怎么都启动不了，最后没办法，直接把光盘做成ISO。 dd if=/dev/dvd of=/tmp/xx.iso]]></description>
			<content:encoded><![CDATA[<p>虚拟机用光盘怎么都启动不了，最后没办法，直接把光盘做成ISO。</p>
<p>dd if=/dev/dvd of=/tmp/xx.iso</p>
]]></content:encoded>
			<wfw:commentRss>http://honnix.com/blog/archives/319/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>还是Gentoo的感觉比较好</title>
		<link>http://honnix.com/blog/archives/147</link>
		<comments>http://honnix.com/blog/archives/147#comments</comments>
		<pubDate>Sun, 13 Jul 2008 10:38:09 +0000</pubDate>
		<dc:creator>honnix</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[VirtualBox]]></category>

		<guid isPermaLink="false">http://honnix.com/blog/?p=147</guid>
		<description><![CDATA[终于经不住诱惑，又虚拟了一个Gentoo，感觉就是好。想要什么就装什么，不想要就一点多余都没有，嗯，不像Ubuntu，装好之后我还要慢慢删些用不着的东西。 不过有一点还是不爽，Gentoo里面gcc4.3还是没有stable，目前还是4.1，所以不支持我的core2。耐心等等吧。 顺便仔细玩了一把VirtualBox，还是很不错的，尤其是可以不带GUI启动，然后远程管理，这样即使host机器上没有X，也可以把guest启动起来，这个做法还是相当unix的，我喜欢。VirtualBox目前还不支持Mac上面的Bridge，我只能用NAT，然后做一些port mapping从host连到guest上，至于怎么弄，VirtualBox的manual里面说的已经相当详细了，我就不废话了。]]></description>
			<content:encoded><![CDATA[<p>终于经不住诱惑，又虚拟了一个Gentoo，感觉就是好。想要什么就装什么，不想要就一点多余都没有，嗯，不像Ubuntu，装好之后我还要慢慢删些用不着的东西。</p>
<p>不过有一点还是不爽，Gentoo里面gcc4.3还是没有stable，目前还是4.1，所以不支持我的core2。耐心等等吧。</p>
<p>顺便仔细玩了一把VirtualBox，还是很不错的，尤其是可以不带GUI启动，然后远程管理，这样即使host机器上没有X，也可以把guest启动起来，这个做法还是相当unix的，我喜欢。VirtualBox目前还不支持Mac上面的Bridge，我只能用NAT，然后做一些port mapping从host连到guest上，至于怎么弄，VirtualBox的manual里面说的已经相当详细了，我就不废话了。</p>
]]></content:encoded>
			<wfw:commentRss>http://honnix.com/blog/archives/147/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VirtualBox里面如何开关NumLock</title>
		<link>http://honnix.com/blog/archives/536</link>
		<comments>http://honnix.com/blog/archives/536#comments</comments>
		<pubDate>Thu, 17 Feb 2000 03:17:08 +0000</pubDate>
		<dc:creator>honnix</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[NumLock]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://honnix.com/blog/?p=536</guid>
		<description><![CDATA[这个问题困扰了我很久，终于下决心Google一把，当然也便有了结果。 如果guest是Windows的话，在guest里按shift+clear就可以开关了。当然，我说的是Mac。]]></description>
			<content:encoded><![CDATA[<p>这个问题困扰了我很久，终于下决心Google一把，当然也便有了结果。</p>
<p>如果guest是Windows的话，在guest里按shift+clear就可以开关了。当然，我说的是Mac。</p>
]]></content:encoded>
			<wfw:commentRss>http://honnix.com/blog/archives/536/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

