ISCSI Boot

From ArchWiki
Revision as of 01:27, 27 June 2010 by Conker (talk | contribs) (Created page with '== Client / Initiator Setup == === Install over iSCSI === Either use net as the install source or manually ifconfig and dhcp. Now before you continue to "Prepare Hard Drive(s)…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Client / Initiator Setup

Install over iSCSI

Either use net as the install source or manually ifconfig and dhcp.

Now before you continue to "Prepare Hard Drive(s)" install open-iscsi and connect to target.

Be sure to your servers IP address, Name, etc.

wget http://aur.archlinux.org/packages/open-iscsi/open-iscsi.tar.gz

tar xzvf open-iscsi.tar.gz

cd open-iscsi

pacman -Sy

pacman -S patch make gcc

makepkg --asroot

pacman -U open-iscsi...pkg.tar.xz

modprobe iscsi_tcp

iscsistart -i iqn.2010-06.ClientName:desc -t iqn.2010-06.ServerName:desc -g 1 -a 192.168.1.100

Continue to prepare the hard drive, using the iSCSI target drive.

Note: When you "Manually Configure block devices, filesystems and mountpoints" make sure that you use UUID. This way there won't be any issues booting if the number of devices changes (/dev/sda /dev/sdb ...) by adding or removing hard drives, usb thumb drives, etc... or booting it on different machines.
Note: It is recommended that you NOT include swap on the iSCSI drive when creating the partitions, you can just ignore the warning.

Before you "Configure System" you must install open-iscsi to the "future" root filesystem, and download and install the hook for booting from iSCSI.

mv open-iscsi...pkg.tar.xz /mnt/root

chroot /mnt/ /bin/bash

cd /root/

pacman -U open-iscsi...pkg.tar.xz

wget http://aur.archlinux.org/packages/HOOK HERE/HOOK HERE.tar.gz

exit

Add "iscsi" to the HOOKS in /etc/mkinitcpio.conf

Note: If you plan on booting this installation of Arch on machines with nic cards that require different modules, "remove" autodetect from HOOKS