Discussion:
Yocto in Virtualbox
cnxsoft
2012-02-08 08:14:06 UTC
Permalink
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.
autif khan
2012-02-08 14:06:42 UTC
Permalink
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).
runqemu qemux86
[/home/jaufranc/edev/edison-6.0-build/tmp/deploy/images/bzImage-qemux86.bin]
[/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
So, what is the problem?
cnxsoft
2012-02-08 14:18:39 UTC
Permalink
Post by autif khan
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).
runqemu qemux86
[/home/jaufranc/edev/edison-6.0-build/tmp/deploy/images/bzImage-qemux86.bin]
[/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
So, what is the problem?
Qemu starts apparently fine, but the qemu window stays black.
David Smoot
2012-02-09 03:11:22 UTC
Permalink
Post by autif khan
Post by 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
yocto-EtnWKYl6rD/WsZ/***@public.gmane.org
https://lists.yoctoproject.org/listinfo/yocto

David Smoot
davidsmoot-***@public.gmane.org
Scott Garman
2012-02-09 03:15:06 UTC
Permalink
Post by David Smoot
Post by autif khan
Post by 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.
This would be much quicker to test than my "export to VMWare Player"
suggestion. I'd definitely try this first.

Scott
--
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center
cnxsoft
2012-02-09 08:50:46 UTC
Permalink
Post by Scott Garman
Post by David Smoot
Post by autif khan
Post by 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.
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.
Scott Garman
2012-02-09 16:44:56 UTC
Permalink
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
--
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center
cnxsoft
2012-02-10 08:52:02 UTC
Permalink
Post by Scott Garman
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
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.
Scott Garman
2012-02-08 17:00:08 UTC
Permalink
Post by 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
--
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center
cnxsoft
2012-02-09 02:01:08 UTC
Permalink
Post by Scott Garman
Post by 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
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.
Scott Garman
2012-02-09 02:56:39 UTC
Permalink
Post by Scott Garman
Post by 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
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
--
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center
Loading...