What if the grub file does not run after starting the VM?

cap

Contributor
Joined
Mar 17, 2016
Messages
122
I have installed a Debian VM that does not start automatically.
There is a tutorial: https://www.truenas.com/docs/scale/scaletutorials/virtualization/creatingmanagingvmsscale/

The grub file does not run when you start the VM, you can do this manually after each start. At the shell prompt:

  1. Type FS0: Return.
  2. Type cd EFI Return.
  3. Type cd Debian Return.
  4. Type grubx64.efi Return.
This works.

To ensure it starts automatically, you create the startup.nsh file at the root directory on the vm. To create the file:
  1. Go to the Shell.
  2. At the shell prompt type edit startup.nsh.
  3. In the editor type:
  • Type FS0: Return.
  • Type cd EFI Return.
  • Type cd Debian Return.
  • Type grubx64.efi Return.
  • Use the Control+s keys (Command+s for Mac OS) then Return.
  • Use the Control+q keys to quit.
  1. Close the display window
  2. To test if it now boots up on startup:
    • Power off the VM.
    • Click Start.
    • Click Display.
    • Log into your Debian VM.
This does not work.

I have edited the startup.nsh. If I start startup.nsh manually, then it works.
In my case, the startup.nsh is probably at the wrong place.
# FSO/EFI/Debian
But I can't create or edit the file anywhere else.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Try to copy the file to EFI/BOOT/BOOTX64.EFI
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
So maybe ... create it?
 
  • Like
Reactions: cap
Top