<?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>Groove Labo &#187; 仮想環境</title>
	<atom:link href="http://labo.opengroove.com/blog/category/vm/feed/" rel="self" type="application/rss+xml" />
	<link>http://labo.opengroove.com/blog</link>
	<description>株式会社オープングルーヴの開発者のブログ</description>
	<lastBuildDate>Tue, 28 Sep 2010 06:09:57 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Amazon EC2でAMIの作成(ec2-bundle-vol)に失敗</title>
		<link>http://labo.opengroove.com/blog/2009/07/21/amazon-ec2%e3%81%a7ami%e3%81%ae%e4%bd%9c%e6%88%90ec2-bundle-vol%e3%81%ab%e5%a4%b1%e6%95%97/</link>
		<comments>http://labo.opengroove.com/blog/2009/07/21/amazon-ec2%e3%81%a7ami%e3%81%ae%e4%bd%9c%e6%88%90ec2-bundle-vol%e3%81%ab%e5%a4%b1%e6%95%97/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 11:13:39 +0000</pubDate>
		<dc:creator>sugimoto</dc:creator>
				<category><![CDATA[Amazon EC2]]></category>
		<category><![CDATA[EC2]]></category>

		<guid isPermaLink="false">http://labo.opengroove.com/blog/?p=201</guid>
		<description><![CDATA[Amazon EC2 でインスタンスをいつでも複製/復元できるよう自分用のAMIを作成していたところ、ec2-bundle-vol に失敗しました。 -bash-3.2# ec2-bundle-vol -d /mnt -k xxxxx.pem -c xxxxx.pem -u xxxx-xxxxx-xxxx Please specify a value for arch [i386]: Copying / into the image file /mnt/image... Excluding: /sys /proc /dev/pts /proc/sys/fs/binfmt_misc /dev /media /mnt /proc /sys /mnt/image /mnt/img-mnt 1+0 records in 1+0 records out 1048576 bytes (1.0 MB) copied, 0.001797 seconds, 584 MB/s [...]]]></description>
			<content:encoded><![CDATA[<p>
Amazon EC2 でインスタンスをいつでも複製/復元できるよう自分用のAMIを作成していたところ、ec2-bundle-vol に失敗しました。
</p>

<pre>
-bash-3.2# ec2-bundle-vol -d /mnt -k xxxxx.pem -c xxxxx.pem  -u xxxx-xxxxx-xxxx
 Please specify a value for arch [i386]:
 Copying / into the image file /mnt/image...
 Excluding:
          /sys
          /proc
          /dev/pts
          /proc/sys/fs/binfmt_misc
          /dev
          /media
          /mnt
          /proc
          /sys
          /mnt/image
          /mnt/img-mnt
 1+0 records in
 1+0 records out
 1048576 bytes (1.0 MB) copied, 0.001797 seconds, 584 MB/s
 mke2fs 1.39 (29-May-2006)
 ERROR: execution failed: "rsync -rlpgoD -t -r -S -l --exclude /sys --exclude /proc --exclude /dev/pts --exclude /proc/sys/fs/binfmt_misc --exclude /dev --exclude /media --exclude /mnt --exclude /proc --exclude /sys --exclude /mnt/image --exclude /mnt/img-mnt -X /* /mnt/img-mnt 2>&#038;1 > /dev/null"
</pre>

<p>
つい1日前には同じインスタンスから実行できたのに。。。
</p>

<p>
rsync コマンドが実行エラーってなってます。
ec2-bundle-vol がrsyncコマンドを実行して、途中で失敗したようです。
</p>

<p>
ネットで調べてみると、rsyncコマンドの実行エラーで失敗する理由として、2つのパターンがあるようです。
</p>

<h4>1. volume保存用の領域が足りない</h4>

<p>
AMI保存用のイメージファイルを作成中にインスタンスのディスク領域を使いきった場合、エラーとなるようです。
この場合は、インスタンス内のいらないファイルを削除するしかないですね。。
</p>

<h4>2. rsync実行中にファイルが削除されたりしてしまった</h4>

<p>
rsyncコマンドの途中で対象となっているファイルやディレクトリが変更されると、コマンドが失敗します。
</p>

<p>
プログラムの動作中に ec2-bundle-vol を起動すると、rsyncコマンドが失敗してしまうことがあるということ。
</p>

<p>
エラーメッセージの中にあるrsyncコマンドを直接実行すると、どちらが原因かわかるようです。
</p>

<pre>
-bash-3.2# rsync -rlpgoD -t -r -S -l --exclude /sys --exclude /proc --exclude /dev/pts --exclude /proc/sys/fs/binfmt_misc --exclude /dev --exclude /media --exclude /mnt --exclude /proc --exclude /sys --exclude /mnt/image --exclude /mnt/img-mnt -X /* /mnt/img-mnt
file has vanished: "/var/nagios/spool/checkresults/check1n3woE"
rsync warning: some files vanished before they could be transferred (code 24) at main.c(892) [sender=2.6.8]
</pre>

<p>
/var/nagios/spool にあるファイルがなくなったということです。
</p>

<p>
<a href="http://www.nagios.org/">nagios</a>はサーバー監視用のサービスですね。確かに昨日インストールしました。AMIを作成する間は、止めてしまいましょう。
</p>

<pre>
sudo /etc/init.d/nagios stop
</pre>

<p>
nagiosを止めたら ec2-bundle-vol コマンドが成功し、無事にAMIが作成できました。めでたしめでたし。
</p>

<p>
Daemon のようなプログラムは実行しているという認識が低いので、要注意ですね。
</p>
]]></content:encoded>
			<wfw:commentRss>http://labo.opengroove.com/blog/2009/07/21/amazon-ec2%e3%81%a7ami%e3%81%ae%e4%bd%9c%e6%88%90ec2-bundle-vol%e3%81%ab%e5%a4%b1%e6%95%97/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>xm console dom-u が動かない場合の対応</title>
		<link>http://labo.opengroove.com/blog/2009/07/09/xm-console-dom-u-%e3%81%8c%e5%8b%95%e3%81%8b%e3%81%aa%e3%81%84%e5%a0%b4%e5%90%88%e3%81%ae%e5%af%be%e5%bf%9c/</link>
		<comments>http://labo.opengroove.com/blog/2009/07/09/xm-console-dom-u-%e3%81%8c%e5%8b%95%e3%81%8b%e3%81%aa%e3%81%84%e5%a0%b4%e5%90%88%e3%81%ae%e5%af%be%e5%bf%9c/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 14:26:09 +0000</pubDate>
		<dc:creator>sugimoto</dc:creator>
				<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://labo.opengroove.com/blog/?p=117</guid>
		<description><![CDATA[sugimotoです。ひさしぶりにxenを使っています。 xm console dom-u でdom-u のコンソールにログインしようとすると、 xenconsole: Could not read tty from store: No such file or directory とエラーになって、ログインできない。 > xm create dom-u -c で起動時にログインしようとしてもログインできなかった。 検索してもなかなか出てこなかったので、書いておきます。 /usr/sbin/xenconsoled でxenconsoled を起動するとconsole が使えるようになりました。 参考: Xen hosting: Lessons from Trenches]]></description>
			<content:encoded><![CDATA[<p>sugimotoです。ひさしぶりにxenを使っています。</p>

<p>xm console dom-u でdom-u のコンソールにログインしようとすると、</p>

<pre>
xenconsole: Could not read tty from store: No such file or directory
</pre>

<p>とエラーになって、ログインできない。</p>

<pre>
> xm create dom-u -c
</pre>

<p>で起動時にログインしようとしてもログインできなかった。</p>

<p>検索してもなかなか出てこなかったので、書いておきます。</p>

<p>/usr/sbin/xenconsoled</p>

<p>でxenconsoled を起動するとconsole が使えるようになりました。</p>

<ul>
<li>参考: <a href="http://wiki.xen.prgmr.com/xenophilia/2008/03/chris-xenconsole-could-not-rea.html">Xen hosting: Lessons from Trenches</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://labo.opengroove.com/blog/2009/07/09/xm-console-dom-u-%e3%81%8c%e5%8b%95%e3%81%8b%e3%81%aa%e3%81%84%e5%a0%b4%e5%90%88%e3%81%ae%e5%af%be%e5%bf%9c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>xen でゲストOSのネットワークインターフェイスのみ使う</title>
		<link>http://labo.opengroove.com/blog/2008/10/22/xen-%e3%81%a7%e3%82%b2%e3%82%b9%e3%83%88os%e3%81%ae%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%83%95%e3%82%a7%e3%82%a4%e3%82%b9%e3%81%ae%e3%81%bf/</link>
		<comments>http://labo.opengroove.com/blog/2008/10/22/xen-%e3%81%a7%e3%82%b2%e3%82%b9%e3%83%88os%e3%81%ae%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%83%95%e3%82%a7%e3%82%a4%e3%82%b9%e3%81%ae%e3%81%bf/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 08:00:42 +0000</pubDate>
		<dc:creator>sugimoto</dc:creator>
				<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://labo.opengroove.com/blog/index.php/2008/10/22/xen-%e3%81%a7%e3%82%b2%e3%82%b9%e3%83%88os%e3%81%ae%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%83%95%e3%82%a7%e3%82%a4%e3%82%b9%e3%81%ae%e3%81%bf/</guid>
		<description><![CDATA[何もする必要はありませんでした。。 xenの仮想サーバーでDom-U(ゲスト)をインターネット向けのサーバーとして利用することになりました。 Dom-0(ホスト)用のハードウェアにはインターフェイスがeth0, eth1の2つあり、そのうち、eth1を内部LAN向けのインターフェイスとして使っています。 Dom-Uもネットワークインターフェイスを2つ作り、eth1を内部LAN向け、eth0をインターネット向けとして、それぞれ、Dom-0のブリッジとつなげました。 VMware では、ホストOSのインターフェイスを停止させると、そのインターフェイスを使っているゲストOSのインターフェイスも使えなくなってしまいます。 そのため、xenでもDom-0のeth0インターフェイスはあげておく必要があると思いましたが、落とした状態でもDom-Uの外向けインターフェイスは利用可能でした。 こんな状態と思っていましたが INTERNET --+------------------------------ &#124; &#124; &#124; +-------------------------------+ &#124; &#124; +---------------------------+ &#124; &#124; &#124; &#124; Dom-U (ゲスト) &#124; &#124; &#124; &#124; &#124; +--------+ +--------+ &#124; &#124; &#124; &#124; &#124; &#124; eth0 &#124; &#124; eth1 &#124; &#124; &#124; &#124; &#124; &#124; +--------+ +---+----+ &#124; &#124; &#124; &#124; +-----&#124;--------------&#124;------+ &#124; [...]]]></description>
			<content:encoded><![CDATA[<p>何もする必要はありませんでした。。</p>

<p>xenの仮想サーバーでDom-U(ゲスト)をインターネット向けのサーバーとして利用することになりました。</p>

<p>Dom-0(ホスト)用のハードウェアにはインターフェイスがeth0, eth1の2つあり、そのうち、eth1を内部LAN向けのインターフェイスとして使っています。</p>

<p>Dom-Uもネットワークインターフェイスを2つ作り、eth1を内部LAN向け、eth0をインターネット向けとして、それぞれ、Dom-0のブリッジとつなげました。</p>

<p>VMware では、ホストOSのインターフェイスを停止させると、そのインターフェイスを使っているゲストOSのインターフェイスも使えなくなってしまいます。</p>

<p>そのため、xenでもDom-0のeth0インターフェイスはあげておく必要があると思いましたが、落とした状態でもDom-Uの外向けインターフェイスは利用可能でした。</p>

<p>こんな状態と思っていましたが</p>

<pre>
INTERNET
  --+------------------------------
    |
    |
    |  +-------------------------------+
    |  | +---------------------------+ |
    |  | |       Dom-U (ゲスト)      | |
    |  | | +--------+     +--------+ | |
    |  | | |  eth0  |     |  eth1  | | |
    |  | | +--------+     +---+----+ | |
    |  | +-----|--------------|------+ |
    |  |       |              |        |
    |  |   +---+----+     +---+----+   |
    |  |   | vifbr0 |     | vifbr1 |   |
    |  |   +---+----+     +---+----+   |
    |  |       |              |        |
    |  |   +---+----+     +---+----+   |
    +------+  eth0  |     |  eth1  +------+ < < eth0 が停止状態だとDom-Uも外にいけない
       |   +--------+     +--------+   |  |
       |        Dom-0 (ホスト)         |  |
       +-------------------------------+  |
                                          |
LAN/INTRANET                              |
  ----------------------------------------+---
</pre>

<p>そういうわけではなく、virtual interfaceで外と通信している</p>

</pre><pre>
INTERNET
  --+------------------------------
    |
    |
    |  +-------------------------------+
    |  | +---------------------------+ |
    |  | |       Dom-U (ゲスト)      | |
    |  | | +--------+     +--------+ | |
    |  | | |  eth0  |     |  eth1  | | |
    |  | | +--------+     +---+----+ | |
    |  | +-----|--------------|------+ |
    |  |       |              |        |
    |  |   +---+----+     +---+----+   |
    +------+ vifbr0 |     | vifbr1 +------+
       |   +---+----+     +---+----+   |  |
       |       |              |        |  |
       |   +---+----+     +---+----+   |  |
       |   |  eth0  |     |  eth1  |   |  | < < eth0 が停止状態でもDom-Uには関係なし
       |   +--------+     +--------+   |  |
       |        Dom-0 (ホスト)         |  |
       +-------------------------------+  |
                                          |
LAN/INTRANET                              |
  ----------------------------------------+---
</pre>

<p>状態のようでした。</p>
</pre>]]></content:encoded>
			<wfw:commentRss>http://labo.opengroove.com/blog/2008/10/22/xen-%e3%81%a7%e3%82%b2%e3%82%b9%e3%83%88os%e3%81%ae%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%83%95%e3%82%a7%e3%82%a4%e3%82%b9%e3%81%ae%e3%81%bf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMware Server 2.0 でアプリケーションエラーが。。</title>
		<link>http://labo.opengroove.com/blog/2008/10/16/vmware-server-20-%e3%81%a7%e3%82%a2%e3%83%97%e3%83%aa%e3%82%b1%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%8c%e3%80%82%e3%80%82/</link>
		<comments>http://labo.opengroove.com/blog/2008/10/16/vmware-server-20-%e3%81%a7%e3%82%a2%e3%83%97%e3%83%aa%e3%82%b1%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%8c%e3%80%82%e3%80%82/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 02:01:45 +0000</pubDate>
		<dc:creator>sugimoto</dc:creator>
				<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://labo.opengroove.com/blog/index.php/2008/10/16/vmware-server-20-%e3%81%a7%e3%82%a2%e3%83%97%e3%83%aa%e3%82%b1%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%8c%e3%80%82%e3%80%82/</guid>
		<description><![CDATA[自分のPC (Wndows XP Pro)のVMware Server を1.0.7から2.0にしたら、vmware-hostd.exe がアプリケーションエラーとなってしまった。。 Googleで検索した、こんな方法や、サポートページを調べたが、解決しませんでした。 解決方法は、以下でした。 Documents and Settings/All Users/Application Data/VMware/VMware Server/vm-list を見てみると、次のような感じ。 # This file is automatically generated. # Hand-editing this file is not recommended. config "C:\Virtual Machines\xxxxx-dev\Other Linux 2.6.x kernel.vmx" config "C:\Virtual Machines\xxxxx-test\Other Linux 2.6.x kernel.vmx" < < これは削除したはず 前のバージョンで削除していたゲストOSのイメージがリストされていました。 この行を削除して、サービスから、VM Host Agent を再起動すると、うまくいきました。]]></description>
			<content:encoded><![CDATA[<p>自分のPC (Wndows XP Pro)のVMware Server を1.0.7から2.0にしたら、vmware-hostd.exe がアプリケーションエラーとなってしまった。。</p>

<p>Googleで検索した、<a href="http://kojiy2.blog.so-net.ne.jp/20080717">こんな方法</a>や、<a href="http://communities.vmware.com/thread/112602?tstart=0&#038;start=0">サポートページ</a>を調べたが、解決しませんでした。</p>

<p>解決方法は、以下でした。</p>

<p>Documents and Settings/All Users/Application Data/VMware/VMware Server/vm-list</p>

<p>を見てみると、次のような感じ。</p>

<pre>
# This file is automatically generated. 
# Hand-editing this file is not recommended. 
config "C:\Virtual Machines\xxxxx-dev\Other Linux 2.6.x kernel.vmx"
config "C:\Virtual Machines\xxxxx-test\Other Linux 2.6.x kernel.vmx" < < これは削除したはず
</pre>

<p>前のバージョンで削除していたゲストOSのイメージがリストされていました。<br />
この行を削除して、サービスから、VM Host Agent を再起動すると、うまくいきました。</p>
</pre>]]></content:encoded>
			<wfw:commentRss>http://labo.opengroove.com/blog/2008/10/16/vmware-server-20-%e3%81%a7%e3%82%a2%e3%83%97%e3%83%aa%e3%82%b1%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%8c%e3%80%82%e3%80%82/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>xenでDomUをvirt-installするときのquoteの問題</title>
		<link>http://labo.opengroove.com/blog/2008/06/02/xen%e3%81%a7domu%e3%82%92virt-install%e3%81%99%e3%82%8b%e3%81%a8%e3%81%8d%e3%81%aequote%e3%81%ae%e5%95%8f%e9%a1%8c/</link>
		<comments>http://labo.opengroove.com/blog/2008/06/02/xen%e3%81%a7domu%e3%82%92virt-install%e3%81%99%e3%82%8b%e3%81%a8%e3%81%8d%e3%81%aequote%e3%81%ae%e5%95%8f%e9%a1%8c/#comments</comments>
		<pubDate>Mon, 02 Jun 2008 02:03:19 +0000</pubDate>
		<dc:creator>sugimoto</dc:creator>
				<category><![CDATA[Xen]]></category>
		<category><![CDATA[kickstart]]></category>

		<guid isPermaLink="false">http://labo.opengroove.com/blog/index.php/2008/06/02/xen%e3%81%a7domu%e3%82%92virt-install%e3%81%99%e3%82%8b%e3%81%a8%e3%81%8d%e3%81%aequote%e3%81%ae%e5%95%8f%e9%a1%8c/</guid>
		<description><![CDATA[CentOS 5.1にインストールしたxenでDomUをkickstartを使って自動的に作成する設定をしていたら、その問題が起きました。 >sudo /usr/sbin/virt-install --extra-args='ks=http://ks-server/kickstart.php?host=myhost&#038;ip=192.168.1.151&#038;mac=00:00:00:00:01:51' What is the name of your virtual machine? myhost How much RAM should be allocated (in megabytes)? 512 What would you like to use as the disk (path)? /var/xen/myhost.img How large would you like the disk (/var/xen/myhost.img) to be (in gigabytes)? 8 Would you like to enable graphics support? (yes [...]]]></description>
			<content:encoded><![CDATA[<p>
CentOS 5.1にインストールしたxenでDomUをkickstartを使って自動的に作成する設定をしていたら、その問題が起きました。
</p>

<pre>
>sudo /usr/sbin/virt-install
    --extra-args='ks=http://ks-server/kickstart.php?host=myhost&#038;ip=192.168.1.151&#038;mac=00:00:00:00:01:51'

What is the name of your virtual machine? myhost
 How much RAM should be allocated (in megabytes)? 512
 What would you like to use as the disk (path)? /var/xen/myhost.img
 How large would you like the disk (/var/xen/myhost.img) to be (in gigabytes)? 8
 Would you like to enable graphics support? (yes or no) no
 What is the install location? ftp://ftp.riken.jp/Linux/centos/4/os/i386/


Starting install...
Retrieving CentOS...                                             310 B 00:00
Retrieving vmlinuz...     100% |=========================| 1.0 MB    00:00
Retrieving initrd.img...  100% |=========================| 853 kB    00:00
Creating storage file...  100% |=========================| 8.0 GB    00:00
libvir: XML error : line 10: EntityRef: expecting ';'
libvir: XML error : line 10: EntityRef: expecting ';'
libvir: Xen Daemon error : XML description for domain is not well formed or invalid
Traceback (most recent call last):
  File "/usr/sbin/virt-install", line 633, in ?
    main()
  File "/usr/sbin/virt-install", line 578, in main
    dom = guest.start_install(conscb,progresscb)
  File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 649, in start_install
    return self._do_install(consolecb, meter)
  File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 666, in _do_install
    self.domain = self.conn.createLinux(install_xml, 0)
  File "/usr/lib/python2.4/site-packages/libvirt.py", line 503, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirt.libvirtError: virDomainCreateLinux() failed XML description for domain is not well formed or invalid
</pre>

<p>
virt-install では、extra-argsに&#8221;ks=&#8221;を設定して、kickstartの設定ファイルを読み込むことができます。
このとき、リモートの設定ファイルを変更することなく設定ファイルを読み込むために、設定ファイルをPHPにして、Query Stringで設定ファイルのパラメータを変更できるようにしていました。
</p>

<p>
この場合、host/ip/macを引数として渡しています。
</p>

<p>
Googleに聞いたところ、CentOS 5.1のlibvirtに問題があるようでした。
</p>

<ul class="normal">
  <li><a href="https://bugzilla.redhat.com/show_bug.cgi?id=417051" title="ドメインXMLでfilename内のspecial characterがエスケープされない問題">ドメインXMLでfilename内のspecial characterがエスケープされない問題</a></li>
</ul>

<p>
ここでは、install locationにシングルクォートが入っている場合を指摘していますが、設定全体でXMLのspecial characterのエスケープがされていないため、今回のようにextra-argsにアンパサンド(&amp;)が入っている場合も同様の問題が起こりました。
</p>

<p>
問題を回避するため、kickstartの設定をおいているサーバーのapacheの設定を修正し、kickstartの設定ファイルのURIを変更しました。
</p>

<p>
http://ks-server/kickstart/myhost/192.168.1.151/00:00:00:00:01:51 でkickstartの設定ファイルを取得する
</p>

<pre>
    RewriteLogLevel 9
    RewriteLog "/var/log/apache2/www-local-rewrite.log"
    RewriteRule ^/kickstart/(.*?)/(.*?)/(.*)$ /kickstart.php?host=$1&#038;ip=$2&#038;mac=$3 [L]
</pre>

<p>
これで自動インストールすることができました。
</p>

<p>
このバグはCentOS 5.2のlibvirtでは修正されているらしく、<a href="http://rhn.redhat.com/errata/RHEA-2008-0371.html">修正</a>もすでに公開されています。
</p>

<p>
参考
</p>

<ul>
  <li><a href="https://bugzilla.redhat.com/show_bug.cgi?id=417051" title="ドメインXMLでfilename内のspecial characterがエスケープされない問題">ドメインXMLでfilename内のspecial characterがエスケープされない問題</a></li>
  <li><a href="http://rhn.redhat.com/errata/RHEA-2008-0371.html">上の問題の修正</a></li>
  <li><a href="http://ken-etsu-tech.blogspot.com/2007/11/xen-domuanaconda-kickstart.html" title="検閲Tech: Xen DomUインストールでAnaconda Kickstartを使う">検閲Tech: Xen DomUインストールでAnaconda Kickstartを使う</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://labo.opengroove.com/blog/2008/06/02/xen%e3%81%a7domu%e3%82%92virt-install%e3%81%99%e3%82%8b%e3%81%a8%e3%81%8d%e3%81%aequote%e3%81%ae%e5%95%8f%e9%a1%8c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

