Skip to contentSkip to conversation

Yocto in Virtualbox

DISCUSSION cnxsoft 4 participants 11 messages Feb 8, 2012 – Feb 10, 2012

lore
Share & tools
lore

cnxsoft

author
#0 lore raw

Hi,

I have build x86 qemu image using "bitbake -k core-image-sato" following the instructions given at http://www.yoctoproject.org/docs/1.1/yocto-project-qs/yocto-project-qs.html
I'm running Ubuntu 11.10 in VirtualBox 4.1.6.

When I run qemu, qemu starts apparently fine, but the qemu window stays black. So I'm suspecting that either it does not work in Virtualbox or I may have tochange some settings in qemu (e.g. -vga vmware).

Here's the output:

runqemu qemux86

Continuing with the following parameters:
KERNEL: [/home/jaufranc/edev/edison-6.0-build/tmp/deploy/images/bzImage-qemux86.bin]
ROOTFS: [/home/jaufranc/edev/edison-6.0-build/tmp/deploy/images/core-image-minimal-qemux86.ext3]
FSTYPE: [ext3]
Setting up tap interface under sudo
Acquiring lockfile for tap0...
Starting distccd...
Running qemu...
/home/jaufranc/edev/edison-6.0-build/tmp/sysroots/i686-linux/usr/bin/qemu -kernel /home/jaufranc/edev/edison-6.0-build/tmp/deploy/images/bzImage-qemux86.bin -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=no,downscript=no -hda /home/jaufranc/edev/edison-6.0-build/tmp/deploy/images/core-image-minimal-qemux86.ext3 -show-cursor -usb -usbdevice wacom-tablet -vga vmware -enable-gl -no-reboot -m 128 --append "vga=0 root=/dev/hda rw mem=128M ip=192.168.7.2::192.168.7.1:255.255.255.0 oprofile.timer=1 " Enabling opengl

Thanks.

#1 lore raw
Quoted 32 lines · cnxsoft

Hi,

I have build x86 qemu image using "bitbake -k core-image-sato" following the instructions given at
http://www.yoctoproject.org/docs/1.1/yocto-project-qs/yocto-project-qs.html
I'm running Ubuntu 11.10 in VirtualBox 4.1.6.

When I run qemu, qemu starts apparently fine, but the qemu window stays black. So I'm suspecting that either it does not work in Virtualbox or I may have tochange some settings in qemu (e.g. -vga vmware).

Here's the output:

runqemu qemux86

Continuing with the following parameters:
KERNEL:
[/home/jaufranc/edev/edison-6.0-build/tmp/deploy/images/bzImage-qemux86.bin] ROOTFS:
[/home/jaufranc/edev/edison-6.0-build/tmp/deploy/images/core-image-minimal-qemux86.ext3]
FSTYPE: [ext3]
Setting up tap interface under sudo
Acquiring lockfile for tap0...
Starting distccd...
Running qemu... /home/jaufranc/edev/edison-6.0-build/tmp/sysroots/i686-linux/usr/bin/qemu -kernel /home/jaufranc/edev/edison-6.0-build/tmp/deploy/images/bzImage-qemux86.bin -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=no,downscript=no -hda /home/jaufranc/edev/edison-6.0-build/tmp/deploy/images/core-image-minimal-qemux86.ext3

(quoted diff) +0 -2
-show-cursor -usb -usbdevice wacom-tablet -vga vmware -enable-gl -no-reboot
-m 128 --append "vga=0 root=/dev/hda rw mem=128M
Quoted 3 lines

ip=192.168.7.2::192.168.7.1:255.255.255.0 oprofile.timer=1 " Enabling opengl

So, what is the problem?

author
#2 lore raw
Quoted 29 lines · autif khan
Quoted 28 lines · cnxsoft

Hi,

I have build x86 qemu image using "bitbake -k core-image-sato" following the instructions given at
http://www.yoctoproject.org/docs/1.1/yocto-project-qs/yocto-project-qs.html
I'm running Ubuntu 11.10 in VirtualBox 4.1.6.

When I run qemu, qemu starts apparently fine, but the qemu window stays black. So I'm suspecting that either it does not work in Virtualbox or I may have tochange some settings in qemu (e.g. -vga vmware).

Here's the output:

runqemu qemux86

