This procedure shows the basics for loading the kernel debugger (kmdb). The savecore feature is enabled by default. For more detailed information about using the kernel debugger, see the Oracle Solaris Modular Debugger Guide.
Boot the system.
The GRUB menu is displayed when the system is booted.
When the GRUB menu is displayed, type e to access the GRUB edit menu.
Use the arrow keys to select the kernel$ line.
If you cannot use the arrow keys, use the ^ key to scroll up and the v key to scroll down.
Type e to edit the line.
The boot entry menu is displayed. In this menu, you can modify boot behavior by adding additional boot arguments to the end of the kernel$ line.
Type -k at the end of the line.
Press enter to return to the GRUB main menu.
Type b to boot the system with the kernel debugger enabled.
Access the kernel debugger.
The method used to access the debugger is dependent upon the type of console that you are using to access the system:
If you are using a locally attached keyboard, press F1–A.
If you are using a serial console, send a break by using the method appropriate to that type of serial console.
A welcome message is displayed when you access the kernel debugger for the first time.
This example shows how to manually boot a 64-bit capable x86 based system with the kernel debugger enabled.
kernel$ /platform/i86pc/multiboot kernel/amd64/unix -k -B $ZFS-BOOTFS
This example shows how to boot a 64-bit capable x86 based system 32-bit mode with the kernel debugger enabled.
kernel$ /platform/i86pc/multiboot kernel/unix -k -B $ZFS-BOOTFS