From owner-freebsd-virtualization@freebsd.org Thu May 5 15:43:52 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 4DFD7B2E0DB for ; Thu, 5 May 2016 15:43:52 +0000 (UTC) (envelope-from prvs=9267fa6dd=roger.pau@citrix.com) Received: from SMTP.CITRIX.COM (smtp.citrix.com [66.165.176.89]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "mail.citrix.com", Issuer "Verizon Public SureServer CA G14-SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C92201DF6 for ; Thu, 5 May 2016 15:43:51 +0000 (UTC) (envelope-from prvs=9267fa6dd=roger.pau@citrix.com) X-IronPort-AV: E=Sophos;i="5.24,582,1454976000"; d="scan'208";a="351891656" Date: Thu, 5 May 2016 17:41:36 +0200 From: Roger Pau =?iso-8859-1?Q?Monn=E9?= To: Marcin Cieslak CC: Subject: Re: Booting Solaris 11.3 (was Re: Booting r298488 as Xen Dom0 may break ZFS pool?) Message-ID: <20160505154136.ry2jq7xfavej4esg@mac> References: <20160426074302.4i3rv7wd5ogg7ful@mac> <20160426093556.oxeh5qyafe3ro6xy@mac> <20160426112925.hmijqrxt52kyswfg@mac> <20160429075716.5mykxirogrlvc5pq@mac> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.6.0-neo (2016-04-07) X-DLP: MIA1 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 15:43:52 -0000 On Sat, Apr 30, 2016 at 08:56:54PM +0000, Marcin Cieslak wrote: > On Fri, 29 Apr 2016, Roger Pau Monné wrote: > > > On Thu, Apr 28, 2016 at 08:01:23PM +0000, Marcin Cieslak wrote: > > > On Tue, 26 Apr 2016, Roger Pau Monné wrote: > > > > > > > On Tue, Apr 26, 2016 at 10:39:06AM +0000, Marcin Cieslak wrote: > > > > > By the way, I just managed to crash a whole machine by trying to > > > > > boot Solaris 11.3: > > > > > > > > > > # builder = "hvm" > > > > > memory = 2048 > > > > > vcpus = 1 > > > > > name = "Solaris0" > > > > > disk = [ 'file:/root/sol-11_3-text-x86.iso,6:cdrom,r', '/dev/zvol/zroot/solaris0,raw,hda,w' ] > > > > > kernel = "/root/xen/solaris/unix" > > > > > ramdisk = "/root/xen/solaris/boot_archive" > > > > > extra = "/platform/i86xpv/kernel/amd64/unix -B console=ttya,livemode=text" > > > > > #boot = "c" > > > > > usbdevice = 'tablet' > > > > > vnc = 1 > > > > > vnclisten = '0.0.0.0' > > > > > vif = [ 'bridge=bridge0' ] > > > > > > > > > > /root/xen/solaris/unix and /root/xen/solaris/boot_archive where extracted from sol-11_3-text-x86.iso > > > > > ("Intel text-only image"). > > > > > > > > I don't think you can boot Solaris as a PV guest anymore, you should instead > > > > boot it as a HVM guest. You will have to remove the kernel and ramdisk > > > > options and instead add builder="hvm" (that you have left commented out). > > > > > > However supported or not, I think it should not crash a whole host system?... > > > > 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 :). Roger.