Continuing with the following parameters:
KERNEL:
[/home/jaufranc/edev/edison-6.0-build/tmp/deploy/images/bzImage-qemux86.bin] ROOTFS:
[/home/jaufranc/edev/edison-6.0-build/tmp/deploy/images/core-image-minimal-qemux86.ext3]
FSTYPE: [ext3]
Setting up tap interface under sudo
Acquiring lockfile for tap0...
Starting distccd...
Running qemu... /home/jaufranc/edev/edison-6.0-build/tmp/sysroots/i686-linux/usr/bin/qemu -kernel /home/jaufranc/edev/edison-6.0-build/tmp/deploy/images/bzImage-qemux86.bin

Quoted 8 lines
Quoted 7 lines

-net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=no,downscript=no -hda /home/jaufranc/edev/edison-6.0-build/tmp/deploy/images/core-image-minimal-qemux86.ext3

(quoted diff) +0 -2
-show-cursor -usb -usbdevice wacom-tablet -vga vmware -enable-gl -no-reboot
-m 128 --append "vga=0 root=/dev/hda rw mem=128M

ip=192.168.7.2::192.168.7.1:255.255.255.0 oprofile.timer=1 " Enabling opengl

So, what is the problem?

Qemu starts apparently fine, but the qemu window stays black.

#8 lore raw
In reply to cnxsoft
Quoted 10 lines · cnxsoft

Hi,

I have build x86 qemu image using "bitbake -k core-image-sato" following the instructions given at
http://www.yoctoproject.org/docs/1.1/yocto-project-qs/yocto-project-qs.html
I'm running Ubuntu 11.10 in VirtualBox 4.1.6.

When I run qemu, qemu starts apparently fine, but the qemu window stays black. So I'm suspecting that either it does not work in Virtualbox or I may have tochange some settings in qemu (e.g. -vga vmware).

Have you installed the Virtualbox guest additions within your VM?

Fwiw I've not run into any issues doing this with a Fedora 14 and Fedora 16 VM (other than the builds themselves being dog slow). I make sure to install the guest additions in all my VMs.

Scott

Signature · 3 lines
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center
author
#9 lore raw
Quoted 13 lines · Scott Garman
Quoted 11 lines · cnxsoft

Hi,

I have build x86 qemu image using "bitbake -k core-image-sato" following the instructions given at
http://www.yoctoproject.org/docs/1.1/yocto-project-qs/yocto-project-qs.html

I'm running Ubuntu 11.10 in VirtualBox 4.1.6.

When I run qemu, qemu starts apparently fine, but the qemu window stays black. So I'm suspecting that either it does not work in Virtualbox or I may have tochange some settings in qemu (e.g. -vga vmware).

Quoted 6 lines

Have you installed the Virtualbox guest additions within your VM?

Fwiw I've not run into any issues doing this with a Fedora 14 and Fedora 16 VM (other than the builds themselves being dog slow). I make sure to install the guest additions in all my VMs.

Scott

