What to Do Next
The following shows an example of entering GRUB mode and using the configuration register. You access
the GRUB mode by entering the Cisco IOS XE
config-register
command and specifying the value as
“
0000
”
.
Router(config)#
config-register 0x0000
GNU GRUB
version 0.97
(638K lower / 3143616K upper memory)
[ Minimal BASH-like line editing is supported.
For the first word, TAB
lists possible command completions.
Anywhere else TAB lists the possible
completions of a device/filename.
ESC at any time exits to menu. ]
grub> help
[ Minimal BASH-like line editing is supported.
For the first word, TAB
lists possible command completions.
Anywhere else TAB lists the possible
completions of a device/filename.
ESC at any time exits to menu. ]
confreg [VALUE]
help [--all] [PATTERN ...]
grub>
confreg
Configuration Summary
(Virtual Configuration Register: 0x0)
enabled are:
boot: the boot loader
do you wish to change the configuration? y/n [
n
]:
ignore system config info? y/n [
n
]:
automatically boot default system image? y/n [
n
]:
Configuration Register: 0x0
grub> confreg
Configuration Summary
(Virtual Configuration Register: 0x0)
enabled are:
boot: the boot loader
do you wish to change the configuration? y/n [
n
]:
ignore system config info? y/n [n]:
automatically boot default system image? y/n [n]:
Configuration Register: 0x42
grub> confreg 0x2102
Configuration Register: 0x2102
grub>
confreg
Configuration Summary
(Virtual Configuration Register: 0x2102)
enabled are:
boot: default image
do you wish to change the configuration? y/n [
n
]:
grub>
grub>
GNU GRUB
version 0.97
(638K lower / 3143616K upper memory)
-------------------------------------------------------------------
0: CSR1000v - packages.conf
1: CSR1000v - csr100v-packages-universalk9
2: CSR1000v - GOLDEN IMAGE
-------------------------------------------------------------------
Use the ^ and v keys to select which entry is highlighted.
Press enter to boot the selected OS, or 'c' for a command-line.
Highlighted entry is 0:
Booting 'CSR1000v - packages.conf'
root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel /packages.conf rw root=/dev/ram console=ttyS1,9600 max_loop=64 HARDWARE=
virtual SR_BOOT=harddisk:packages.conf
Calculating SHA-1 hash...done
SHA-1 hash:
calculated
817e1716:e8e62778:7dd0b806:32db2bdd:13e51407
expected
817e1716:e8e62778:7dd0b806:32db2bdd:13e51407
package header rev 1 structure detected
Calculating SHA-1 hash...done
SHA-1 hash:
Cisco CSR 1000v Series Cloud Services Router Software Configuration Guide
225
Accessing and Using GRUB Mode
Modifying the Configuration Register (confreg)