Skip to content
gmacario.github.io
Go back

Running a Yocto image inside VirtualBox

I managed to have a Yocto image boot inside Oracle VirtualBox by performing the following steps.

Tested with core-image-minimal-qemux86-64.vmdk

The Yocto project provides support for building VMDK (VMware Disk) images, which are also recognized by VirtualBox.

The support for building native VDI (VirtualBox Disk Image) was added after the release 1.8 (fido) of Yocto project which I tested when preparing this article.

Building a VMDK image

Build a *-qemux86-64.vmdk image from branch dev-qemux86-64 of https://github.com/gmacario/genivi-demo-platform

$ git checkout -b dev-qemux86-64 https://github.com/gmacario/genivi-demo-platform
$ cd genivi-demo-platform
$ source init.sh
$ bitbake core-image-minimal

The important configuration to be added to conf/local.conf is the following line:

IMAGE_FSTYPES += "vmdk"

Running the VMDK image

From the Oracle VM VirtualBox Manager, create a new Virtual Machine

Name and operating system

Click “Next”

Memory size

Click “Next”

Hard disk

Select “Create”, then “Continue”

From the Oracle VM VirtualBox Manager, change VM settings

Under Storage > Add new storage controller > Add SATA Controller

Under Storage > Controller: SATA > Add Hard Disk

Click “OK”

From the Oracle VM VirtualBox Manager, start the VM

Result:

capture-20151114-1623

You may then login as user root (there is no default password)


Share this post:

Previous Post
Installing Terminator on Ubuntu 14.04
Next Post
Trying Yocto on the UDOO Neo