Nenad Cimerman
2007-Feb-13 19:30 UTC
[qemu-discuss] Successfully tested "Latest binary x86/x64 pkg (QEMU 0.8.2_cvs20070120sat)
Hi all, yesterday I tried the latest binary pkgs on my AMD64 system (ACER T180) running Solaris 10 11/06 in 64-bit mode (with all latest patches from SUN Update Connection). As this was my very first hands-on experience with QEMU I was expecting some trouble - but no! [b]The thing just worked out of the box and running it with the option ''-kernel-kqemu'' QEMU reaches really good performance![/b] Since I was using VMware the last 2-3 years, I''d think QEMU with kqemu-accellerator is very much comparable. [i]Congratulations to Fabrice and all of you great software engineers, making this possible![/i] ...allright - having this said, here''s the rest of my ''success story'' ;-) I) installed SUNWqemu-0.8.2_cvs20070120_REV_2007.01.24-sol10-i386-opt.pkg.gz from http://www.opensolaris.org/os/project/qemu/downloads/ a) base QEMU download comes in solaris pkg-format:>>note: documentation on http://www.opensolaris.org/os/project/qemu/host/ lags behind, as it''s still explaining tar-file extraction<<# cd /local/download/QEMU/ # gunzip SUNWqemu-0.8.2_cvs20070120_REV_2007.01.24-sol10-i386-opt.pkg.gz # pkgadd -d SUNWqemu-0.8.2_cvs20070120_REV_2007.01.24-sol10-i386-opt.pkg b) KQEMU: kernel accellerator-module (kqemu) # gzcat kqemu-osol-1.3.0pre9-v0.2.tar.gz | tar -xf - # /usr/ccs/bin/make install Wow - that''s simple and fast! II) created my very first virtual QEMU-PC set up a virtual harddisk: # qemu-img create -f qcow c.img 20G # /opt/SUNWqemu/bin/qemu-img create -f qcow c.img 20G Formating ''c.img'', fmt=qcow, size=20971520 kB III) initial boot and installation of WXPP guest First I did little bit of prepartation, to make my life easier: - disable volfs service, in order to prevent trouble when host & guest try to access removable media # svcadm disable volfs and also set up symbolic link for my CD-ROM device: # ln -s /dev/dsk/c1t0d0p0 /dev/cdrom Now I inserted my Windows XP installation CD-ROM and started my virtual QEMU-PC: # /opt/SUNWqemu/bin/qemu -cdrom /dev/cdrom -hda /local/QEMUguests/Qwxpp01/c.img -m 384 -boot d and to my surprise, the boot process was ''blindingly fast'' ;-) Installation went through like a breeze - however, Windows was hanging at first boot, after auto-adapting screen-resolution. After waiting for a while and nothing happening, I closed the QEMU window. I restarted the system, this time ommitting the ''-boot d'' option. As I expected, the virtual PC now automatically bootet from its virtual harddisk. Only a couple of seconds later, the windows greeting screen showed up and I entered my password... IV) Problem with Windows XP license-check Right after login, it complained that there was a problem in verifying the windows license - error code: 0?800703e6... oops! Throwing this error code into google delivered tons of messages, from other people having the same problem. And the major part of them where trying to use Windows XP on top of QEMU! After following many different pointers und some hints from the QEMU FAQ I happend to realize, that I did run QEMU in 32-bit mode! Solution: using 64-bit binary fixes this problem # /opt/SUNWqemu/bin/amd64/qemu-system-x86_64 -cdrom /dev/cdrom -hda c.img -m 384 & It also works w/o any problems, if I boot my Solaris host in 32-bit mode and then use 32-bit QEMU. IV) some fine-tuning After being able to successfully login to my windows guest system, I did my usual tweaks: - color depth: 16-bit (instead of 24-bit) - screen resolution: 1024x768 - turned off desktop effects/animations Performance was not really that bad, but looking at the shell-window where I started QEMU revealed, that there was still more speed possible: each time I started QEMU it complained: ''Error -1 while initializing QEMU accelleration layer - disabling it for now'' Finally I ended up, using a littel shell-script to start my windows QEMU-guest system: # # starte Windows XP Prof. QEMU-Gast # PATH=$PATH:/opt/SUNWqemu/bin export PATH /opt/SUNWqemu/bin/amd64/qemu-system-x86_64 -hda /local/QEMUguests/Qwxpp01/c.img \ -m 384 -usb -usbdevice tablet \ -kernel-kqemu -localtime & [b]Keep up the good work![/b] --- Nenad Cimerman - now an QEMU evangelist ;-) -- This message posted from opensolaris.org