From owner-freebsd-cloud@freebsd.org Wed Apr 12 07:13:10 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 78824D3A1A7 for ; Wed, 12 Apr 2017 07:13:10 +0000 (UTC) (envelope-from 0100015b61023a42-c292f9c6-c73d-4901-85ac-90bcdaaa9ada-000000@amazonses.com) Received: from a8-13.smtp-out.amazonses.com (a8-13.smtp-out.amazonses.com [54.240.8.13]) (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 3EDE688B for ; Wed, 12 Apr 2017 07:13:09 +0000 (UTC) (envelope-from 0100015b61023a42-c292f9c6-c73d-4901-85ac-90bcdaaa9ada-000000@amazonses.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ae7m2yrxjw65l2cqdpjxuucyrvy564tn; d=tarsnap.com; t=1491981187; h=Subject:To:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=fBp0Kw1JHPHB4A9JB27SQIlMUTpcMIA88XEo4RMJuHo=; b=ur8XoQ9egEpGt31Mz0AhXHnJLVHD/46e0vDpIbQ5TLfRVtLQDREfxwzApi3PgZBZ Z8zzGhjrk2wcLKamZvhWLYyq9C2jAt7R5GDyN/xOXeNgCcbg1B+GhvJC5oi9gYFM6G5 U4ypth6A99Vf9VkPYJw1G7UOV7dBqyHqYIq7Zklc= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=224i4yxa5dv7c2xz3womw6peuasteono; d=amazonses.com; t=1491981187; h=Subject:To:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding:Feedback-ID; bh=fBp0Kw1JHPHB4A9JB27SQIlMUTpcMIA88XEo4RMJuHo=; b=hFKIQE6R4TSrsOZDTZyjvFYat8w0XcC3rCsbvl2iGByDWQoWKcKwzKk8jpk0TQ2s ZLIvYvANFAy6TzU7YpcWMSRH3I9q307Lf9a/fAaVShFs76oWgUKx3bmrOu/XiKCNPNw /FEXtX8tRd8r7VPewkbIpGD4nwUJYPuce4OTPcN4= Subject: Re: amazon/xen... any way at all to pass a message/signal/semaphoere/morse-code to the boot loader? To: Julian Elischer , freebsd-cloud@freebsd.org References: <0100015b6070d24d-a23d7d90-11c0-4065-9bd0-0fc71b5874d6-000000@email.amazonses.com> <6f1c694d-1bb7-cdcc-daed-fd2e25dc2a28@freebsd.org> From: Colin Percival Message-ID: <0100015b61023a42-c292f9c6-c73d-4901-85ac-90bcdaaa9ada-000000@email.amazonses.com> Date: Wed, 12 Apr 2017 07:13:07 +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: <6f1c694d-1bb7-cdcc-daed-fd2e25dc2a28@freebsd.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SES-Outgoing: 2017.04.12-54.240.8.13 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: Wed, 12 Apr 2017 07:13:10 -0000 On 04/11/17 23:04, Julian Elischer wrote: > On 12/4/17 12:34 pm, Colin Percival wrote: >> [CCing freebsd-cloud, which is the right place for discussions of FreeBSD/EC2] >> >> On 04/11/17 21:03, Julian Elischer wrote: >>> In Amazon ec2 they have no console access (though I heard rumors that it was >>> available I have not seen any sign of it) so I'd like to put a "recovery >>> partition" into an AMI. >>> The trick is how to convince it to boot to that instead of the regular action. >> Can you get what you want via gptboot's support for selecting the partition >> to boot via "bootonce" and "bootme" flags? > not if you can't get onto to the machine. Well, I meant that you'd set this up in advance, so that if it can't boot the normal partition it would automatically fall back to the recovery partition. >> Maybe you can repurpose some of the logic used for booting over NFS? I've >> never heard of people booting over NFS when the initial bootstrap comes from >> disk rather than PXE, but I assume it's possible...? > > Oh I've done it, in the past but you still have the same issue.. > how do you signal the boot code to do this? > > (does an AMI have a bios capable of doing network operations?) I was thinking > about whether we could add a really simple xn driver into the bootcode to allow > us to have an console of sorts (accessible from an adjacent machine only??) Oh, good point. No, the boot loader doesn't know anything about PV drivers, and there's no emulation, so you can't do anything networky from the boot loader. -- Colin Percival Security Officer Emeritus, FreeBSD | The power to serve Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid