VirtualBox

Opened 16 years ago

Closed 15 years ago

#2010 closed defect (worksforme)

Linux kernel v2.6.21 built by myself cannot boot up correctly in the VirtualBox

Reported by: riker Owned by:
Component: VMM Version: VirtualBox 1.6.4
Keywords: Cc:
Guest type: Linux Host type: Windows

Description

I built a linux system from Linux kernel source v2.6.21 and run it inside the virtual macine of VirtualBox. I found it is failed to boot up in some conditions.

1). In AMD platform with AMD-V enable and the host operating system is Windows SP3, the VM is successful to boot up. Please refer the VBox_Log_01.txt

2). In AMD platform with AMD-V disable and the host operating system is Windows SP3, the VM is failed to boot up. Please refer the VBox_Log_02.txt

3). In Intel platform (P4) and the host operating system is Windows SP3, the VM is failed to boot up. Please refer the VBox_Log_03.txt

Why is the root cause of above issue? Is any configuration incorrect in the Linux kernel configuration? How and what kernel configuration is required to change for this? Thanks!

Attachments (3)

VBox_Log_01.txt (45.7 KB ) - added by riker 16 years ago.
VBox_Log_02.txt (44.6 KB ) - added by riker 16 years ago.
VBox_Log_03.txt (36.2 KB ) - added by riker 16 years ago.

Download all attachments as: .zip

Change History (14)

by riker, 16 years ago

Attachment: VBox_Log_01.txt added

by riker, 16 years ago

Attachment: VBox_Log_02.txt added

by riker, 16 years ago

Attachment: VBox_Log_03.txt added

comment:1 by riker, 16 years ago

One more information to share. I run the same VM by QEMU and VMWare. Both of them could execute the VM successfully.

comment:2 by Frank Mehnert, 16 years ago

Component: otherVMM

Can you explain failed to boot better? If you only see a black window you probably have a framebuffer enabled. In that case, disable the framebuffer by removing the vga= parameter as well as splash quiet parameters from the kernel command line and to be able to see the last kernel messages.

comment:3 by riker, 16 years ago

After displaying the message, "Umcompressing Linux ... OK, booting the kernel", the VM is freezed.

comment:4 by Frank Mehnert, 16 years ago

Could you post your kernel command line please?

comment:5 by riker, 16 years ago

First, the kernel command line of GRUB is "kernel /boot/bzImage root=/dev/hda1 ro". Secondly, the next message of "Uncompressing Linux ... OK, booting the kernel" is "initializing container subsys cpu". This is got by QEMU to run the same VM. So, the VM seems to be freezed during above two messages. I hope this is helpful for identifying the problem.

comment:6 by riker, 16 years ago

Today, I found that the kenerl image could be executed successfully when I build the kernel without CGL feature. I will try to make some tries to evaluate the difference of kerenl parameter and let share the information to improve Virtualbox soon.

comment:7 by Frank Mehnert, 16 years ago

Which kernel config option is that in detail?

comment:8 by riker, 16 years ago

After long-term tests, I found that the problem would be happened when configuring the kernel with CONFIG_PREEMPT_HARDIRQS=y and without CONFIG_COMPAT_VDS0.

CONFIG_PREEMPT_HARDIRQS=y # CONFIG_COMPAT_VDS0 is not set

Others are kept as the default. If I change the kernel parameters as below

# CONFIG_PREEMPT_HARDIRQS is not set CONFIG_COMPAT_VDS0=y

The created kernel could be executed successfully in Virtualbox. Because the original kernel is no problem for VMWare and QEMU. So, I hope to share this information to improve Virtualbox better. Thanks a lot.

comment:9 by riker, 16 years ago

The previous message is not well formated.

For the failed case, the configuration is shown as below.

CONFIG_PREEMPT_HARDIRQS=y
# CONFIG_COMPAT_VDS0 is not set

For the success case, the configuration is shown as below.

# CONFIG_PREEMPT_HARDIRQS is not set
CONFIG_COMPAT_VDS0=y

comment:10 by Frank Mehnert, 16 years ago

Thank you for this information!

comment:11 by Frank Mehnert, 15 years ago

Resolution: worksforme
Status: newclosed

I guess the problem is not relevant anymore.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use