From owner-freebsd-virtualization@FreeBSD.ORG Mon May 4 15:27:27 2015 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7385E1EC; Mon, 4 May 2015 15:27:27 +0000 (UTC) Received: from mail-la0-x229.google.com (mail-la0-x229.google.com [IPv6:2a00:1450:4010:c03::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 115B51D04; Mon, 4 May 2015 15:27:27 +0000 (UTC) Received: by labbd9 with SMTP id bd9so106754687lab.2; Mon, 04 May 2015 08:27:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=TA9ZeS35fVslSB3ppCFxoxO7aLQssZjYBHZO324x3fQ=; b=UT4322WylUc6PQKoMoqjMqIKLT+obkTS70i3nha/qKLDxHuwF3F8lQ4z0eM5uKiOxs 9q1tzGRWpEmvlrT1wIkVF1CFUgfjyw94pwNTgW3/cCDULpqNQS6S1ntsaZhq17Ai6uqJ Q+vqvUwvY4Sk1QDCUSr+OzmPcN9w6b3uL6LFxWX2AUtgg2wOIv+olPwYCFNeHSdujEBe FEJGxkcSBgEYfE+9yj8zoJYHobVh3fT2v1Gp6YJw9GiDu2op2mHUUQ/PdrbRSnxRzzbg CmWjc+qXJx/UZHZSFQX6/WcD11sQN/5xAJfUtSk+dmCWQOM5AXMU8dNFujwXmFw1tlnC 8pHQ== X-Received: by 10.112.130.129 with SMTP id oe1mr10047561lbb.37.1430753245172; Mon, 04 May 2015 08:27:25 -0700 (PDT) Received: from kloomba ([31.29.239.59]) by mx.google.com with ESMTPSA id o1sm3416908lao.43.2015.05.04.08.27.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 May 2015 08:27:24 -0700 (PDT) Sender: Roman Bogorodskiy Date: Mon, 4 May 2015 18:27:14 +0300 From: Roman Bogorodskiy To: Roger Pau =?iso-8859-1?Q?Monn=E9?= Cc: freebsd-virtualization@freebsd.org, bapt@freebsd.org Subject: Re: xen_kernel, console and X11 Message-ID: <20150504152712.GA1005@kloomba> References: <20150502154340.GA8333@kloomba> <55473E2A.3020306@FreeBSD.org> <20150504140727.GA983@kloomba> <55478123.3050807@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J2SCkAp4GZ/dPZZf" Content-Disposition: inline In-Reply-To: <55478123.3050807@FreeBSD.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 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: Mon, 04 May 2015 15:27:27 -0000 --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Roger Pau Monn=E9 wrote: > Hello, >=20 > El 04/05/15 a les 16.16, Roman Bogorodskiy ha escrit: > > Roger Pau Monn=E9 wrote: > >=20 > >> Hello, > >> > >> El 02/05/15 a les 17.43, Roman Bogorodskiy ha escrit: > >>> Hi, > >>> > >>> I'm trying to get Xen running and following these instructions: > >>> > >>> https://wiki.freebsd.org/Xen > >>> > >>> and > >>> > >>> http://wiki.xen.org/wiki/FreeBSD_Dom0 > >>> > >>> I'm running two days old -CURRENT and ports. I've installed the > >>> emulators/xen port and followed instructions in pkg-message. > >>> > >>> I'm having some problems with console. I'm wondering if it's possible= to > >>> have X running on the same box running xen kernel? > >> > >> It should be, although I had issues while using the vesa driver with a > >> FreeBSD Xen Dom0, mainly because Dom0 doesn't have access to the BDA a= nd > >> EBDA, I'm working on fixing this in Xen upstream. > >> > >>> My setup is as follows: > >>> =20 > >>> - Intel i5-4690 that supports IOMMU: > >>> $ sudo acpidump -t|grep DMAR > >>> DMAR: Length=3D128, Revision=3D1, Checksum=3D90, > >>> $ > >>> - vm.max_wired=3D-1 in /etc/sysctl.conf > >>> - xc0 "/usr/libexec/getty Pc" xterm on secure in > >>> /etc/ttys > >>> > >>> In loader.conf I have: > >>> > >>> xen_kernel=3D"/boot/xen" > >>> xen_cmdline=3D"dom0_mem=3D2048M dom0_max_vcpus=3D4 dom0pvh=3D1 com1= =3D115200,8n1 > >>> guest_loglvl=3Dall loglvl=3Dall console=3Dcom1" > >> > >> So you are trying to use the serial console but you are not getting any > >> output? If that's not the case, please drop the com1 parameter and set > >> console=3Dvga. > >=20 > > Sorry for confusion, actually 'console=3Dcom1' works for me. > > Initially I didn't realize that it doesn't display kernel messages and > > after some failed attempts to run startx and hard reboots it took much > > longer to see a login prompt because I have background fsck disabled. > >=20 > > So, 'console=3Dcom1' works unless I do 'startx'. >=20 > I'm not sure I would call it working if you don't get any kernel > messages while booting. What happens if you set console=3Dvga? >=20 > >=20 > >> Do you have anything else in your /boot/loader.conf apart from this two > >> lines? > >> > >>> > >>> With this setup I get my system booted and at some point I can see a > >>> login screen. When I type 'startx' the system freezes. Have to hard > >>> reboot it to get working again. > >> > >> On which device do you get a login prompt? Is it xc0, ttyv0 or ttyu0? > >=20 > > I get a login prompt on ttyv0. > >=20 > > BTW, I use the nvidia driver. >=20 > Another user also reported a similar problem with Xen and X, and it was > solved by the following patch: >=20 > https://people.freebsd.org/~royger/0001-xen-introduce-a-newbus-function-t= o-allocate-unused-m.patch >=20 > Could you apply it and rebuild your kernel to see if that also solves > your issues? Applied this patch on r282416, things didn't change: I do 'startx' in ttyv0, X prints that it loads extensions, then a black screen with a cursor appears and things hang. Roman Bogorodskiy --J2SCkAp4GZ/dPZZf Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVR4/QAAoJEMltX/4IwiJqqN4H/AuH304uDsohkZSIZiR4oc4H fA60qK8wn6QOseJpYQZAE1HCn7AUkVoUaQSPxB9QIZk/5ZLMOm8jQdOLcJp1RBUq XTbaCuWqsMLt3tGTumeLFbbovZiP0T0SOPywvngmpfo4g5lojIaRXvLXRvTFBndH 6+fmFyXk62j9NbIqdUAIPpICOAinv2V+/spsi/9PTh0rXev8vJjOTp/7QS0nGZD8 9yOVBbRHzXXF2IhDsZPvGsBJ3b/lUHdP10KJw28UJ77KyHFf2Lcqbs16XcAkrvwQ RJj4QBAFAY1MpN+jALw1i+biTuVbyMBKIcTazDvS4fA7I0B+YdRPmDKQK0NExJA= =a8NO -----END PGP SIGNATURE----- --J2SCkAp4GZ/dPZZf--