Thanks Scott. Yes, I have Virtual Box guest additions installed. My host is running Windows XP btw. And yes it was slow...the build for core-image-minimal took around 36 hours... I found a link with a Virtual Box issue (https://wiki.yoctoproject.org/wiki/Build_Appliance_Design), but it seem related to the build itself rather than an issue while running qemu.

#10 lore raw
Quoted 20 lines · cnxsoft
Quoted 19 lines · Scott Garman
Quoted 11 lines · cnxsoft

Hi,

I have build x86 qemu image using "bitbake -k core-image-sato" following the instructions given at
http://www.yoctoproject.org/docs/1.1/yocto-project-qs/yocto-project-qs.html

I'm running Ubuntu 11.10 in VirtualBox 4.1.6.

When I run qemu, qemu starts apparently fine, but the qemu window stays black. So I'm suspecting that either it does not work in Virtualbox or I may have tochange some settings in qemu (e.g. -vga vmware).

Have you installed the Virtualbox guest additions within your VM?

Fwiw I've not run into any issues doing this with a Fedora 14 and Fedora 16 VM (other than the builds themselves being dog slow). I make sure to install the guest additions in all my VMs.

Quoted 8 lines
Quoted 2 lines

Scott

Thanks Scott. Yes, I have Virtual Box guest additions installed. My host is running Windows XP btw. And yes it was slow...the build for core-image-minimal took around 36 hours...
I found a link with a Virtual Box issue
(https://wiki.yoctoproject.org/wiki/Build_Appliance_Design), but it seem related to the build itself rather than an issue while running qemu.

Hmmm...I'm not sure what to tell you. Really grasping for straws here - one thing you could try is to export the image and load it into VMWare Player and see if there is any difference. If not, that would implicate the guest distro (Ubuntu 11.10).

Scott

Signature · 3 lines
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center
#3 lore raw
In reply to cnxsoft

On Feb 8, 2012, at 8:18 AM, cnxsoft wrote:

Quoted 9 lines · autif khan
Quoted 5 lines · cnxsoft

Hi,

.255.0 oprofile.timer=1 "
Enabling opengl

So, what is the problem?

Qemu starts apparently fine, but the qemu window stays black.

I would try one of the pre-built images to isolate the problem between running inside virtualbox and your build.

_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

David Smoot
[email protected]

#4 lore raw
Quoted 7 lines · David Smoot

On Feb 8, 2012, at 8:18 AM, cnxsoft wrote:

Quoted 3 lines · autif khan
Quoted 2 lines · cnxsoft

Hi,

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

.255.0 oprofile.timer=1 "
Enabling opengl

So, what is the problem?

Qemu starts apparently fine, but the qemu window stays black.

I would try one of the pre-built images to isolate the problem between running inside virtualbox and your build.

This would be much quicker to test than my "export to VMWare Player" suggestion. I'd definitely try this first.

Scott

Signature · 3 lines
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center
author
#5 lore raw

Re: Yocto in Virtualbox (Ubuntu 11.10)

Quoted 13 lines · Scott Garman
Quoted 12 lines · David Smoot

On Feb 8, 2012, at 8:18 AM, cnxsoft wrote:

Quoted 7 lines · autif khan
Quoted 5 lines · cnxsoft

Hi,

.255.0 oprofile.timer=1 "
Enabling opengl

So, what is the problem?

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

Qemu starts apparently fine, but the qemu window stays black.

I would try one of the pre-built images to isolate the problem between running inside virtualbox and your build.

This would be much quicker to test than my "export to VMWare Player" suggestion. I'd definitely try this first.

Scott

FYI. have done some further tests with the prebuilt binaries and toolchain (yocto-eglibc-i686-i586-toolchain-gmae-1.0.tar.bz2, bzImage-2.6.37-qemux86-1.0.bin and yocto-image-minimal-dev-qemux86-1.0.rootfs.ext3).

With Ubuntu 11.10 (Virtual Box), it fails with the same black screen. With Debian Squeeze 6.0.3 (inside Virtual Box), it works fine.

PS: For Ubuntu, poky-qemu script to pass libGL detection.

#6 lore raw

Re: Yocto in Virtualbox (Ubuntu 11.10)

Quoted 9 lines · cnxsoft

FYI. have done some further tests with the prebuilt binaries and toolchain (yocto-eglibc-i686-i586-toolchain-gmae-1.0.tar.bz2, bzImage-2.6.37-qemux86-1.0.bin and yocto-image-minimal-dev-qemux86-1.0.rootfs.ext3).

With Ubuntu 11.10 (Virtual Box), it fails with the same black screen. With Debian Squeeze 6.0.3 (inside Virtual Box), it works fine.

PS: For Ubuntu, poky-qemu script to pass libGL detection.

Thank you for reporting this, I have filed the following bug to track this issue:

http://bugzilla.pokylinux.org/show_bug.cgi?id=1971

Are you using the default user interface (Unity) in your Ubuntu setup?

Scott

Signature · 3 lines
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center
author
#7 lore raw

Re: Yocto in Virtualbox (Ubuntu 11.10)

Quoted 11 lines · Scott Garman
Quoted 9 lines · cnxsoft

FYI. have done some further tests with the prebuilt binaries and toolchain (yocto-eglibc-i686-i586-toolchain-gmae-1.0.tar.bz2, bzImage-2.6.37-qemux86-1.0.bin and yocto-image-minimal-dev-qemux86-1.0.rootfs.ext3).

With Ubuntu 11.10 (Virtual Box), it fails with the same black screen. With Debian Squeeze 6.0.3 (inside Virtual Box), it works fine.

PS: For Ubuntu, poky-qemu script to pass libGL detection.

Quoted 8 lines

Thank you for reporting this, I have filed the following bug to track this issue:

http://bugzilla.pokylinux.org/show_bug.cgi?id=1971

Are you using the default user interface (Unity) in your Ubuntu setup?

Scott

Yes, I'm using the Unity user interface.

Just one detail. By mistake, yesterday I used Yocto 1.0 toolchain and pre-built binaries. I've tried again with with Yocto 1.1 and I did not need to change any script, but the black screen issue still occurs.