You are not logged in.

#1 2019-08-01 16:27:04

Vepth
Member
Registered: 2019-08-01
Posts: 14

EFI variables not supported on this machine - Oracle Virtual Box

Hello,
I am new to Arch Linux and to this forum.

Recently, I have installed Arch Linux on my Oracle VirtualBox and my host OS is Windows 7 Ultimate.
I used 2019.07.01 ISO file.

I have installed it fully with Plsasma desktop enviorment, and I want to use netboot. I followed guide from here: https://wiki.archlinux.org/index.php/Netboot and I used UEFI section.

Problem is that when I try to do

# efibootmgr --create --disk /dev/sda --part 1 --loader /EFI/arch_netboot/arch_netboot.efi --label "Arch Linux Netboot" --verbose

it says:

"EFI variables are not supported on this system."

I tried to do:

modprobe efivarfs

but it doesn't work.

Maybe I needed to do BIOS section, but it seems like it's not possible on Virtual Machines.

Hope somebody helps.

Offline

#2 2019-08-01 18:46:35

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,999
Website

Re: EFI variables not supported on this machine - Oracle Virtual Box

Copy arch_netboot.efi to EFI/Boot/bootx64.efi (on the EFI system partition), that should be loaded automatically.

If that works then perhaps add a note to the ArchWIki page.


Jin, Jîyan, Azadî

Offline

#3 2019-08-01 18:49:45

Vepth
Member
Registered: 2019-08-01
Posts: 14

Re: EFI variables not supported on this machine - Oracle Virtual Box

Head_on_a_Stick wrote:

Copy arch_netboot.efi to EFI/Boot/bootx64.efi (on the EFI system partition), that should be loaded automatically.

If that works then perhaps add a note to the ArchWIki page.

Do I need to make another folder in HOME called "EFI/Boot/bootx64.efi" or to add in esp/EFI/

Offline

#4 2019-08-01 19:00:12

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,999
Website

Re: EFI variables not supported on this machine - Oracle Virtual Box

Assuming your EFI system partition is on /dev/sdXY you would use

# mount /dev/sdXY /mnt
# mkdir -p /mnt/EFI/Boot
# cp ipxe.*.efi /mnt/EFI/Boot/bootx64.efi

Jin, Jîyan, Azadî

Offline

#5 2019-08-01 19:47:10

progandy
Member
Registered: 2012-05-17
Posts: 5,307

Re: EFI variables not supported on this machine - Oracle Virtual Box

Did you enable the EFI boot in your virtual machine? I think VirtualBox still uses BIOS by default.
https://www.virtualbox.org/manual/ch03.html#efi

Edit: This might be useful as well: https://gerardnico.com/virtualbox/pxe

Last edited by progandy (2019-08-01 19:49:25)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#6 2019-08-02 13:12:13

Vepth
Member
Registered: 2019-08-01
Posts: 14

Re: EFI variables not supported on this machine - Oracle Virtual Box

Head_on_a_Stick wrote:

Assuming your EFI system partition is on /dev/sdXY you would use

# mount /dev/sdXY /mnt
# mkdir -p /mnt/EFI/Boot
# cp ipxe.*.efi /mnt/EFI/Boot/bootx64.efi

My partitions are:

/dev/sda1 - Linux
/dev/sda2 - Linux swap / Ssolaris
/dev/sda3 - EFI (FAT-12/16/32)

When I try to do

mount /dev/sda3 /mnt

it says:

wrong fs type, bad option, bad superblock on /dev/sda3, missing codepage or helper program, or other error

Maybe I need to make that /dev/sda3 not EFI, but regular Linux?

Offline

#7 2019-08-02 13:15:53

Vepth
Member
Registered: 2019-08-01
Posts: 14

Re: EFI variables not supported on this machine - Oracle Virtual Box

progandy wrote:

Did you enable the EFI boot in your virtual machine? I think VirtualBox still uses BIOS by default.
https://www.virtualbox.org/manual/ch03.html#efi

