この文書について 色々な理由でXenのイメージファイルをマウントしたくなった時の参考に。勿論、対象のdomUは停止した状態でマウントしましょう。 追加パッケージ kpartxとutil-linuxが必要ですが、きっと入っているでしょう。 確認 Xenのイメージファイルは、デフォルトでは/var/lib/xen/imagesにあります。 fileコマンドで確認すると、以下のようになります。 # file xen.img xen.img: x86 boot sector; partition 1: ID=0x83, active, starthead 1, startsector 63, 208782 sectors; partition 2: ID=0x8e, starthead 0, startsector 208845, 20755980 sectors, code offset 0x4
![Xenのイメージファイルをマウントする](https://cdn-ak-scissors.b.st-hatena.com/image/square/8d71ff5111e05619a10d29bb40d7aebaa75c8fbc/height=288;version=1;width=512/https%3A%2F%2Fs0.wp.com%2Fi%2Fblank.jpg)