From owner-freebsd-cloud@freebsd.org Sat Oct 28 13:44:41 2017 Return-Path: Delivered-To: freebsd-cloud@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 0291FE43E92 for ; Sat, 28 Oct 2017 13:44:41 +0000 (UTC) (envelope-from raf@rafal.net) Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D40D36FF37 for ; Sat, 28 Oct 2017 13:44:40 +0000 (UTC) (envelope-from raf@rafal.net) Received: from [192.168.40.37] (86-40-118-125-dynamic.agg2.bri.bbh-prp.eircom.net [86.40.118.125]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 67260509B8 for ; Sat, 28 Oct 2017 09:44:27 -0400 (EDT) From: Rafal Lukawiecki Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.0 \(3445.1.7\)) Subject: Shutdown causing reboot in EC2 Message-Id: Date: Sat, 28 Oct 2017 14:44:25 +0100 To: freebsd-cloud@freebsd.org X-Mailer: Apple Mail (2.3445.1.7) X-BeenThere: freebsd-cloud@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "FreeBSD on cloud platforms \(EC2, GCE, Azure, etc.\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Oct 2017 13:44:41 -0000 I am using Colin=E2=80=99s AWS marketplace FreeBSD 11 image. When I = issue (as root): shutdown -h now it shuts down=E2=80=A6and then reboots in 18 seconds. When I issue shutdown -p or poweroff it does power off. I thought that 'shutdown -h now' was supposed to = place the machine in a halted state, is this supposed to behave = differently on AWS EC2? Many thanks, Rafal -- Rafal Lukawiecki Data Scientist=20 Project Botticelli Ltd From owner-freebsd-cloud@freebsd.org Sat Oct 28 17:12:13 2017 Return-Path: Delivered-To: freebsd-cloud@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 0914CE4840D for ; Sat, 28 Oct 2017 17:12:13 +0000 (UTC) (envelope-from 0100015f63f819ed-fde905a7-3a95-474e-838a-7883549e0430-000000@amazonses.com) Received: from a8-60.smtp-out.amazonses.com (a8-60.smtp-out.amazonses.com [54.240.8.60]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C46837554A for ; Sat, 28 Oct 2017 17:12:12 +0000 (UTC) (envelope-from 0100015f63f819ed-fde905a7-3a95-474e-838a-7883549e0430-000000@amazonses.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ae7m2yrxjw65l2cqdpjxuucyrvy564tn; d=tarsnap.com; t=1509210725; h=Subject:To:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=axAvNoPFuMFO51+M+Q1UXL+W4kjHybHmoiRTOFWtSbw=; b=f2xIvfg43HZxy55aS2Y3gKlMT+PEBaEPLzvnsx4oItStTZTh/DEDYGgMxcC2JK7X lFO1GZyAw8Fu0cloXO/sx3ZzQ/gcMNT0A1PKZXMOBOdxpaOdKk+Kgp57vS4IeZha+BH PBwRtySlKUHpaa0d1wXcTVMmWSckp2l9GNEH7l8Y= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=224i4yxa5dv7c2xz3womw6peuasteono; d=amazonses.com; t=1509210725; h=Subject:To:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding:Feedback-ID; bh=axAvNoPFuMFO51+M+Q1UXL+W4kjHybHmoiRTOFWtSbw=; b=d6uOwejwA2P6U6MNR9xDJF+9NiQvlHbSlvhmeiIQFD9I+G+ZGbwsVTPNJ3qbxVRk XyHSkKsE8Po+djB7FSfkWn0DJJWXZ7myC8K7ggU1BcctAl+tfdRTzFJzOWmaUy/SrxK dA4hrfAi2k/+TUu3mUBnZY4upHmLuwv/9ZwjxN6g= Subject: Re: Shutdown causing reboot in EC2 To: Rafal Lukawiecki , freebsd-cloud@freebsd.org References: From: Colin Percival Message-ID: <0100015f63f819ed-fde905a7-3a95-474e-838a-7883549e0430-000000@email.amazonses.com> Date: Sat, 28 Oct 2017 17:12:04 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-SES-Outgoing: 2017.10.28-54.240.8.60 Feedback-ID: 1.us-east-1.Lv9FVjaNvvR5llaqfLoOVbo2VxOELl7cjN0AOyXnPlk=:AmazonSES X-BeenThere: freebsd-cloud@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "FreeBSD on cloud platforms \(EC2, GCE, Azure, etc.\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Oct 2017 17:12:13 -0000 On 10/28/17 06:44, Rafal Lukawiecki wrote: > I am using Colin’s AWS marketplace FreeBSD 11 image. Technically it's the FreeBSD project's image. :-) It only says "Sold by Colin Percival" in the Marketplace for historical reasons -- my account got some special flags set years ago, and Amazon hasn't gotten the paperwork done to get the release engineering account flagged the same way. All the builds are done by re@. > When I issue (as root): > > shutdown -h now > > it shuts down…and then reboots in 18 seconds. [...] > > I thought that 'shutdown -h now' was supposed to place > the machine in a halted state, is this supposed to behave differently on > AWS EC2? I guess the obvious question here is "what does it mean for a virtual machine to be halted but not powered off"? -- Colin Percival Security Officer Emeritus, FreeBSD | The power to serve Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid From owner-freebsd-cloud@freebsd.org Sat Oct 28 17:21:11 2017 Return-Path: Delivered-To: freebsd-cloud@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 44317E48801 for ; Sat, 28 Oct 2017 17:21:11 +0000 (UTC) (envelope-from raf@rafal.net) Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1F801758D1 for ; Sat, 28 Oct 2017 17:21:10 +0000 (UTC) (envelope-from raf@rafal.net) Received: from [192.168.40.37] (86-40-118-125-dynamic.agg2.bri.bbh-prp.eircom.net [86.40.118.125]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 2F734509B8; Sat, 28 Oct 2017 13:21:03 -0400 (EDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.0 \(3445.1.7\)) Subject: Re: Shutdown causing reboot in EC2 From: Rafal Lukawiecki In-Reply-To: <0100015f63f81e60-c5bbcbd7-6423-4528-96d6-54e3f2cd345c-000000@email.amazonses.com> Date: Sat, 28 Oct 2017 18:21:02 +0100 Cc: freebsd-cloud@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <3A5DB439-B89E-4B70-A984-433DF0209274@rafal.net> References: <0100015f63f81e60-c5bbcbd7-6423-4528-96d6-54e3f2cd345c-000000@email.amazonses.com> To: Colin Percival X-Mailer: Apple Mail (2.3445.1.7) X-BeenThere: freebsd-cloud@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "FreeBSD on cloud platforms \(EC2, GCE, Azure, etc.\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Oct 2017 17:21:11 -0000 > Technically it's the FreeBSD project's image. :-) >=20 > It only says "Sold by Colin Percival" in the Marketplace for = historical > reasons -- my account got some special flags set years ago, and Amazon > hasn't gotten the paperwork done to get the release engineering = account > flagged the same way. All the builds are done by re@. I realise that. I am glad to be using it via the Marketplace so that it = enables you and FreeBSD RE to count the popularity of the OS on AWS. I = understand you would not get the count otherwise. > I guess the obvious question here is "what does it mean for a virtual = machine > to be halted but not powered off=E2=80=9D? I defer to you and to others who are more experienced than I to answer = this. The =E2=80=98shutdown -h=E2=80=99 behaviour with Amazon Linux and = CentOS on AWS is to power off. However, if reboot is what is supposed to = happen in this case, I will gladly adjust to that, although it feels a = little odd. Thank you, Rafal -- Rafal Lukawiecki Data Scientist=20 Project Botticelli Ltd= From owner-freebsd-cloud@freebsd.org Sat Oct 28 20:20:56 2017 Return-Path: Delivered-To: freebsd-cloud@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 AB0B9E4C9A6 for ; Sat, 28 Oct 2017 20:20:56 +0000 (UTC) (envelope-from 0100015f64a4e4e0-ee3a9aef-7e84-4952-ba57-95d1d09c6a86-000000@amazonses.com) Received: from a8-26.smtp-out.amazonses.com (a8-26.smtp-out.amazonses.com [54.240.8.26]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 70F647F7C9 for ; Sat, 28 Oct 2017 20:20:55 +0000 (UTC) (envelope-from 0100015f64a4e4e0-ee3a9aef-7e84-4952-ba57-95d1d09c6a86-000000@amazonses.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ae7m2yrxjw65l2cqdpjxuucyrvy564tn; d=tarsnap.com; t=1509222049; h=Subject:To:References:Cc:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=pZdHIglDcIhQkhnQzW2RN1hH8hJ1U6cOCoFTQhWZhkw=; b=DBDiNJacmdROtIKbKMCATlnWASnuT7ifrd2wwcdimax8brchWPmfBgRbqF91DI/x HgQNPiKwaYCHAANyE/1ugdGHCZ+LzOI0QQ4+W2zw2A3SCEakfo3ACH1gLZ1pGFZS1+t Jf0liepW5aixb1sPA2Nd0xb09Iv6ZiKX4khLlDHM= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=224i4yxa5dv7c2xz3womw6peuasteono; d=amazonses.com; t=1509222049; h=Subject:To:References:Cc:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding:Feedback-ID; bh=pZdHIglDcIhQkhnQzW2RN1hH8hJ1U6cOCoFTQhWZhkw=; b=TALnkibL/w5VtMOPAtUr8LJ2dpVSfd04WkuLIZ4cIBmTYfIvrOJRR6qdgZg5N4US tu0AkDj1ycYgsRRG1IDaBNsSqL8ufL8Gd6Qqd4PhVetoyQxQLGr5n5HPvyuBduXl76n Qi5gTFmUsGKXRTawj94f2n55/GhdrynL0nHeVesk= Subject: Re: Shutdown causing reboot in EC2 To: Rafal Lukawiecki References: <0100015f63f81e60-c5bbcbd7-6423-4528-96d6-54e3f2cd345c-000000@email.amazonses.com> <3A5DB439-B89E-4B70-A984-433DF0209274@rafal.net> Cc: freebsd-cloud@freebsd.org From: Colin Percival Message-ID: <0100015f64a4e4e0-ee3a9aef-7e84-4952-ba57-95d1d09c6a86-000000@email.amazonses.com> Date: Sat, 28 Oct 2017 20:20:49 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <3A5DB439-B89E-4B70-A984-433DF0209274@rafal.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-SES-Outgoing: 2017.10.28-54.240.8.26 Feedback-ID: 1.us-east-1.Lv9FVjaNvvR5llaqfLoOVbo2VxOELl7cjN0AOyXnPlk=:AmazonSES X-BeenThere: freebsd-cloud@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "FreeBSD on cloud platforms \(EC2, GCE, Azure, etc.\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Oct 2017 20:20:56 -0000 On 10/28/17 10:21, Rafal Lukawiecki wrote: >> Technically it's the FreeBSD project's image. :-) > > I realise that. I am glad to be using it via the Marketplace so that it enables you and FreeBSD RE to count the popularity of the OS on AWS. I understand you would not get the count otherwise. Just wanted to be clear. :-) >> I guess the obvious question here is "what does it mean for a virtual machine >> to be halted but not powered off”? > > I defer to you and to others who are more experienced than I to answer > this. The ‘shutdown -h’ behaviour with Amazon Linux and CentOS on AWS is to > power off. However, if reboot is what is supposed to happen in this case, I > will gladly adjust to that, although it feels a little odd. That wasn't so much a technical question as a philosophical question -- we've inherited shutdown actions from how hardware in the 1980s worked, and since 'shutdown -h' doesn't have any clear meaning in a VM I don't know that anyone gave it much thought. Certainly I never did. I suspect that the difference between Linux and FreeBSD here lies in how our underlying Xen code handles shutdown events... to be completely frank, I don't even know which code handles it under Xen HVM. But it's probably a bad idea to change it now, since some people have learned the existing behaviour. -- Colin Percival Security Officer Emeritus, FreeBSD | The power to serve Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid