如何在启动时select新内核,运行专用服务器?

作为在运行Debian的专用服务器上安装proxmox的一部分,它安装了一个新的内核。 作为安装说明的一部分,我应该selectgrub中的新内核。 但是我没有一个虚拟控制台在启动时访问服务器。 我能做的唯一的事情就是在启动后运行一个ssh控制台到服务器。 如何selectPV内核作为启动时间的默认值?

我在服务器上运行Debian Wheezy,并安装了proxmox 3。

/etc/default/grub设置GRUB_DEFAULTvariables。 您可以使用内核条目的标题而不是索引,所以它不会受到后续内核安装/删除的干扰。 然后你需要运行update-grub 。 从Grub手册 :

 'GRUB_DEFAULT' The default menu entry. This may be a number, in which case it identifies the Nth entry in the generated menu counted from zero, or the title of a menu entry, or the special string 'saved'. Using the title may be useful if you want to set a menu entry as the default even though there may be a variable number of entries before it. For example, if you have: menuentry 'Example GNU/Linux distribution' --class gnu-linux { ... } then you can make this the default using: GRUB_DEFAULT='Example GNU/Linux distribution' If you set this to 'saved', then the default menu entry will be that saved by 'GRUB_SAVEDEFAULT', grub-set-default, or grub-reboot. 

只需编辑/boot/grub/grub.cfg

 set default="X" 

其中X是/boot/grub/grub.cfg中内核定义的索引号

grub-set-default (8),如果你使用savedefault ,可以用它来select启动项目。 如果你没有使用savedefault那么缺省set default="0" ,它引导第一个定义的内核。 通常,内核从最新到最旧sorting以便引导到最新的内核。