VirtualBox

Opened 13 years ago

Closed 8 years ago

#8604 closed defect (fixed)

128 MB display adapter causes EFI crash — at Version 25

Reported by: Jarrod Petz Owned by:
Component: EFI Version: VirtualBox 4.0.8
Keywords: Cc:
Guest type: other Host type: other

Description (last modified by aeichner)

Hi,

Please forgive me if this is in the wrong area.

When making a new virtual machine in 4.0.4. If I set the display memory to 128MB and have EFI enabled it causes a crash on starting the VM. I suspect it has to do with EFI software as if I turn EFI off and go back to a traditional BIOS then everything is fine. Also if I reduce the display memory to 64MB it is also fine.

Change History (31)

by Jarrod Petz, 13 years ago

Attachment: Logs.zip added

VBox logs of crashing(128MB) and non crashing (64MB) display VMs

comment:1 by Frank Mehnert, 13 years ago

Component: host supportEFI

comment:2 by vasily Levchenko, 13 years ago

Sorry for delaying. Could you please describe a bit when does it happen? Does it happens on pure EFI boot, let's say without any attachments, are you able to see EFI shell with 128Mb.

comment:3 by vasily Levchenko, 13 years ago

Actually I wasn't able to reproduce the issue, and probably I've mistaken but It looks like you're trying to boot the FreeBSD 9 (according to the attached log). From what I've found about FreeBSD boot on mac it should be some sort of mixed environment, as I understand loader.efi is required from http://blogs.freebsdish.org/rpaulo/2008/08/31/freebsd-ia32-efi-boot-loader/, right? So that why I've asked first series of the questions, to understand on what stage of the boot efi asserts internally.

comment:4 by Ivan Zlatev, 13 years ago

Same issue here. I can see an assert in the log:

00:00:03.517 !!Assertion Failed!! 00:00:03.517 Expression: <NULL> 00:00:03.517 Location : D:\tinderbox\win-4.0\src\VBox\Devices\EFI\DevEFI.cpp(372) efiIOPortWrite 00:00:03.517 Unexpected trap during early EFI bootstrap!!

comment:5 by vasily Levchenko, 13 years ago

Could you please download VBoxDD.dll and place DSO instead of installed one. Please run your vm with following environment variables, then:

set VBOX_LOG=dev_efi.e.l2
set VBOX_LOG_DEST=file=c:\efi.log

and please attach the resulted log to the defect.

comment:6 by Jarrod Petz, 13 years ago

Hi Hachiman,

Thanks for reviewing my report. I'll do what I can to help. I just updated VirtualBox to 4.0.6 and still see this error. As ivanz states the error occurs before you get the Oracle VBox splash screen and also therefore before the EFI shell. I have followed your instructions.

  1. Replace DLL temporarily
  2. Set environment variables

But still got no log file. Turns out windows stupid file protection had me. If I run VBox with elevated admin privs I get a log file. I will upload the 64MB woking log and again the 128MB log from a failed startup.

I have also attached my vbox config file for the VM perhaps that will help you replicate the issue.

Regards Jarrod

by Jarrod Petz, 13 years ago

Attachment: efi_64mb.zip added

Working startup

by Jarrod Petz, 13 years ago

Attachment: efi_128mb.zip added

Failed startup

by Jarrod Petz, 13 years ago

Attachment: FreeBSD 9 201102.vbox added

VM config

in reply to:  5 comment:7 by Ivan Zlatev, 13 years ago

Replying to Hachiman:

Could you please download VBoxDD.dll and place DSO instead of installed one. Please run your vm with following environment variables, then:

set VBOX_LOG=dev_efi.e.l2
set VBOX_LOG_DEST=file=c:\efi.log

and please attach the resulted log to the defect.

I did that (and ran VBox from cmd to make sure the ENV VARs apply), but the VM won't start due to: VERR_PDM_DEVICE_NAME_CLASH

comment:8 by Ivan Zlatev, 13 years ago

To be more specific:

00:00:01.509 VMSetError: D:\tinderbox\win-4.0\src\VBox\VMM\VMMR3\VM.cpp(354) VMR3Create; rc=VERR_PDM_DEVICE_NAME_CLASH
00:00:01.509 VMSetError: Unknown error creating VM
00:00:01.510 ERROR [COM]: aRC=E_FAIL (0x80004005) aIID={515e8e8d-f932-4d8e-9f32-79a52aead882} aComponent={Console} aText={Unknown error creating VM (VERR_PDM_DEVICE_NAME_CLASH)}, preserve=false
00:00:01.522 Power up failed (vrc=VERR_PDM_DEVICE_NAME_CLASH, rc=E_FAIL (0X80004005))

