From owner-freebsd-xen@freebsd.org Thu Jun 9 07:44:33 2016 Return-Path: Delivered-To: freebsd-xen@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 0F54BADC07D; Thu, 9 Jun 2016 07:44:33 +0000 (UTC) (envelope-from royger@gmail.com) Received: from mail-wm0-x230.google.com (mail-wm0-x230.google.com [IPv6:2a00:1450:400c:c09::230]) (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 994991B96; Thu, 9 Jun 2016 07:44:32 +0000 (UTC) (envelope-from royger@gmail.com) Received: by mail-wm0-x230.google.com with SMTP id k204so47699619wmk.0; Thu, 09 Jun 2016 00:44:32 -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-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=QwO/iVi955J6ZFFb3I8jauzwxIK2qnuOIm0qRljetlY=; b=wcy90EUzuOoXDHPuwz/zQTXwE8sba0q6T3+p/dwpyI9Lxr2zBKylvMNvCwaUahcCwG AGiPA8kK5Vehxaeu/Py8ucYH+Ba758uy4Yr13sRlG9V0NQ17hh724SuYMmBk36Rr0BlZ /G/sXGmdB3VcrOIHHv0Dn76/ILTceB3Fa6Wv5vcdYCSAfQWK72VrDi3vG0koXruTLLI4 CA9DNyB0sSnygko9iaPrDdoEzBotbDwXWP++KNiUkdxt+AKw0HhtNDC9a8N9dX3qdZvn h05FWOkvbjEgKy+Zn4rcaY2rJ2vQUac0A6reQPR2s2CNUjMGJJ6gkgKyOffhdtPL3zGi qskA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=QwO/iVi955J6ZFFb3I8jauzwxIK2qnuOIm0qRljetlY=; b=Kf7N8IcV4CfyTR4Dm8Q10imassEzhBJM6ubR15GXWFgFtdfV/QYhRfRL+Mh1pGZ/lO Ng7hGjbDbFlZx9hl7nUaxQ+Uj6RhkzYkAqBsd6rsuT6pOG/TNeuQzZoYz65xtNgwEAGR 5YvetY/71v/OcD3yYL1VFSLwJ5e63xvCkmIrXpUYVAOMSKzY5Ehx/xi+WqDMGcvMmxaD XOX4HAMj6Lqpgopt1DHCWd/yC637GLBmXJqnN/sDjsfGE3OJL67ceMg7Q18pYs/814jR 8lIwoeE+G6Q0OYqxWWI4ieqk+HvNtNUBXFWZHaPVQwRVroaHpnLuaLZ7YtsY5FUAkaLd /p8w== X-Gm-Message-State: ALyK8tJyquJHtzvNcCiClXl6vJMGYfVCwjx+/lejuZ7+Ww0TlKFZgO07KgJjrXSnp6CEIA== X-Received: by 10.194.163.166 with SMTP id yj6mr8163383wjb.116.1465458271003; Thu, 09 Jun 2016 00:44:31 -0700 (PDT) Received: from localhost (220.red-79-152-208.dynamicip.rima-tde.net. [79.152.208.220]) by smtp.gmail.com with ESMTPSA id c4sm5533606wjb.38.2016.06.09.00.44.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jun 2016 00:44:30 -0700 (PDT) Sender: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= Date: Thu, 9 Jun 2016 09:44:25 +0200 From: Roger Pau =?iso-8859-1?Q?Monn=E9?= To: Marcin Cieslak Cc: freebsd-xen@FreeBSD.org, freebsd-virtualization@freebsd.org, xen-devel@lists.xenproject.org Subject: Re: HEADS UP: Imported Xen 4.7 and blkback changes - domU respawning on_crash Message-ID: <20160609074425.dqstpupeqb7yueus@mac> References: <20160603120921.y5l362zgrhf4fdcb@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-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jun 2016 07:44:33 -0000 On Wed, Jun 08, 2016 at 10:35:22PM +0000, Marcin Cieslak wrote: > On Wed, 8 Jun 2016, Marcin Cieslak wrote: > > > On Fri, 3 Jun 2016, Roger Pau Monné wrote: > > > > > Hello, > > > > > > First of all, this message is only relevant to those that use FreeBSD as > > > Dom0 (host), not as a DomU (guest), so don't panic. > > > > > > I've imported the latest Xen version (4.7-rc4) into the ports tree, it's > > > still not the final version, but it's quite close, so we better start > > > testing it to make sure it works fine with FreeBSD. > > One issue maybe unrelated to FreeBSD: > > This domain: > > builder = "hvm" > memory = 4096 > vcpus = 2 > name = "Windows2016" > disk = [ > '/dev/zvol/zroot/windows0,raw,hda,w', > '/dev/zvol/zroot/vs2013,raw,hdb,w', > # '/root/win/install.iso,raw,hdc:cdrom,r' > ] > boot = "c" # Boot to hard disk image > vnc = 2 > #vnclisten = "0.0.0.0" > usbdevice = 'tablet' > on_poweroff = 'destroy' > on_reboot = 'restart' > on_crash = 'restart' > acpi = 1 > bios = 'ovmf' > vif = [ 'bridge=bridge0,mac=00:16:3e:5d:0d:48' ] > videoram=16 > vga = "stdvga" > > crashes because I didn't have ovmf image: > > (d203) HVM Loader > (d203) Detected Xen v4.7.0-rc > (d203) Xenbus rings @0xfeffc000, event channel 1 > (d203) Unknown BIOS ovmf, no ROM image found > (d203) *** HVMLoader bug at hvmloader.c:229 > (d203) *** HVMLoader crashed. > > But I seem unable to kill it with "xl destroy" - it keeps > respawning again: > > Windows2016 211 4079 1 --p--- 0.0 > Windows2016 213 4096 1 --psc- 0.0 > (disappears) > Windows2016 221 4096 1 --psc- 0.0 > (null) 221 147 1 --psc- 0.0 > ... > ... > > I have finally managed to snatch it by issuing this a few times, after > changing the "on_crash" to 'destroy': > > # xl config-update Windows2016 xen/windows-run.cfg > WARNING: xl now has better capability to manage domain configuration, avoid using this command when possible > setting dom243 configuration The problem is that the domain crashed so early on boot that you weren't able to destroy it, and kept rebooting due to the "on_crash = 'restart'" option. IIRC I've also used the following hacky rune in order to terminate this kind of domains: "while [ 1 ]; do xl destroy ; done", but your solution seems better. Roger.