Martin Bochnig
2006-Oct-19 05:33 UTC
[qemu-discuss] New SUNWqemu-0.8.2, REV=2006.10.18-sol10-i386-opt.pkg.gz for x64/x86 ready for public testing
http://opensolaris.org/os/project/qemu/downloads/ Latest patched QEMU sources 20061013 <http://opensolaris.org/os/project/qemu/downloads/qemu-0.8.2-solaris_src_20061013fri.tar.bz2>QEMU 0.8.2 + patches snapshot October 13th 2006 Previous patched QEMU sources 20061002 <http://www.opensolaris.org/os/project/qemu/downloads/qemu-0.8.2-solaris.tar.gz>QEMU 0.8.2 + patches snapshot October 2nd 2006 Pre-built x86 binaries_pkg <http://opensolaris.org/os/project/qemu/downloads/SUNWqemu-0.8.2_REV_2006.10.18-sol10-i386-opt.pkg.bz2> 32-bit and 64-bit x86/x64 pre-compiled QEMU 0.8.2 binaries for Solaris 10 / 11 / OpenSolaris Should run on Sol10-x86 FCS aka 03/05 or higher (has been built under Solaris 10 03/05 FCS). More details later, on request. Will not require LD_LIBRARY_PATH through both -R and -L plus crle (had been required for 64bit vs. 32bit libgcc to avoid conflicting versions) : # crle -c /opt/SUNWqemu/var/ld/ld.config Configuration file [version 4]: /opt/SUNWqemu/var/ld/ld.config Default Library Path (ELF): /opt/SUNWqemu/lib:/usr/sfw/lib:/lib:/usr/lib Trusted Directories (ELF): /lib/secure:/usr/lib/secure (system default) Command line: crle -c /opt/SUNWqemu/var/ld/ld.config -l /opt/SUNWqemu/lib:/usr/sfw/lib:/lib:/usr/lib # crle -64 -c /opt/SUNWqemu/var/ld/64/ld.config Configuration file [version 4]: /opt/SUNWqemu/var/ld/64/ld.config Default Library Path (ELF): /opt/SUNWqemu/lib/64:/usr/sfw/lib/64:/lib/64:/usr/lib/64 Trusted Directories (ELF): /lib/secure/64:/usr/lib/secure/64 (system default) Command line: crle -64 -c /opt/SUNWqemu/var/ld/64/ld.config -l /opt/SUNWqemu/lib/64:/usr/sfw/lib/64:/lib/64:/usr/lib/64 # uname -a SunOS martux 5.10 Generic i86pc i386 i86pc # isainfo -k amd64 # Make sure you have http://www.opensolaris.org/os/project/qemu/downloads/kqemu-osol-1.3.0pre9-v0.2.tar.gz installed :-) New features: ===========* provides qemu-system-i80586 target identifying itself with cpuid of 586 (i.e. for WinNT3.10 guest support) * improved RAS (runs on all hosts equal or higher Sol2.10_FCS; no LD_LIBRARY_PATH trouble; no crashing SiSoft-Sandra inside Win98SE guest; strongly enhanced sources wich much improved sparc host compatibility) * IDE-UDMA patch derived from Juergen Keil''s original patch (Solaris x86 guests can now be booted with dma enabled, out of the box as default / no grub cmd line) * Improved support for booting the Solaris10/11 amd 64 kernel (Attention: still crashes when in combination with the wrapped kqemu module, but works okay w/out kqemu) * New sdl lib * delivered as SVR4 pkgadd package * /opt/SUNWqemu/bin/$ISAEXEC instead /opt/SUNWqemu/[32|64] --Martin
Martin Bochnig
2006-Oct-19 07:50 UTC
err Re: [qemu-discuss] New SUNWqemu-0.8.2, REV=2006.10.18-sol10-i386-opt.pkg.gz for x64/x86 ready for public testing
Sorry, the new version doesn''t work with kqemu very well. This affects the old and the new src equally. The compiler or build env seems to be the problem. Please continue to use the previous version that can still be obtained from http://opensolaris.org/os/project/qemu/downloads/qemu-osol-0.8.2-bin-x86.tar.gz Sorry for any inconveniences. Martin Bochnig wrote:>http://opensolaris.org/os/project/qemu/downloads/ > >Latest patched QEMU sources 20061013 ><http://opensolaris.org/os/project/qemu/downloads/qemu-0.8.2-solaris_src_20061013fri.tar.bz2>QEMU >0.8.2 + patches snapshot October 13th 2006 >Previous patched QEMU sources 20061002 ><http://www.opensolaris.org/os/project/qemu/downloads/qemu-0.8.2-solaris.tar.gz>QEMU >0.8.2 + patches snapshot October 2nd 2006 >Pre-built x86 binaries_pkg ><http://opensolaris.org/os/project/qemu/downloads/SUNWqemu-0.8.2_REV_2006.10.18-sol10-i386-opt.pkg.bz2> >32-bit and 64-bit x86/x64 pre-compiled QEMU 0.8.2 binaries for Solaris >10 / 11 / OpenSolaris > >Should run on Sol10-x86 FCS aka 03/05 or higher (has been built under >Solaris 10 03/05 FCS). > >
Martin,>>Sorry, the new version doesn''t work with kqemu very wellSo kqemu not working in 64 Bit mode is a known bug (or do you talk about another bug)? (bash):root at ferrari:/root # uname -a SunOS ferrari 5.11 snv_49 i86pc i386 i86pc (bash):root at ferrari:/root # isainfo -kv 64-bit amd64 kernel modules (bash):root at ferrari:/root # modinfo | grep kqemu 227 fffffffff5e14000 27380 211 1 kqemu (kqemu accelerator v0.2) (bash):root at ferrari:/root # pkginfo -l SUNWqemu PKGINST: SUNWqemu NAME: qemu CATEGORY: application ARCH: i386 VERSION: 0.8.2 BASEDIR: /opt VENDOR: Sun Microsystems, Inc. PSTAMP: Martin Bochnig INSTDATE: Oct 19 2006 09:04 HOTLINE: http://opensolaris.org/os/project/qemu/ EMAIL: qemu-discuss at opensolaris.org STATUS: completely installed FILES: 326 installed pathnames 18 directories 31 executables 44161 blocks used (approx) [19.10.2006 13:48:58] Executing "/opt/SUNWqemu/bin/qemu-system-x86_64 -L /opt/SUNWqemu/bin/../share/qemu -boot d -m 256 -monitor stdio -hda /export/qemu/hdimg//dsl.hdd -cdrom /export/qemu/cdrom/dsl.iso " ... + /opt/SUNWqemu/bin/qemu-system-x86_64 -L /opt/SUNWqemu/bin/../share/qemu -boot d -m 256 -monitor stdio -hda /export/qemu/hdimg//dsl.hdd -cdrom /export/qemu/cdrom/dsl.iso QEMU 0.8.2 monitor - type ''help'' for more information (qemu) info kqemu kqemu support: not compiled (qemu) Using the 32 bit binary on a 32 Bit kernel and the kqemu module looks okay to me: (bash):root at ferrari:/root # uname -a SunOS ferrari 5.11 snv_49 i86pc i386 i86pc (bash):root at ferrari:/root # isainfo -kv 32-bit i386 kernel modules (bash):root at ferrari:/root # modinfo | grep qemu 227 f96b2000 18998 211 1 kqemu (kqemu accelerator v0.2) (bash):root at ferrari:/root # start_dsl.sh -m [19.10.2006 14:15:28] start_dsl.sh started on Thu Oct 19 14:15:28 CEST 2006 [19.10.2006 14:15:28] No config file ("start_dsl.conf") found (use -C to create a default config file) [19.10.2006 14:15:28] Using the log file "/var/tmp/start_dsl.LOG" [19.10.2006 14:15:28] Starting the PC image "DSL ISO image" ... [19.10.2006 14:15:28] Using the qemu binary "/opt/SUNWqemu/bin/qemu" [19.10.2006 14:15:28] QEMU PC emulator version 0.8.2, Copyright (c) 2003-2005 Fabrice Bellard [19.10.2006 14:15:28] LD_LIBRARY_PATH is now "/opt/tools/qemu/SUNWqemu/32/lib::/usr/local/lib:/opt/oracle/OraHome_1/lib:/usr/local/lib:/opt/oracle/OraHome_1/lib:/usr/local/lib:/opt/oracle/OraHome_1/lib" [19.10.2006 14:15:28] Executing "/opt/SUNWqemu/bin/qemu -L /opt/SUNWqemu/bin/../share/qemu -boot d -m 256 -monitor stdio -hda /export/qemu/hdimg//dsl.hdd -cdrom /export/qemu/cdrom/dsl.iso " ... + /opt/SUNWqemu/bin/qemu -L /opt/SUNWqemu/bin/../share/qemu -boot d -m 256 -monitor stdio -hda /export/qemu/hdimg//dsl.hdd -cdrom /export/qemu/cdrom/dsl.iso QEMU 0.8.2 monitor - type ''help'' for more information (qemu) info kqemu kqemu support: enabled for user code (qemu) (qemu) quit (bash):root at ferrari:/root # start_dsl.sh -k -m [19.10.2006 14:18:49] start_dsl.sh started on Thu Oct 19 14:18:49 CEST 2006 [19.10.2006 14:18:49] No config file ("start_dsl.conf") found (use -C to create a default config file) [19.10.2006 14:18:49] Using the log file "/var/tmp/start_dsl.LOG" [19.10.2006 14:18:49] Starting the PC image "DSL ISO image" ... [19.10.2006 14:18:49] Using the qemu binary "/opt/SUNWqemu/bin/qemu" [19.10.2006 14:18:49] QEMU PC emulator version 0.8.2, Copyright (c) 2003-2005 Fabrice Bellard [19.10.2006 14:18:49] LD_LIBRARY_PATH is now "/opt/tools/qemu/SUNWqemu/32/lib::/usr/local/lib:/opt/oracle/OraHome_1/lib:/usr/local/lib:/opt/oracle/OraHome_1/lib:/usr/local/lib:/opt/oracle/OraHome_1/lib" [19.10.2006 14:18:49] Executing "/opt/SUNWqemu/bin/qemu -kernel-kqemu -L /opt/SUNWqemu/bin/../share/qemu -boot d -m 256 -monitor stdio -hda /export/qemu/hdimg//dsl.hdd -cdrom /export/qemu/cdrom/dsl.iso " ... + /opt/SUNWqemu/bin/qemu -kernel-kqemu -L /opt/SUNWqemu/bin/../share/qemu -boot d -m 256 -monitor stdio -hda /export/qemu/hdimg//dsl.hdd -cdrom /export/qemu/cdrom/dsl.iso QEMU 0.8.2 monitor - type ''help'' for more information (qemu) info kqemu kqemu support: enabled for user and kernel code (qemu) Unfortunately the "old" binaries do not work on snv_49 - the "new" ones do. If you compile new binaries - can you please include the patch from Juergen Keil for the bug in the info command? This bug is really annoying. regards Bernd -- This message posted from opensolaris.org
Martin Bochnig
2006-Oct-19 17:03 UTC
err Re: [qemu-discuss] New SUNWqemu-0.8.2, REV=2006.10.18-sol10-i386-opt.pkg.gz for x64/x86 ready for public testing
Martin Bochnig wrote:>Sorry, the new version doesn''t work with kqemu very well. >This affects the old and the new src equally. >The compiler or build env seems to be the problem. > >Please continue to use the previous version that can still be obtained >from >http://opensolaris.org/os/project/qemu/downloads/qemu-osol-0.8.2-bin-x86.tar.gz > >Sorry for any inconveniences. > > >I had been wrong in a negative way: The previous binary tar archive (installing in /opt/SUNWqemu/[32|64]) has pretty much the same problems with almost all of the tested guests, on all of the tested hosts :-( (This was my first major contact with kqemu / my first big testing matrix session, since my primary platform is sparc and kqemu isn''t available there.) At least on my 3 current x86 host configurations. Dammit, I have no time for games like this. Not currently. W/out kqemu anything should work as expected. _-_-Martin
Robert Dickel
2006-Oct-19 23:18 UTC
[qemu-discuss] Re: New SUNWqemu-0.8.2, REV=2006.10.18-sol10-i386-opt.pkg.gz for x64/x86
Just so I am clear, the amd64 binary, under an amd64 kernel, does not support using kqemu? How can I tell if I am using the kqemu accelerator? -- This message posted from opensolaris.org
Martin Bochnig
2006-Oct-19 23:30 UTC
[qemu-discuss] Re: New SUNWqemu-0.8.2, REV=2006.10.18-sol10-i386-opt.pkg.gz for x64/x86
Robert Dickel wrote:>Just so I am clear, the amd64 binary, under an amd64 kernel, does not support using kqemu? How can I tell if I am using the kqemu accelerator? > >You can explicitly disable it via # qemu -no-kqemu <foo> Otherwise optionally use the qemu-monitor the verify current kqemu status: i.e.: (qemu) info kqemu kqemu support: not compiled (qemu)
Robert Dickel
2006-Oct-20 00:02 UTC
[qemu-discuss] Re: Re: New SUNWqemu-0.8.2, REV=2006.10.18-sol10-i386-opt.pkg.gz for x64/
I installed the kqemu kernel module and the new package and I get the following: QEMU 0.8.2 monitor - type ''help'' for more information (qemu) info kqemu kqemu support: not compiled (qemu) -- This message posted from opensolaris.org
Martin Bochnig
2006-Oct-20 00:19 UTC
[qemu-discuss] Re: Re: New SUNWqemu-0.8.2, REV=2006.10.18-sol10-i386-opt.pkg.gz for x64/
Robert Dickel wrote:>I installed the kqemu kernel module and the new package and I get the following: > >QEMU 0.8.2 monitor - type ''help'' for more information >(qemu) info kqemu >kqemu support: not compiled >(qemu) > >Are you running the amd64 64 bit kernel? Which qemu binary are you running? I get the following when running /opt/SUNWqemu/bin/qemu on a 32bit HOST kernel (with Win98SE as guest) : /opt/SUNWqemu/bin/qemu -m 256m -k en-us -localtime /export/home/c.img__WIN98SE -monitor stdio QEMU 0.8.2 monitor - type ''help'' for more information (qemu) info kqemu kqemu support: enabled for user code (qemu) You are probably running the HOST''s 64 bit kernel, but are running a 32bit binary, and kqemu doesn''t work because of that (claiming, support wasn''t compiled in). Is that the case? The current implementation of Fabrice Bellard''s closed src kqemu module doesn''t yet support 32bit vs. 64bit bit-mixing of isainfo -k versus bittnes of binary. But future support may come some day, if I understood that correctly. See into kqemu-wrapper''s src and README for more information. -- Martin
Martin Bochnig
2006-Oct-20 00:23 UTC
[qemu-discuss] Re: Re: New SUNWqemu-0.8.2, REV=2006.10.18-sol10-i386-opt.pkg.gz for x64/
Martin Bochnig wrote:>Robert Dickel wrote: > > > >>I installed the kqemu kernel module and the new package and I get the following: >> >>QEMU 0.8.2 monitor - type ''help'' for more information >>(qemu) info kqemu >>kqemu support: not compiled >>(qemu) >> >> >>To make it clearer: See the same binaries as adm64 versions in /opt/SUNWqemu/bin/64 for trying out (experimental) kqemu support on a HOST running the 64bit kernel.
Martin Bochnig
2006-Oct-20 00:29 UTC
[qemu-discuss] Re: Re: New SUNWqemu-0.8.2, REV=2006.10.18-sol10-i386-opt.pkg.gz for x64/
Martin Bochnig wrote:>Martin Bochnig wrote: > > > >>Robert Dickel wrote: >> >> >> >> >> >>>I installed the kqemu kernel module and the new package and I get the following: >>> >>>QEMU 0.8.2 monitor - type ''help'' for more information >>>(qemu) info kqemu >>>kqemu support: not compiled >>>(qemu) >>> >>> >>> >>> >>> > >To make it clearer: > >See the same binaries as adm64 versions in > >/opt/SUNWqemu/bin/64 for trying out (experimental) kqemu support on a HOST running the 64bit kernel. > >FYI: This is what you would get with the totally unstable "-kernel-kqemu" kernel kqemu support activated: # file /opt/SUNWqemu/bin/qemu /opt/SUNWqemu/bin/qemu: ELF 32-bit LSB executable 80386 Version 1, dynamically linked, stripped # file /opt/SUNWqemu/bin/64/qemu /opt/SUNWqemu/bin/64/qemu: ELF 64-bit LSB executable AMD64 Version 1, dynamically linked, stripped # # uname -a SunOS AMD64-Ultra20 5.11 marTux_0.2 i86pc i386 i86pc # isainfo -k i386 # ======>> # /opt/SUNWqemu/bin/qemu -m 256m -k en-us -localtime /export/home/c.img__WIN98SE -monitor stdio -kernel-kqemu QEMU 0.8.2 monitor - type ''help'' for more information (qemu) info kqemu kqemu support: enabled for user and kernel code (qemu) <<===== -Martin
Bernd Schemmer wrote:> > > >Unfortunately the "old" binaries do not work on snv_49 - the "new" ones do. > >If you compile new binaries - can you please include the patch from Juergen Keil for the bug in the info command? This bug is really annoying. > > >regards > >Bernd > >In the _next_ version, yes. I just saw the patch. This does include a new sparc pkg to come next week, but not x86 for now. A pity that we didn''t talk a few days earlier about this / that I didn''t see it myself. Regards, Martin
Martin Bochnig
2006-Oct-20 00:59 UTC
[qemu-discuss] Re: Re: New SUNWqemu-0.8.2, REV=2006.10.18-sol10-i386-opt.pkg.gz for x64/
OP wrote:> On an amd64 platform I must run the qemu-system-x86_64 binary to get > kqemu support right?Yes, but that alone is not enough: The binary needs to match the kernel, that is amd64 in this case. You would have to use /opt/SUNWqemu/bin/64/qemu-system-x86_64 NOT /opt/SUNWqemu/bin/qemu-system-x86_64 See this: bash-3.00# /opt/SUNWqemu/bin/64/qemu -m 256m -k en-us -localtime /export/home/c.img__WIN98SE -monitor stdio QEMU 0.8.2 monitor - type ''help'' for more information (qemu) info kqemu kqemu support: not compiled (qemu) bash-3.00# /opt/SUNWqemu/bin/64/qemu-system-x86_64 -m 256m -k en-us -localtime /export/home/c.img__WIN98SE -monitor stdio QEMU 0.8.2 monitor - type ''help'' for more information (qemu) info kqemu kqemu support: enabled for user code (qemu) q bash-3.00# /opt/SUNWqemu/bin/qemu-system-x86_64 -m 256m -k en-us -localtime /export/home/c.img__WIN98SE -monitor stdio QEMU 0.8.2 monitor - type ''help'' for more information (qemu) info kqemu kqemu support: not compiled (qemu) q bash-3.00#> > Martin Bochnig wrote: > >> Martin Bochnig wrote: >> >>> Martin Bochnig wrote: >>> >>> >>> >>>> Robert Dickel wrote: >>>> >>>> >>>> >>>> >>>>> I installed the kqemu kernel module and the new package and I get >>>>> the following: >>>>> >>>>> QEMU 0.8.2 monitor - type ''help'' for more information >>>>> (qemu) info kqemu >>>>> kqemu support: not compiled >>>>> (qemu) >>>>> >>>>> >>>>> >>> To make it clearer: >>> >>> See the same binaries as adm64 versions in >>> >>> /opt/SUNWqemu/bin/64 for trying out (experimental) kqemu support on >>> a HOST running the 64bit kernel. >>> >>> >> >> >> >> FYI: >> >> This is what you would get with the totally unstable "-kernel-kqemu" >> kernel kqemu support activated: >> >> # file /opt/SUNWqemu/bin/qemu >> /opt/SUNWqemu/bin/qemu: ELF 32-bit LSB executable 80386 Version 1, >> dynamically linked, stripped >> # file /opt/SUNWqemu/bin/64/qemu >> /opt/SUNWqemu/bin/64/qemu: ELF 64-bit LSB executable AMD64 Version 1, >> dynamically linked, stripped >> # >> # uname -a >> SunOS AMD64-Ultra20 5.11 marTux_0.2 i86pc i386 i86pc >> # isainfo -k >> i386 >> # >> >> ======>> >> >> # /opt/SUNWqemu/bin/qemu -m 256m -k en-us -localtime >> /export/home/c.img__WIN98SE -monitor stdio -kernel-kqemu >> QEMU 0.8.2 monitor - type ''help'' for more information >> (qemu) info kqemu >> kqemu support: enabled for user and kernel code >> (qemu) >> <<=====>> >> >> -Martin >> >> >> > >