comment:9 by vasily Levchenko, 13 years ago

Thanks, Jarrod and Ivan for feedbacks. I've noticed that your vm requires more then 1Gb, that might be an issue as well. So just to be sure could you try config with RAM <= 1Gb? For this test no need the be lunched with modified DSO and no log need to be attached, just note if RAM size value influences in your cases anyhow.

comment:10 by vasily Levchenko, 13 years ago

Version: VirtualBox 4.0.4VirtualBox 4.0.6

in reply to:  9 ; comment:11 by Ivan Zlatev, 13 years ago

Replying to Hachiman:

Thanks, Jarrod and Ivan for feedbacks. I've noticed that your vm requires more then 1Gb, that might be an issue as well. So just to be sure could you try config with RAM <= 1Gb? For this test no need the be lunched with modified DSO and no log need to be attached, just note if RAM size value influences in your cases anyhow.

You are right. With the RAM set to 512mb VBox doesn't crash.

in reply to:  11 comment:12 by vasily Levchenko, 13 years ago

Resolution: duplicate
Status: newclosed

Replying to ivanz:

Replying to Hachiman:

Thanks, Jarrod and Ivan for feedbacks. I've noticed that your vm requires more then 1Gb, that might be an issue as well. So just to be sure could you try config with RAM <= 1Gb? For this test no need the be lunched with modified DSO and no log need to be attached, just note if RAM size value influences in your cases anyhow.

You are right. With the RAM set to 512mb VBox doesn't crash.

Thanks for testing looks like duplicate of 8826, which hopefully fixed. And it will available in 4.0.8. I'll mark it as duplicate for now, but feel free to reopen in case it if the issue will persists in 4.0.8 ofc.

in reply to:  11 comment:13 by Jarrod Petz, 13 years ago

Replying to ivanz:

Replying to Hachiman:

Thanks, Jarrod and Ivan for feedbacks. I've noticed that your vm requires more then 1Gb, that might be an issue as well. So just to be sure could you try config with RAM <= 1Gb? For this test no need the be lunched with modified DSO and no log need to be attached, just note if RAM size value influences in your cases anyhow.

You are right. With the RAM set to 512mb VBox doesn't crash.

Confirmed also. I can start the VM without a crash if I set the memory to 512MB.

Question, is 4.0.8 ofc or a development binary(windows) with this fix available for download? If so can you provide a link?

comment:14 by vasily Levchenko, 13 years ago

please try with 4.0.8

in reply to:  14 comment:15 by Ivan Zlatev, 13 years ago

Resolution: duplicate
Status: closedreopened

Replying to Hachiman:

please try with 4.0.8

Unfortunately it still crashes with 4.0.8:

00:00:03.522 EFI Panic: Unexpected trap!!
00:00:03.522 
00:00:03.522 !!Assertion Failed!!
00:00:03.522 Expression: <NULL>
00:00:03.522 Location  : D:\tinderbox\win-4.0\src\VBox\Devices\EFI\DevEFI.cpp(372) efiIOPortWrite
00:00:03.522 Unexpected trap during early EFI bootstrap!!

comment:16 by Ivan Zlatev, 13 years ago

If you give me a build of the logging-enabled .dll for 4.0.8 I can get you a log.

comment:17 by vasily Levchenko, 13 years ago

Version: VirtualBox 4.0.6VirtualBox 4.0.8

in reply to:  16 ; comment:18 by vasily Levchenko, 13 years ago

Replying to ivanz:

If you give me a build of the logging-enabled .dll for 4.0.8 I can get you a log.

please try VBoxDD.dll and send me log via mail [vasily _dot_ levchenko _at_ oracle _dot_ com].

in reply to:  18 ; comment:19 by Ivan Zlatev, 13 years ago

Replying to Hachiman:

Replying to ivanz:

If you give me a build of the logging-enabled .dll for 4.0.8 I can get you a log.

please try VBoxDD.dll and send me log via mail [vasily _dot_ levchenko _at_ oracle _dot_ com].

the VM won't start with that .dll, because of VERR_PDM_DEVICE_NAME_CLASH . How to workaround that?

in reply to:  19 ; comment:20 by vasily Levchenko, 13 years ago

Replying to ivanz:

Replying to Hachiman:

Replying to ivanz:

If you give me a build of the logging-enabled .dll for 4.0.8 I can get you a log.

please try VBoxDD.dll and send me log via mail [vasily _dot_ levchenko _at_ oracle _dot_ com].

