Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86049 - QEMU not launching SDL display on AMD64
Summary: QEMU not launching SDL display on AMD64
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-20 12:53 UTC by Darren Spruell
Modified: 2005-03-20 12:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Screenshot of the "dotted" terminal output (qemu.png,330.51 KB, image/png)
2005-03-20 12:55 UTC, Darren Spruell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Darren Spruell 2005-03-20 12:53:27 UTC
I have emerged ~amd64 versions of app-emulation/qemu and media-libs/libsdl in an attempt to get the SDL machine emulation to work right. When launching qemu with a blank disk image I don't get a graphical display, I get a terrible representation of the image on my terminal.

Reproducible: Always
Steps to Reproduce:
1. Emerge media-libs/libsdl-1.2.8-r1 (must allow ~amd64). USE flag settings: X aalib alsa -arts -debug -dga -directfb -esd -fbcon -ggi -libcaca -nas -noaudio -nojoystick -novideo opengl oss -xinerama xv
2. Emerge app-emulation/qemu-0.6.1-r1 (must allow ~amd64). USE flag settings: sdl softmmu
3. Create standard empty disk image: 'qemu-img create test.img 3G'.
4. Create executable script "qemu-ifup.sh" with these contents:
     ifconfig tun0 10.0.1.6 netmask 255.255.255.0 broadcast 10.0.1.255 up
   (Must have Universal TUN/TAP device support).
5. Launch qemu from an X terminal: 'sudo qemu -cdrom /dev/cdrom -boot d -m 256 -localtime -n qemu-ifup.sh test.img'. Watch as the output shows up as little dots on the terminal (using aterm) rather than a nice GUI display.
Actual Results:  
The SDL display never launches, a dotted representation of the boot image is
shown on the terminal instead.

(I will include a screenshot attachment.)

Expected Results:  
Should have launched the QEMU SDL display in a seperate window and displayed as
if booting a real system from the CDROM.

Running xorg-x11-6.8.2-r1, fluxbox-0.9.12-r1, nvidia-kernel-1.0.6629-r1 for
GeForce 6800.

Portage 2.0.51.19 (default-linux/amd64/2004.3, gcc-3.4.3,
glibc-2.3.4.20041102-r1, 2.6.9-gentoo-r12 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r12 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 14 2005, 20:32:49)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.8.5-r3, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com http://cudlug.cudenver.edu/gentoo
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aac aalib acpi alsa apache2 avi berkdb bitmap-fonts cdr crypt cups
curl divx4linux dvd dvdr encode esd exif fam flac font-server foomaticdb fortran
gd gif gnome gphoto2 gpm gstreamer gtk gtk2 imagemagick imlib java jp2 jpeg
junit kde ldap libwww lzw lzw-tiff mad mozilla mp3 mpeg multilib mysql ncurses
nls nptl nvidia oggvorbis opengl oss pam pcre perl png python qt quicktime
readline samba sdl snmp spell ssl tcltk tcpd tiff truetype truetype-fonts
type1-fonts usb userlocales xine xml2 xmms xpm xrandr xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Darren Spruell 2005-03-20 12:55:36 UTC
Created attachment 53971 [details]
Screenshot of the "dotted" terminal output
Comment 2 Darren Spruell 2005-03-20 12:58:40 UTC
I see now that the error is in my invocation of 'sudo'. The tun device used for the network is not accessible for my user, so I wanted to invoke qemu as root rather than modify permissions for the tun device.

Should have troubleshot a bit more, looks like :-\