<?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>doradoradora &#187; XenServer</title>
	<atom:link href="http://dora-0o0-emon.net/category/xenserver/feed" rel="self" type="application/rss+xml" />
	<link>http://dora-0o0-emon.net</link>
	<description>blog</description>
	<lastBuildDate>Sat, 19 Sep 2009 05:50:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>XenServer5.5 と CentOS5</title>
		<link>http://dora-0o0-emon.net/linux/entry-21.html</link>
		<comments>http://dora-0o0-emon.net/linux/entry-21.html#comments</comments>
		<pubDate>Wed, 01 Jul 2009 15:02:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[XenServer]]></category>
		<category><![CDATA[新規タグの追加]]></category>

		<guid isPermaLink="false">http://dora-0o0-emon.net/?p=21</guid>
		<description><![CDATA[XenServer5.5 上で動いている CentOS5 に ORACLE11g をインストールしようと思い
XenCenter のコンソールから startx を打ったところ

(EE) Unable to locat [...]]]></description>
			<content:encoded><![CDATA[<p>XenServer5.5 上で動いている CentOS5 に ORACLE11g をインストールしようと思い<br />
XenCenter のコンソールから startx を打ったところ</p>
<pre class="brush: plain;">
(EE) Unable to locate/open config file
xf86PciVideoInfo is not set
(==) Using default built-in configuration (45 lines)
(EE) open /dev/fb0: No such file or directory
(EE) No devices detected.

Fatal server error:
no screens found
XIO:  fatal IO error 104 (Connection reset by peer) on X server &quot;:0.0&quot;
      after 0 requests (0 known processed) with 0 events remaining.
</pre>
<p><span id="more-21"></span><br />
とエラーがでてしまう。<br />
何も考えずに X Window を再インストール。</p>
<pre class="brush: plain;">
yum groupremove &quot;GNOME Desktop Environment&quot;
yum groupinstall &quot;GNOME Desktop Environment&quot;
</pre>
<p>やっぱりダメ。。。<br />
<br />
<script type="text/javascript"><!--
google_ad_client = "pub-8857586699971285";
/* 728x90, 作成済み 09/09/06 */
google_ad_slot = "5536792068";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
<br />
Google先生に Citrixのサイト 内を 「vnc」 で検索してもらうと<br />
<a href="http://docs.vmd.citrix.com/XenServer/4.0.1/ja/guest/ch04s07.html">4.7. VM 用 VNC の設定</a> がありました＾ー＾<br />
読み進めていくと、「GDM 設定ファイル」にアレコレ追加する必要があるようなので追加してみます。</p>
<pre class="brush: plain;">
vi /etc/gdm/custom.conf

# NOTE: Lines that begin with &quot;#&quot; are considered comments.
#
# Have fun!

[daemon]

[security]

[xdmcp]

[gui]

[greeter]

[chooser]

[debug]

# Note that to disable servers defined in the defaults.conf file (such as
# 0=Standard, you must put a line in this file that says 0=inactive, as
# described in the Configuration section of the GDM documentation.
#
[servers]
0=VNC

[server-VNC]
name=VNC Server
command=/usr/bin/Xvnc -SecurityTypes None -geometry 1024x768 -depth 16 -BlacklistTimeout 0
flexible=true

# Also note, that if you redefine a [server-foo] section, then GDM will
# use the definition in this file, not the defaults.conf file.  It is
# currently not possible to disable a [server-foo] section defined
# in the defaults.conf file.
</pre>
<p>んでもって</p>
<pre class="brush: plain;">
gdm start
startx

xauth:  creating new authority file /root/.serverauth.3119
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.

Xlib: connection to &quot;:0.0&quot; refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
giving up.
xinit:  unable to connect to X server
xinit:  No such process (errno 3):  Server error.
</pre>
<p>ぐはっ＞＜<br />
・・・<br />
とりあえず /tmp/.X0-lock を削除してみて<br />
再起動。<br />
<br />
おっ！！<br />
XenCenter のコンソールに「switch to  graphical console」　のボタンが押せるようになりました。<br />
さっそく押してみると。<br />
<br />
またもや失敗・・・<br />
ネットを徘徊していると<br />
<a href="http://forums.citrix.com/thread.jspa?threadID=240951&#038;tstart=135">Thread: Cannot get VNC to CentOS 5.2 x64 on XenServer 5</a> なんてのを発見＠＠<br />
パラパラ読んでいると（英語は読めないので半分は想像です）<br />
xen-tools はインストールしたか？<br />
vncserver は自動起動にしたか？<br />
inittab の runlevel は５にしたか？<br />
と書かれてます。<br />
<br />
さっそくやってみます。<br />
どのプロセスを再起動していいのかわからないので<br />
「shutdown -r now」<br />
んで<br />
「switch to  graphical console」 ボタンを押してみると・・・<br />
<br />
<img src="http://dora-0o0-emon.net/wordpress/wp-content/ws000007.jpg" width="300" height="200"　alt="gnome login" /><br />
<br />
ようやくグラフィカルログインが起動しました！！<br />
まだ英語表示だが、i18n を書き換えると日本語表示になる気がするので今日はこれでお終い、</p>
]]></content:encoded>
			<wfw:commentRss>http://dora-0o0-emon.net/linux/entry-21.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
