From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 4 21:25:04 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 34C981065676 for ; Thu, 4 Dec 2008 21:25:04 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.freebsd.org (Postfix) with ESMTP id B046C8FC17 for ; Thu, 4 Dec 2008 21:25:03 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: by gwyn.kn-bremen.de (Postfix, from userid 10) id 8BEA8192053; Thu, 4 Dec 2008 22:25:02 +0100 (CET) Received: from saturn.kn-bremen.de (noident@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.14.2/8.13.8) with ESMTP id mB4LNCmn018293; Thu, 4 Dec 2008 22:23:12 +0100 (CET) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.14.2/8.13.6/Submit) id mB4LNBMN018292; Thu, 4 Dec 2008 22:23:11 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Thu, 4 Dec 2008 22:23:11 +0100 To: yanefbsd@gmail.com Message-ID: <20081204212311.GA17962@saturn.kn-bremen.de> References: <5f67a8c40812021718i4cc225fem5b02a448702ec606@mail.gmail.com> <7d6fde3d0812040327w7c92826i64c6073a453d65ef@mail.gmail.com> <5f67a8c40812040952u1364563awcfd493695e7fea7c@mail.gmail.com> <200812042046.mB4KkC0k016853@saturn.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200812042046.mB4KkC0k016853@saturn.kn-bremen.de> User-Agent: Mutt/1.5.17 (2007-11-01) X-Mailman-Approved-At: Thu, 04 Dec 2008 21:46:13 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: AMD64 qemu completely broken? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Dec 2008 21:25:04 -0000 On Thu, Dec 04, 2008 at 09:46:12PM +0100, I wrote: > In article <7d6fde3d0812041105h43cf6586r5092e234a6350310@mail.gmail.com> you write: > >On Thu, Dec 4, 2008 at 9:52 AM, Zaphod Beeblebrox wrote: > >> On Thu, Dec 4, 2008 at 6:27 AM, Garrett Cooper wrote: > >>> > >>> Are you running the ports version, or a different version, and/or are > >>> you using kqemu (I've heard this was broken, in the past)? My group at > >>> Cisco has several issues with older versions of qemu for PPC and when > >>> we applied patches, it improved support greatly in some cases, and > >>> introduced bugs in other cases =\. > >>> > >>> I'd definitely hit the devel list for QEMU and see what they say while > >>> you're waiting for a more substantial reply here. > >> > >> I'm using the ports version. I am using kqemu... although I can try without > >> the kernel module later today. > >> > >> How out-of-date is the port? > > > >1. Try without kqemu :) (or at least rebuild it, then disable it if > >you continue to run into problems). > >2. emulators/qemu is the latest stable, but there are typically a > >number of changes floating out in the devel branch > >(emulators/qemu-devel) that might be of interest to you: > > > >[root@optimus /store]# grep -r ^PORTVERSION /usr/ports/emulators/qemu* > >/usr/ports/emulators/qemu/Makefile:PORTVERSION= 0.9.1 > >/usr/ports/emulators/qemu-devel/Makefile:PORTVERSION= 0.9.1s.20080620 > > Yes, qemu-devel is worth a try. I also post experimental port updates > on -emulation once in a while that bring the qemu-devel port to more recent > svn snapshots, like here: > http://lists.freebsd.org/pipermail/freebsd-emulation/2008-November/005530.html > > Oh and btw -kernel-kqemu is known to be broken with FreeBSD/amd64 guests, > I was still able to boot 7.1-BETA2-amd64-livefs.iso into fixit->cdrom > and try a few things in there using `regular' (userland) kqemu and my > latest qemu-devel snapshot tho. I forgot to say the qemu-devel port (as well as the later snapshots I posted about on -emulation) also support -curses, which shows the emulated vga text(!)console on qemu's tty. This works quite well with FreeBSD guests (even the isos) if you extend your xterm/whatever by one line (the default vga textconsole is 80x25 instead of 80x24.) Of course if you have an installed guest you can also configure it for a serial console (in a FreeBSD guest:) # echo console=\"comconsole\" >>/boot/loader.conf # sed -i -e '/^ttyd0/s/off/on/' /etc/ttys and from then on run qemu with -nographic. (with -nographic, the guest's serial console and qemu's monitor are multiplexed on qemu's tty, hit ctrl-a and then `h' to show a small help.) -nographic also works with older qemu versions. HTH, Juergen