Xen
概要
仮想化ソフトウェア
公式サイト
Computer Laboratory - Xen virtual machinemonitor
インストール
CentOSの場合インストール時に仮想化を選択してインストールすれば簡単です。
# uname -r
# service xend status
# xm list
インストール前に
free -m
して空きメモリ量を確認します。空きが258M以上ないとインストールが停止します。
# virt-install --nographics
What is the name of your virtual machine? vm_test
How much RAM should be allocated (in megabytes)? 256
What would you like to use as the disk (path)? /var/xen/vm_test.xenvm
How large would you like the disk (/var/xen/vm_test.xenvm) to be (in gigabytes)? 2
What is the install location? http://ftp.riken.jp/Linux/centos/5.2/os/i386/
インストール直後はrootでログインして新規ユーザを作成するようにします。
CTRL+] でドメイン0ヘ 、xm console vm_test で接続
設定
自動起動設定
ln -s /etc/xen/vm_test /etc/xen/auto/vm_test
関連フォルダ
/etc/xen/
/etc/xen/auto
コマンド
/usr/sbin/xm list
利用方法
参考サイト
LinuxMania:仮想化ソフトウェアXenを使う(CentOS)
サーバの構築を簡単にするためのステップ (その5:Cobber編 Part1 ) | cafe chantant blog
Kazuho@Cybozu Labs:リモートからXenのDomUとかLVMやファイルを差分バックアップするスクリプトを書いた
