XenServerをiSCSIブートする設定のメモ

iSCSI SANからのXenServerのBOOTは正式には対応していませんが、技術的には可能です。

http://forums.citrix.com/thread.jspa?threadID=249734&tstart=0

って事でやってみた


XenServer5.5でも5.6でこの通りでいけました。

手順は、

ここのとおりやればOKです。
http://www.rienbroekstra.nl/?q=node/19


インストールCDからshellに入る


# Insert relevant kernel modules
modprobe scsi_transport_iscsi
modprobe iscsi_tcp


# Configure our initiator name, replace the name with whatever is correct for your organisation
iSCSIイニシエータ名
echo "InitiatorName=iqn.2010-01.com.example:whatever" > /etc/iscsi/initiatorname.iscsi


# Start the iscsi daemon
iscsid


# Configure the network interface which is to be used to access the iscsi target, and bring it up
XenServer側のIP
ip addr add 1.2.3.4/24 dev eth0
ifconfig eth0 up


# Discover the available targets on your iscsi filer (This step is necessary, even if you know what the correct target is)
iSCSI側のIP
iscsiadm -m discovery -t sendtargets -p 1.2.3.1


# Connect to the target
iSCSIのイニシエーター名とIP
iscsiadm -m node --targetname iqn.2006-01.com.openfiler:whatever -p 1.2.3.1 --login


# Kill and restart iscsid. I'm not sure that this is necessary, but it might write the correct configuration to /etc/iscsi/, so I guess it can't hurt.
psで確認するとiscsidのプロセスが2ついるのでkillしてもう一回iscsid


# Exit the shell in order to start the installer.
exit


Xenのインストールを進めていけば、インストール先の選択にiSCSIターゲットが出てくる