Reboot VM (run on vbox) to a specific (compiled) kernel from the shell

Im working ubuntu 14.04 with vbox . In this machine, I compiled and launched the 3.14 kernel, which I select from the grub menu when I boot ubuntu to vbox. The host also runs on ubuntu 14.04.

I wanted to ask - is there a way to load the ubuntu guest into a specific kernel using a shell command?

I can run vm on the vbox command line via the following command:

VBoxManage startvm ubuservloc --type headless

but that’s not quite what I need.

+4
source share
1 answer

, GRUB, , :

  • /boot , grub.cfg.
  • VBoxManage controlvm keyboardputscancode , GRUB ( )
  • GRUB () ,

, ( ​​ ), ( grub-set-default , ​​ ). :

  • VBoxManage guestcontrol run script ( )
  • VBoxManage guestproperty, VBoxControl guestproperty, init script
  • SSH : D

, , ? , , grub.cfg.

0

Source: https://habr.com/ru/post/1623682/


All Articles