Edit: This might be useful as well: https://gerardnico.com/virtualbox/pxe

I did enable it, but it then removes everything I did, and it opens UEFI Interactive Shell v2.1.

Do I need to be in UEFI Interactive Shell and disable EFI after i stop using netboot, or to stay in regular mode and try something else?

I have partition - /dev/sda3 that is type: EFI (FAT-16/32/64)

Last edited by Vepth (2019-08-02 13:17:21)

Offline

#8 2019-08-02 13:29:04

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,999
Website

Re: EFI variables not supported on this machine - Oracle Virtual Box

Vepth wrote:

My partitions are:

/dev/sda1 - Linux
/dev/sda2 - Linux swap / Ssolaris
/dev/sda3 - EFI (FAT-12/16/32)

What does gdisk say about /dev/sda3? Is it marked as type EF00?

Vepth wrote:

When I try to do

mount /dev/sda3 /mnt

it says:

wrong fs type, bad option, bad superblock on /dev/sda3, missing codepage or helper program, or other error

Is the dosfstools package installed?

Vepth wrote:

Maybe I need to make that /dev/sda3 not EFI, but regular Linux?

No, the ESP needs to be of type EF00 (as reported by gdisk) or it will not be recognised by the UEFI firmware.

And progandy raises a good point — does /sys/firmware/efi exist? If not then you are not booting in UEFI mode.


Jin, Jîyan, Azadî

Offline

#9 2019-08-02 13:51:29

Vepth
Member
Registered: 2019-08-01
Posts: 14

Re: EFI variables not supported on this machine - Oracle Virtual Box

Head_on_a_Stick wrote:
Vepth wrote:

My partitions are:

/dev/sda1 - Linux
/dev/sda2 - Linux swap / Ssolaris
/dev/sda3 - EFI (FAT-12/16/32)

What does gdisk say about /dev/sda3? Is it marked as type EF00?

Vepth wrote:

When I try to do

mount /dev/sda3 /mnt

it says:

wrong fs type, bad option, bad superblock on /dev/sda3, missing codepage or helper program, or other error

Is the dosfstools package installed?

Vepth wrote:

Maybe I need to make that /dev/sda3 not EFI, but regular Linux?

No, the ESP needs to be of type EF00 (as reported by gdisk) or it will not be recognised by the UEFI firmware.

And progandy raises a good point — does /sys/firmware/efi exist? If not then you are not booting in UEFI mode.

I just inserted ISO file again, and in Hardware Information (HDT), there is option for BIOS, where it says "Vendor: innotek GmbH"

It seems like it is BIOS.

However, it seems like that these options aren't working:

for ipxe.lkrn, in guide, it says: "You can make flash drive that boots ipxe.lkrn with the following steps:", but I think there is no way to make flash drive?
for ipxe.pxe, I don't know how to set up PXE enviorment in virtual machine. It seems like it needs real bootable flash to be inserted

Offline

#10 2019-08-02 14:00:25

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,999
Website

Re: EFI variables not supported on this machine - Oracle Virtual Box

It is apparently possible to access raw devices from VirtualBox, at least according to my search engine.

And please don't full quote unnecessarily, it reduces the readability of the thread.


Jin, Jîyan, Azadî

Offline

#11 2019-08-02 14:02:36

Vepth
Member
Registered: 2019-08-01
Posts: 14

Re: EFI variables not supported on this machine - Oracle Virtual Box

Is it somehow possible to change from BIOS to UEFI mode? Or to use other machine

Offline

#12 2019-08-02 14:04:55

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,999
Website

Re: EFI variables not supported on this machine - Oracle Virtual Box

I don't use VirtualBox but prograndy's first link appears to show how to start it in UEFI mode.


Jin, Jîyan, Azadî

Offline

#13 2019-08-02 14:09:18

Vepth
Member
Registered: 2019-08-01
Posts: 14

Re: EFI variables not supported on this machine - Oracle Virtual Box

I'll try to install machine again with EFI mode on. I'll report if it works

Offline

Board footer

Powered by FluxBB