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: