xcat-core
xcat-core copied to clipboard
Anyone can help make iscsi boot work with UEFI? (to fix a iscsi uefi issue)
trafficstars
Luckily the iscsi boot is still workable for my BIOS PXE vms, althought it relies on the outdated tgtadm. But when boot with UEFI PXE, the lease file and bootloader config file are not generated correctly. I have to make the following ugly hacks to work around the issue.
/opt/xcat/lib/perl/xCAT_plugin/dhcp.pm:680: if ($doiscsi and $chainent and $chainent->{currstate} and ($chainent->{currstate} eq 'iscsibootpengzhi' or $chainent->{currstate} eq 'boot')) {
/opt/xcat/lib/perl/xCAT_plugin/dhcp.pm:691: } elsif ($douefi and $chainent->{currstate} ne "boot" and $chainent->{currstate} ne "iscsibootpengzhi") {
/opt/xcat/lib/perl/xCAT_plugin/dhcp.pm:700: if ($doiscsi and $chainent and $chainent->{currstate} and ($chainent->{currstate} eq 'iscsibootpengzhi' or $chainent->{currstate} eq 'boot')) {
/opt/xcat/lib/perl/xCAT_plugin/xnba.pm:259: my $pengzhicfg;
/opt/xcat/lib/perl/xCAT_plugin/xnba.pm:260: open($pengzhicfg, '>', "$bootloader_root/$node.uefi");
/opt/xcat/lib/perl/xCAT_plugin/xnba.pm:261: print $pengzhicfg "#!gpxe\n";
/opt/xcat/lib/perl/xCAT_plugin/xnba.pm:262: print $pengzhicfg "# simply kill the bootfile when " . $cref->{currstate} . "\n";
/opt/xcat/lib/perl/xCAT_plugin/xnba.pm:263: close($pengzhicfg);
Why it refuse to generate a xnba.uefi DHCP lease and a local boot file when I choose "iscsiboot"? Anyone can help make it work smooth with UEFI?
Thanks!