From owner-freebsd-virtualization@FreeBSD.ORG Tue Dec 17 02:06:48 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7649EF02 for ; Tue, 17 Dec 2013 02:06:48 +0000 (UTC) Received: from smtp149.ord.emailsrvr.com (smtp149.ord.emailsrvr.com [173.203.6.149]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 382F918EE for ; Tue, 17 Dec 2013 02:06:47 +0000 (UTC) Received: from smtp15.relay.ord1a.emailsrvr.com (localhost.localdomain [127.0.0.1]) by smtp15.relay.ord1a.emailsrvr.com (SMTP Server) with ESMTP id 02ACA270142; Mon, 16 Dec 2013 20:57:59 -0500 (EST) X-SMTPDoctor-Processed: csmtpprox 2.7.4 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp15.relay.ord1a.emailsrvr.com (SMTP Server) with ESMTP id EF55E27018D; Mon, 16 Dec 2013 20:57:58 -0500 (EST) X-Virus-Scanned: OK Received: from smtp192.mex05.mlsrvr.com (unknown [184.106.31.85]) by smtp15.relay.ord1a.emailsrvr.com (SMTP Server) with ESMTPS id BEF0E270142; Mon, 16 Dec 2013 20:57:58 -0500 (EST) Received: from ORD2MBX05C.mex05.mlsrvr.com ([fe80::90e2:baff:fe30:7498]) by ORD2HUB07.mex05.mlsrvr.com ([fe80::d6ae:52ff:fe7f:66a7%15]) with mapi id 14.03.0158.001; Mon, 16 Dec 2013 19:57:56 -0600 From: Michael Berman To: Neel Natu Subject: Re: break to debugger in bhyve Thread-Topic: break to debugger in bhyve Thread-Index: AQHO+fWcAdZnUKNB1Eyr8jDJeSsP0JpWZ7KA///bvduAAbTwAP//iPsA Date: Tue, 17 Dec 2013 01:57:55 +0000 Message-ID: References: <52AE52DD.6020500@freebsd.org> <03322001-03C7-491F-B97D-64EA2E89BF6C@tidalscale.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [152.179.42.173] Content-Type: text/plain; charset="iso-8859-1" Content-ID: <74DFC4540633D94DA02974B57CFD19D0@mex05.mlsrvr.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Dec 2013 02:06:48 -0000 Yes, thank you. I had this in my sysctl.conf. It seems that my problem was in use of ssh in my environment. =B3~~^B=B2 finally did the trick. I=B9ve also moved it to boot/loader.conf as this sets it a little earlier i= n the boot sequence. It is still unreliable for me, but it may be my environent. On 12/16/13, 5:03 PM, "Neel Natu" wrote: >Hi Michael, > >On Sun, Dec 15, 2013 at 9:00 PM, Michael Berman > wrote: >> >> Unfortunately, this does not seem to work with the bhyve /dev/console >>device. >> > >Works fine for me once I compile with the ALT_BREAK_TO_DEBUGGER config >option. > >root@b2:~ # sysctl -a kern.conftxt | grep ALT_BREAK_TO_DEBUGGER >options ALT_BREAK_TO_DEBUGGER >root@b2:~ # >root@b2:~ # KDB: enter: Break to debugger >[ thread pid 11 tid 100003 ] >Stopped at kdb_alt_break_internal+0x17f: movq $0,kdb_why >db> > >best >Neel > >> Sent from my iPhone >> >>> On Dec 15, 2013, at 5:10 PM, "Julian Elischer" >>>wrote: >>> >>>> On 12/16/13, 8:27 AM, Michael Berman wrote: >>>> I=B9ve tried the various kernel and sysctl options, and it may be the >>>>way I am starting bhyve but I can=B9t seem to get a the FreeBSD guest t= o >>>>enter the kernel debugger with a hotkey. >>> it depends of course on which 'console' you are using,, for serial >>>console with /dev/nmdm you can use the ALT_BREAK_TO_DEBUGGER >>> option so that {enter| {~} {^B} will drop you into the debugger. >>> When I was doing this last I had the console on the first serial port >>>and the debugger on the second. >>> (that's why I wrote the nmdm node.) >>>> >>>> Michael >>>> >>>> _______________________________________________ >>>> freebsd-virtualization@freebsd.org mailing list >>>> http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization >>>> To unsubscribe, send any mail to >>>>"freebsd-virtualization-unsubscribe@freebsd.org" >>> >> _______________________________________________ >> freebsd-virtualization@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization >> To unsubscribe, send any mail to >>"freebsd-virtualization-unsubscribe@freebsd.org"