From owner-freebsd-questions@FreeBSD.ORG Mon Oct 12 09:37:15 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EDF021065670 for ; Mon, 12 Oct 2009 09:37:15 +0000 (UTC) (envelope-from alex.jurkiewicz@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.26]) by mx1.freebsd.org (Postfix) with ESMTP id A9C458FC1F for ; Mon, 12 Oct 2009 09:37:15 +0000 (UTC) Received: by qw-out-2122.google.com with SMTP id 5so392854qwd.7 for ; Mon, 12 Oct 2009 02:37:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=iBZhb9Gb6UxJwEX40un5D0WHjJoIaNc3Sa4O1PXeu+k=; b=fADP+pBVmlkWF5YkJgp19SGdvdGIaFkCyYOOq+1m8SKh9pDzNUzpE4Eh3YAUDyPk3+ W1oog0jT7u9HNSj2is7B7sDvOJk26+kwplndBkxZobDp1kW2wIEPVnFNrIHrf4vX+juv Nhm862e+QcTQARgZBUnIOG/SLe6Aanw6EQXEw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=CG8ur3ZeVsWO8HgCoQs9SLHIt+o9lC9ywGqVLlJzBLsPhGaRXMqI5ikVJpUDpLbBHk iEU62++SCVshpQFvU3xB4CKYg19H4SKRQmQYzuqubAKJNekGhLI33SwpFBxSmT0XNyU8 ViZtNAwC7KoQvcXVQ44IKHzomlIg6YNvdHUp8= MIME-Version: 1.0 Sender: alex.jurkiewicz@gmail.com Received: by 10.224.117.8 with SMTP id o8mr4535770qaq.227.1255338866640; Mon, 12 Oct 2009 02:14:26 -0700 (PDT) Date: Mon, 12 Oct 2009 17:14:26 +0800 X-Google-Sender-Auth: 7df53e26f1102a34 Message-ID: <98ac902a0910120214m29d299b5o6aa58fdba45c9f95@mail.gmail.com> From: Alex Jurkiewicz To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 Subject: restore(8)ing new / -- boots on metal but not in a VM X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Oct 2009 09:37:16 -0000 Hi all, A little background: I'm writing a script that will allow me to restore(8) a standard FreeBSD partition to multiple machines. So far, I'm at the 'see if it works in principle' stage, and I'm finding something strange. My procedure: * Start with an empty hard drive (ad0). * Boot off the FreeBSD CD, enter the live CD filesystem shell (Fixit -> Live CD Filesystem) * Create a single slice with fdisk that spans the entire disk (fdisk -i /dev/ad0) * Create a single partition with bsdlabel that spans the entire slice (bsdlabel -w /dev/ad0s1) * Install the FreeBSD Boot Loader (boot0cfg -B /dev/ad0) * Format and restore the dumpfile (newfs /dev/ad0s1a && mount /dev/ad0s1a /mnt && cd /mnt && ssh storagebox "dd if=home/aj/image.dump" | restore -rvf - * Unmount /mnt and restart. The steps work fine... on physical hardware. The restored image boots up fine. As a VM guest, running in either VMWare or VirtualBox, it don't work. Everything appears to go fine, but when I get to the boot loader, pressing F1 just makes the PC speaker beep at me. Any pointers would be appreciated. I'm using FreeBSD 6.4. Cheers, Alex Jurkiewicz