the VM won't start with that .dll, because of VERR_PDM_DEVICE_NAME_CLASH . How to workaround that?

Please make sure that original VBoxDD.dll isn't in path or current folder.

in reply to:  20 ; comment:21 by Ivan Zlatev, 13 years ago

Replying to Hachiman:

Replying to ivanz:

Replying to Hachiman:

Replying to ivanz:

If you give me a build of the logging-enabled .dll for 4.0.8 I can get you a log.

please try VBoxDD.dll and send me log via mail [vasily _dot_ levchenko _at_ oracle _dot_ com].

the VM won't start with that .dll, because of VERR_PDM_DEVICE_NAME_CLASH . How to workaround that?

Please make sure that original VBoxDD.dll isn't in path or current folder.

It's not, because I moved it to my desktop and put yours in place in C:\Program Files\Oracle\VirtualBox

in reply to:  21 ; comment:22 by vasily Levchenko, 13 years ago

Replying to ivanz:

Replying to Hachiman:

Replying to ivanz:

Replying to Hachiman:

Replying to ivanz:

If you give me a build of the logging-enabled .dll for 4.0.8 I can get you a log.

please try VBoxDD.dll and send me log via mail [vasily _dot_ levchenko _at_ oracle _dot_ com].

the VM won't start with that .dll, because of VERR_PDM_DEVICE_NAME_CLASH . How to workaround that?

Please make sure that original VBoxDD.dll isn't in path or current folder.

It's not, because I moved it to my desktop and put yours in place in C:\Program Files\Oracle\VirtualBox

Could you please send me your log file with this DSO?

comment:23 by Jarrod Petz, 13 years ago

Hi Guys,

Thanks again for the interest in my report. I uninstalled VBox and installed VMWare Workstation yesterday so I could do some work on FreeBSD VMs. I thought 4.0.8 would take some time to get my hands on. I guess I was wrong.

So I have loaded up 4.0.8 and run up a new VM with the settings that caused the crash last time. Unfortunatly the error looks the same in the logs(as below).

efi: EFI Assertion failed! File=/home/vbox/tinderbox/efi-4.0/edk2/PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridge.c line=0x0000000000000171 EFI Panic: Unexpected trap!! Unexpected trap during early EFI bootstrap!!

I have attached three logs in my ZIP this time.

  1. Successful boot to EFI shell with 64MB video memory set.
  2. Failed startup with 128MB video memory.
  3. Successful boot to EFI shell with base memory set to 1GB instead of 4GB.

by Jarrod Petz, 13 years ago

Attachment: vbox_408_logs.zip added

Vbox 4.0.8 logs

in reply to:  22 comment:24 by Ivan Zlatev, 13 years ago

Replying to Hachiman:

Replying to ivanz:

Replying to Hachiman:

Replying to ivanz:

Replying to Hachiman:

Replying to ivanz:

If you give me a build of the logging-enabled .dll for 4.0.8 I can get you a log.

please try VBoxDD.dll and send me log via mail [vasily _dot_ levchenko _at_ oracle _dot_ com].

the VM won't start with that .dll, because of VERR_PDM_DEVICE_NAME_CLASH . How to workaround that?

Please make sure that original VBoxDD.dll isn't in path or current folder.

It's not, because I moved it to my desktop and put yours in place in C:\Program Files\Oracle\VirtualBox

Could you please send me your log file with this DSO?

Relevant part below, I will attach the full log as well:

00:00:01.647 VMSetError: D:\tinderbox\win-4.0\src\VBox\VMM\VMMR3\VM.cpp(354) VMR3Create; rc=VERR_PDM_DEVICE_NAME_CLASH
00:00:01.647 VMSetError: Unknown error creating VM
00:00:01.647 ERROR [COM]: aRC=E_FAIL (0x80004005) aIID={515e8e8d-f932-4d8e-9f32-79a52aead882} aComponent={Console} aText={Unknown error creating VM (VERR_PDM_DEVICE_NAME_CLASH)}, preserve=false
00:00:01.689 Power up failed (vrc=VERR_PDM_DEVICE_NAME_CLASH, rc=E_FAIL (0X80004005))

I run VirtualBox.exe from cmd after doing (as per your instructions earlier):

set VBOX_LOG=dev_efi.e.l2
set VBOX_LOG_DEST=file=c:\efi.log

by Ivan Zlatev, 13 years ago

VBoxDD.dll Problem Log

comment:25 by aeichner, 8 years ago

Description: modified (diff)
Resolution: fixed
Status: reopenedclosed

Please reopen if still relevant with a recent VirtualBox release, can't reproduce this anymore.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use