From owner-freebsd-xen@FreeBSD.ORG Thu Jan 20 14:56:31 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E6F3106564A for ; Thu, 20 Jan 2011 14:56:31 +0000 (UTC) (envelope-from snabb@epipe.com) Received: from tiktik.epipe.com (tiktik.epipe.com [IPv6:2001:1828:0:3::2]) by mx1.freebsd.org (Postfix) with ESMTP id 624608FC13 for ; Thu, 20 Jan 2011 14:56:31 +0000 (UTC) Received: from tiktik.epipe.com (tiktik.epipe.com [IPv6:2001:1828:0:3::2]) by tiktik.epipe.com (8.14.4/8.14.4) with ESMTP id p0KEuS8W036852 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 20 Jan 2011 14:56:28 GMT (envelope-from snabb@epipe.com) X-DKIM: Sendmail DKIM Filter v2.8.3 tiktik.epipe.com p0KEuS8W036852 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=epipe.com; s=default; t=1295535388; x=1296140188; bh=cmMNMjt6ra1+Q0XeVxs8LZ1/R6HUEVDT0e+N/yf/k1s=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=br4h2X5fIVOjQfLfzuMvFUedDiNayeQdc2f6eyy0ZZ3sBhPaWU0+DdawYIKmT43bx pZrf5j3CEZptpnLON1XgUhDH0+r+8/kRnXmHU40EbrnbJSK1PsjKxPSzGG+NibwOym kPNNsPYuBUSaNTQm4xz7tIkFkr+8XWk5eZFVE344= Date: Thu, 20 Jan 2011 14:56:28 +0000 (UTC) From: Janne Snabb To: Martin Cracauer In-Reply-To: <20110120131401.GA49672@cons.org> Message-ID: References: <20110119204707.GA50536@cons.org> <20110120131401.GA49672@cons.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.6 (tiktik.epipe.com [IPv6:2001:1828:0:3::2]); Thu, 20 Jan 2011 14:56:28 +0000 (UTC) Cc: freebsd-xen@freebsd.org Subject: Re: FreeBSD-amd64 in Xen 4.0? X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 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, 20 Jan 2011 14:56:31 -0000 On Thu, 20 Jan 2011, Martin Cracauer wrote: > Just to be clear: the disk file has to be a whole disk, with > partitions, right? hvmloader would then proceed through the regular > bootloaders in the boot sector? Short answer: yes. Anything that should work on a real machine should work as the disk image of a Xen HVM instance. The simplest way is to run the sysinstall tool from an installation ISO that you attach to your virtual machine. It will create MBR partition table and BSD disklabel for you as well as install the required boot blocks/loaders. You could alternatively do the same steps manually, using mdconfig to attach your (empty) disk image file to an existing FreeBSD box as a virtual disk and do the required steps with tools such as fdisk, gpart, boot0cfg, disklabel, newfs, etc. and then move that image file to your Xen machine. You could also use a hard disk from an existing FreeBSD machine (a real one), attach that disk to another machine (or boot from USB stick) and read the whole hard disk image with dd or similar tool and use that as the virtual disk for the Xen HVM instance. -- Janne Snabb / EPIPE Communications snabb@epipe.com - http://epipe.com/