Why does Buildroot’s generic pc_x86_64_bios_defconfig image hang in Virtualbox

buildrootvirtualbox

I'm trying to nail down a buildroot (version 2017.02.4) config, and I need to separate kernel-related issues from software environment issues.

So I've tried to build a simple disk image which will work both in a Buildroot environment and a real machine.

I took a generic config, built it into an image, converted it to a vdi, and attached it to a Virtualbox VM.

make pc_x86_64_bios_defconfig
make clean
make
VBoxManage output/images/disk.img output/images/disk.vdi

This boots, but hangs at 'Booting Buildroot'

enter image description here

I did this also with a qemu_x86_64_defconfig (slightly modified to create a grub2 disk image using genimage) and got the same result. I did this before a few years ago, so I don't understand why it wouldn't work now.

What config is causing this to hang?

Do Virtualbox guests need a special hook to boot properly?

UPDATE: These images appear to work in qemu kvm, so it must be a Virtualbox config or specification issue.

Best Answer

The pc_x86_64_bios_defconfig seems to be 64bit. In Oracle VirtualBox, hardware support for virtualization (Intel VT-x or AMD-v) is required for all 64bit VMs, even when the host OS is 64bit. KVM just does the virtualization differently.