From owner-freebsd-emulation@FreeBSD.ORG Wed Aug 6 02:37:07 2014 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4B4F6790 for ; Wed, 6 Aug 2014 02:37:07 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id EF1322BD7 for ; Wed, 6 Aug 2014 02:37:06 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.9/8.14.9) with ESMTP id s762b4qC066098 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 5 Aug 2014 20:37:04 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.9/8.14.9/Submit) with ESMTP id s762b40d066095; Tue, 5 Aug 2014 20:37:04 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Tue, 5 Aug 2014 20:37:04 -0600 (MDT) From: Warren Block To: Mike Tancsa Subject: Re: Vritbox 4.3.12 and RELENG_6 guest ? In-Reply-To: <53E18A4C.2070100@sentex.net> Message-ID: References: <53E18A4C.2070100@sentex.net> User-Agent: Alpine 2.11 (BSF 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Tue, 05 Aug 2014 20:37:04 -0600 (MDT) Cc: "freebsd-emulation@freebsd.org" X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Aug 2014 02:37:07 -0000 On Tue, 5 Aug 2014, Mike Tancsa wrote: > I have been trying to convert a FreeBSD 6 box to a vdi image without luck. > To do so, I did the following steps, but when I attach the .vdi file to the > VM I created, I dont get by the initial boot loader. > Has anyone done anything like this ? > > dd if=/dev/zero of=sz.dd bs=1024k count=20000 > mdconfig -t vnode -f sz.dd > > > gpart create -s MBR md0 > gpart add -t freebsd md0 > gpart set -a active -i 1 md0 > gpart bootcode -b /boot/boot0 md0 Multiboot a VM is a bit unusual. /boot/mbr is the ordinary bootcode. If the original machine multibooted, it would probably be better as multiple VMs. > gpart create -s BSD -n 20 md0s1 Bootcode is needed in the bsdlabel also: http://www.wonkity.com/~wblock/docs/html/disksetup.html#_the_old_standard_mbr gpart bootcode -b /boot/boot md0s1