====== FreeBSD iSCSI Boot ======
Moduł do kernela:
net/isboot-kmod
pkg install -y isboot-kmod
echo 'isboot_load="YES"' >> /boot/loader.conf
Konfiguracja DHCP:
host diskless2 {
hardware ethernet 00:50:56:23:e7:5d;
fixed-address 192.168.31.29;
if exists user-class and option user-class = "iPXE" {
filename "http://paco.mky.waw.pl/diskless2.conf"; }
else {
next-server 192.168.31.2;
filename "/boot/ipxe.efi"; }
}
Konfiguracja iPXE:
#!ipxe
ifopen net0
dhcp net0
set username diskless2
set password testytesty12
sanboot iscsi:192.168.31.2::::iqn.2012-06.pl.waw.paco:diskless2
Konfiguracja iSCSI:
auth-group ag0 {
chap diskless2 testytesty12
}
portal-group pg0 {
discovery-auth-group no-authentication
listen 192.168.31.2
}
target iqn.2012-06.pl.waw.paco:diskless2 {
auth-group ag0
portal-group pg0
lun 0 {
path /dev/zvol/tsh/iscsi/diskless2
}
}
Do ''/etc/rc.conf'':
ctld_enable="YES"
Linki:
* [[https://github.com/jnielsendotnet/isboot]]
* [[https://people.freebsd.org/~blackend/en_US.ISO8859-1/books/handbook/network-iscsi.html]]
* [[https://web.archive.org/web/20160407164515/http://shell.peach.ne.jp/aoyama/archives/2100]] -- opis po japońsku jak to ustawić
* [[https://ipxe.org/docs]]
* [[https://forum.ipxe.org/showthread.php?tid=30869|iBFT table lost / not found after iSCSI boot]] -- chyba dlatego FreeBSD nie bootuje w UEFI (system nie widzi iBFT - iSCSI Boot Firmware Table)