iPXE Sanboot command hangs :(

755 views
Skip to first unread message

Gavin Williams

unread,
Jan 7, 2013, 10:08:17 AM1/7/13
to puppet...@googlegroups.com
Afternoon all,

I've posted this to the iPXE forums aswell, but thought might be worth posting it here to see if anybody has any ideas...

Anyhow, the problem at hand is that the 'sanboot' command consistently hangs on our HP BL460c G7 blades... This means that any reboots etc need to manually bypass razor to get back into the OS...

I've tried a few different bits today, but am struggling to get it working at-all...

There doesn't appear to be a 'DEBUG=' option for sanboot, so can't enable that.

Any ideas???

Cheers
Gavin

Gavin Williams

unread,
Jan 8, 2013, 11:10:15 AM1/8/13
to puppet...@googlegroups.com
Afternoon all

I went and posted this issue on the ipxe-developers mailing list (http://lists.ipxe.org/pipermail/ipxe-devel/2013-January/002141.html), and got a very useful response from Andrew Bobulsky, linking me to: http://ipxe.org/appnote/work_around_bios_halting_on_ipxe_exit

So looks like it's a recently identified issue with iPXE.
I've tried the work-around, by install Apache HTTPD on my pxe server, and stuck grub.exe on there.
Then changed boot_local.erb as follows:
diff --git a/lib/project_razor/model/redhat/6/boot_local.erb b/lib/project_razor/model/redhat/6/boot_local.erb
index 5c76e0b..fb1f378 100644
--- a/lib/project_razor/model/redhat/6/boot_local.erb
+++ b/lib/project_razor/model/redhat/6/boot_local.erb
@@ -6,4 +6,4 @@ echo Active Model node state: <%= @current_state %>
 echo Continuing local boot

 sleep 3
-sanboot --no-describe --drive 0x80
+chain http://<%= config.image_svc_host %>/grub.exe --config-file="rootnoverify (hd0);chainloader +1"
 
Feels a bit hacky atm, but it's got me going...

Am guna see if there's any way I can assist iPXE developers in getting sanboot working in my env, but in the meantime, if anyone else has the same issue the above may well get you working :)

Cheers
Gavin

Gavin Williams

unread,
Jan 14, 2013, 9:03:17 AM1/14/13
to puppet...@googlegroups.com
Robin

Cheers for the suggestion.
Might give it a go when I can spare 15mins...

Cheers
Gavin

On Sunday, 13 January 2013 10:45:37 UTC, Robin Smidsrød wrote:
You might have luck with DEBUG=sanboot_cmd

You can add debugging to any .c file in iPXE by using its source filename without extension.

fatmcgav

unread,
Jan 25, 2013, 11:05:39 AM1/25/13
to puppet...@googlegroups.com
Kimi

Cheers for the suggestion.

Will give that a go and see what it does... Will be a bit easier than hosting a grubboot image...

Cheers
Gavin


On 25 January 2013 03:12, Kimi Zhang <kimi.z...@gmail.com> wrote:
Hi, Gavin

I am using HP DL360Gen8 server, also sanboot --no-describe --drive 0x80 does not lead to local disk boot.

My workaround is to replace this sanboot command with "exit", also add "exit" line in ipxe.razor. So that system go back to next device in the BIOS boot order.

Kimi

在 2013年1月7日星期一UTC+8下午11时08分17秒,Gavin Williams写道:

--
You received this message because you are subscribed to the Google Groups "puppet-razor" group.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-razor...@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-razor?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Gavin Williams

unread,
Feb 20, 2013, 9:56:14 AM2/20/13
to puppet...@googlegroups.com
Cool, so it looks like a double exit works :)

To confirm:
edit boot_local.erb, replace sanboot command with 'exit'.
edit razor.ipxe, add an exit command between chain and :error.

Cheers
Gavin

On Friday, 25 January 2013 16:05:39 UTC, Gavin Williams wrote:
Kimi

Cheers for the suggestion.

Will give that a go and see what it does... Will be a bit easier than hosting a grubboot image...

Cheers
Gavin
On 25 January 2013 03:12, Kimi Zhang <kimi.z...@gmail.com> wrote:
Hi, Gavin

I am using HP DL360Gen8 server, also sanboot --no-describe --drive 0x80 does not lead to local disk boot.

My workaround is to replace this sanboot command with "exit", also add "exit" line in ipxe.razor. So that system go back to next device in the BIOS boot order.

Kimi

在 2013年1月7日星期一UTC+8下午11时08分17秒,Gavin Williams写道:
Afternoon all,

I've posted this to the iPXE forums aswell, but thought might be worth posting it here to see if anybody has any ideas...

Anyhow, the problem at hand is that the 'sanboot' command consistently hangs on our HP BL460c G7 blades... This means that any reboots etc need to manually bypass razor to get back into the OS...

I've tried a few different bits today, but am struggling to get it working at-all...

There doesn't appear to be a 'DEBUG=' option for sanboot, so can't enable that.

Any ideas???

Cheers
Gavin

--
You received this message because you are subscribed to the Google Groups "puppet-razor" group.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-razor+unsubscribe@googlegroups.com.

Daniel Pittman

unread,
Feb 20, 2013, 1:05:31 PM2/20/13
to puppet...@googlegroups.com
On Wed, Feb 20, 2013 at 6:56 AM, Gavin Williams <fatm...@gmail.com> wrote:
> Cool, so it looks like a double exit works :)
>
> To confirm:
> edit boot_local.erb, replace sanboot command with 'exit'.
> edit razor.ipxe, add an exit command between chain and :error.

Thank you very much for testing this.

I am inclined to make this change, so if anyone else wants to test it
and report any problems that they encounter, that would be great.

https://github.com/puppetlabs/Razor/issues/409 tracks this feature.

--
Daniel Pittman
⎋ Puppet Labs Developer – http://puppetlabs.com
♲ Made with 100 percent post-consumer electrons
Reply all
Reply to author
Forward
0 new messages