You are not logged in.

#1 2019-05-26 10:50:27

ZzozZ
Member
Registered: 2019-05-26
Posts: 10

[SOLVED] My virtual box does not run grub loader after shutdown UEFI

Hi all. I manage to install Arch linux on Virtual Box machine ( yey ). I can use reboot command and grub loader show's me to choose os but after i shutdown the machine and start it again it loads livecd.iso file... Can someone help me to fix that.

Last edited by ZzozZ (2019-05-26 13:22:50)

Offline

#2 2019-05-26 12:14:57

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] My virtual box does not run grub loader after shutdown UEFI


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2019-05-26 12:24:41

ZzozZ
Member
Registered: 2019-05-26
Posts: 10

Re: [SOLVED] My virtual box does not run grub loader after shutdown UEFI

Yea it is UEFI installation. I will check the link now smile

Offline

#4 2019-05-26 13:22:09

ZzozZ
Member
Registered: 2019-05-26
Posts: 10

Re: [SOLVED] My virtual box does not run grub loader after shutdown UEFI

Ok so, i think ive done thhis:
from Default/fallback boot path:
ive done this

Alternatively you can move an already installed GRUB EFI executable to the default/fallback path:

# mv esp/EFI/grub esp/EFI/BOOT
# mv esp/EFI/BOOT/grubx64.efi esp/EFI/BOOT/BOOTX64.EFI

than from VirtualBox#Installation in EFI mode. search for Boot directly from the ESP partition using a startup.nsh script.

from there i create startup.nsh script in /boot directory with exampled line

vmlinuz-linux rw root=/dev/sdX [rootfs=myfs] [rootflags=myrootflags] \
[kernel.flag=foo] [mymodule.flag=bar] \
[initrd=\intel-ucode.img] initrd=\initramfs-linux.img

than i go to my VirtualBox manager, select my virtual machine > settings > storage

on controller: IDE chield whic in my case was ( archlinux-2019.05.02...... ) i changed optical drive attribute from the drop down menu on the right side to IDE Secondary Slave.

Than it worked. ^^
Hope this help to someone else. Also to feature me when i forgot what i was doing big_smile
Also thanx to @Slithery for provided link smile

P.s. To moderators. Please do not delete this xD

Last edited by ZzozZ (2019-05-26 13:24:33)

Offline

#5 2019-05-26 13:42:45

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] My virtual box does not run grub loader after shutdown UEFI

That's one way, but it's far easier to just add the --removable flag when installing grub. This will automatically place grub in the default fallback location...

https://wiki.archlinux.org/index.php/GR … _boot_path


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#6 2019-05-26 15:06:58

ZzozZ
Member
Registered: 2019-05-26
Posts: 10

Re: [SOLVED] My virtual box does not run grub loader after shutdown UEFI

Slithery wrote:

That's one way, but it's far easier to just add the --removable flag when installing grub. This will automatically place grub in the default fallback location...

https://wiki.archlinux.org/index.php/GR … _boot_path

Yea but i have already installed GRUB. So i follow after GRUB install guide

Offline

Board footer

Powered by FluxBB