From owner-freebsd-virtualization@freebsd.org Thu May 5 22:21:03 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 00517B2FCC2 for ; Thu, 5 May 2016 22:21:03 +0000 (UTC) (envelope-from saper@saper.info) Received: from m.saper.info (m.saper.info [IPv6:2a01:4f8:a0:7383::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "m.saper.info", Issuer "Marcin Cieslak 2016" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6F5C11EFA for ; Thu, 5 May 2016 22:21:02 +0000 (UTC) (envelope-from saper@saper.info) Received: from m.saper.info (saper@m.saper.info [IPv6:2a01:4f8:a0:7383::]) by m.saper.info (8.15.2/8.15.2) with ESMTPS id u45MKpF8019495 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 5 May 2016 22:20:51 GMT (envelope-from saper@saper.info) Received: from localhost (saper@localhost) by m.saper.info (8.15.2/8.15.2/Submit) with ESMTP id u45MKp8F019492; Thu, 5 May 2016 22:20:51 GMT (envelope-from saper@saper.info) X-Authentication-Warning: m.saper.info: saper owned process doing -bs Date: Thu, 5 May 2016 22:20:51 +0000 From: Marcin Cieslak To: =?ISO-8859-15?Q?Roger_Pau_Monn=E9?= cc: freebsd-virtualization@freebsd.org Subject: Re: Booting Solaris 11.3 (was Re: Booting r298488 as Xen Dom0 may break ZFS pool?) In-Reply-To: <20160505154136.ry2jq7xfavej4esg@mac> Message-ID: References: <20160426074302.4i3rv7wd5ogg7ful@mac> <20160426093556.oxeh5qyafe3ro6xy@mac> <20160426112925.hmijqrxt52kyswfg@mac> <20160429075716.5mykxirogrlvc5pq@mac> <20160505154136.ry2jq7xfavej4esg@mac> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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: Thu, 05 May 2016 22:21:03 -0000 On Thu, 5 May 2016, Roger Pau Monné wrote: > On Sat, Apr 30, 2016 at 08:56:54PM +0000, Marcin Cieslak wrote: > > > Certainly. I assumed that you meant it crashed the VM, not the whole host. > > > Can you please provide the trace of the crash? > > > > Apologies, forgot to let Xen keep VGA: > > > > http://marcincieslak.com/tmp/xencrash.png > > > > Manual OCR: > > > > FreeBSD/amd64 (o.saper.info) (xc0) > > > > login: (XEN) vmx.c:2464:d0v0 EPT violation 0x182 (-w-/---), gpa 0x0000010178f000 > > Hello, > > I've been able to debug this and found the issue. I have two patches that > should be applied to FreeBSD in order to fix it, they can be found at: > > https://people.freebsd.org/~royger/privcmd_fixes/ > > Could you please give them a try? > I have however been unable to boot a Solaris 11.3 guest under PV mode, but > at least the host is not crashing anymore :). Thanks, I can confirm that the patches fix the crash for me. The half-life of PV Solaris is still under the microsecond. Btw. I have managed to get gdbsx going by replacing "/proc/xen/privcmd" with "/dev/xen/privcmd". Indeed, the state of Solaris is pretty bad: - Solaris 11.3 under HVM boots, but the installer complains there are no local disks (which is not true, even device nodes are there under /dev/dsk/ ... ) - OpenIndiana (OI-hipster-text-20160421.iso as HVM) hangs after printing out the kernel version message - SmartOS (smartos-20160428T170316Z.iso) seems to work at first, but after the initial configuration it cannot bring the network interface up because its link state is unknown (tried model=e1000 and the default Realtek): [root@master0 ~]# dladm show-phys LINK MEDIA STATE SPEED DUPLEX DEVICE e1000g0 Ethernet unknown 0 half e1000g0 Marcin