Jump to content

Why can't I boot UEFI in virtualbox


mauricev
 Share

Recommended Posts

I am trying to boot in virtualbox using UEFI. The systemrescuecd boots fine in this mode. But Funtoo does not. It just enters a UEFI shell.

Here is my grub.cfg

set timeout=3

if [ -s $prefix/grubenv ]; then
    load_env
fi

function savedefault {
    if [ -z "{boot_once}" ]; then
        saved_entry="${chosen}"
        save_env saved_entry
    fi
}

  insmod part_gpt
  insmod fat
  set root=(hostdisk//dev/sda,gpt1)
  search --no-floppy --fs-uuid --set C1FA-5487
if loadfont /grub/fonts/unicode.pf2; then
   set gfxmode=640x480
   insmod all_video
   terminal_output gfxterm
fi

set menu_color_normal=cyan/blue
set menu_color_highlight=blue/cyan

menuentry "Funtoo Debian Linux - kernel-debian-sources-x86_64-4.19.9-1" {
  insmod part_gpt
  insmod fat
  set root=(hostdisk//dev/sda,gpt1)
  search --no-floppy --fs-uuid --set C1FA-5487
  linux /kernel-debian-sources-x86_64-4.19.9-1 acpi_enforce_resources=lax real_root=/dev/sda3 rootfstype=ext4 rand_id=EYXNGYMO
  initrd /early_ucode.cpio /initramfs-debian-sources-x86_64-4.19.9-1
  set gfxpayload=keep
}

if [ ! "${next_entry}" = "" ] ; then
    set default="${next_entry}"
    set next_entry=
    save_env next_entry
    set boot_once=true
elif [ ! "${saved_entry}" = "" ]; then
    set default="${saved_entry}"
else
    set default=0
fi

And my fdisk

Disk /dev/sda: 49.5 GiB, 53146025984 bytes, 103800832 sectors
Disk model: VBOX HARDDISK   
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: E3D8CAFD-B352-44FB-82B3-BE0B2B4EF2FF

Device        Start       End  Sectors  Size Type
/dev/sda1      2048   2099199  2097152    1G EFI System
/dev/sda2   2099200  35653631 33554432   16G Linux swap
/dev/sda3  35653632 103800798 68147167 32.5G Linux filesystem

And my blkid

/dev/sda1: UUID="C1FA-5487" TYPE="vfat" PARTLABEL="EFI System" PARTUUID="b7c2863f-8f12-4a88-8435-c23d0c208bda"
/dev/sda2: LABEL="swap" UUID="22c40006-a9ae-41d5-ab79-d694d0b1fdde" TYPE="swap" PARTLABEL="Linux swap" PARTUUID="59889a81-20d1-495e-90c2-e358264061c6"
/dev/sda3: LABEL="root" UUID="0c57ba4e-0092-48e9-a8c4-c1810395497a" TYPE="ext4" PARTLABEL="Linux filesystem" PARTUUID="e9c95c53-ccb7-419c-9b0e-b5d01a5369e5"
/dev/sr0: UUID="2019-02-09-12-53-31-00" LABEL="SYSRCD601" TYPE="iso9660" PTUUID="1e4ed97b" PTTYPE="dos"
/dev/loop0: TYPE="squashfs"

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...