From owner-freebsd-virtualization@FreeBSD.ORG Mon May 4 09:38:58 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 BF42FFBE; Mon, 4 May 2015 09:38:58 +0000 (UTC) Received: from mail-wg0-x22a.google.com (mail-wg0-x22a.google.com [IPv6:2a00:1450:400c:c00::22a]) (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 5577D1610; Mon, 4 May 2015 09:38:58 +0000 (UTC) Received: by wgen6 with SMTP id n6so144245196wge.3; Mon, 04 May 2015 02:38:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=oFGRO1DuOJWqAUX8a+Es6k4FyX2dlw58wSzSl5UgkIw=; b=GHHV9qwwEFX2j34W9eQb/OmL9YzvdRkCqMs5sBlgqt8Xfq+inoWaDcGLLzg0OP3RcG pT0Ev4MquV3WRiQLLDv5flETKjziQVyLCz7hjMSrO18Ccq4IZRpVJZmy+ELgmlgBwJ8X NYIGLaAINyFDo5LnApHqbBcG0IwmaXFTRogr4vpuErvTcLncbfnsig+gS02gDn8zd/bZ OOdZDuocARAKrm188CLOmjHjdt3JYmeiuUq4lTho/2lpaqSVjQRWoPuOZHPC08Ea4IVX oHlHLYnzu+OzzmaQA27DNl0Iy9KifiO5WOV4uPXXTavRgyG7dgFfGjG1Eyv0Bj0fuz+6 rlNw== X-Received: by 10.194.77.98 with SMTP id r2mr38370517wjw.130.1430732336777; Mon, 04 May 2015 02:38:56 -0700 (PDT) Received: from [172.16.1.30] (53.Red-88-9-170.dynamicIP.rima-tde.net. [88.9.170.53]) by mx.google.com with ESMTPSA id jq3sm19745241wjc.22.2015.05.04.02.38.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 May 2015 02:38:56 -0700 (PDT) Sender: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= Message-ID: <55473E2A.3020306@FreeBSD.org> Date: Mon, 04 May 2015 11:38:50 +0200 From: =?windows-1252?Q?Roger_Pau_Monn=E9?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Roman Bogorodskiy , freebsd-virtualization@freebsd.org CC: bapt@freebsd.org Subject: Re: xen_kernel, console and X11 References: <20150502154340.GA8333@kloomba> In-Reply-To: <20150502154340.GA8333@kloomba> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit 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 09:38:58 -0000 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 and EBDA, I'm working on fixing this in Xen upstream. > My setup is as follows: > > - Intel i5-4690 that supports IOMMU: > $ sudo acpidump -t|grep DMAR > DMAR: Length=128, Revision=1, Checksum=90, > $ > - vm.max_wired=-1 in /etc/sysctl.conf > - xc0 "/usr/libexec/getty Pc" xterm on secure in > /etc/ttys > > In loader.conf I have: > > xen_kernel="/boot/xen" > xen_cmdline="dom0_mem=2048M dom0_max_vcpus=4 dom0pvh=1 com1=115200,8n1 > guest_loglvl=all loglvl=all console=com1" 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=vga. 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? Roger.