From owner-freebsd-emulation@FreeBSD.ORG Mon Jul 25 23:31:38 2011 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2194E106566C for ; Mon, 25 Jul 2011 23:31:38 +0000 (UTC) (envelope-from jamesbrandongooch@gmail.com) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id AEE218FC13 for ; Mon, 25 Jul 2011 23:31:37 +0000 (UTC) Received: by wwg11 with SMTP id 11so1809129wwg.1 for ; Mon, 25 Jul 2011 16:31:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=5QJA7PKxqQE36Ay/gElpiYrd5o5Oy4dsU7ex484a1uo=; b=wwszC8W5Z8puX5OHzyZw1ADg6HYLkkljQp8Cg7MgKAH/STJwDgPMiQed1vL4hQtRf8 T6Q8RYPHEbjBaGIT9YU1oyL8b2kvXXcpq9yHrDQxfU2a/D9o+A3gA0EVQc7wT2ZZaaMc J1o6eo+5C1CiqY9dF9tNp6vxtSb1pv0qDMv38= MIME-Version: 1.0 Received: by 10.216.154.138 with SMTP id h10mr4687026wek.39.1311636696545; Mon, 25 Jul 2011 16:31:36 -0700 (PDT) Received: by 10.216.87.83 with HTTP; Mon, 25 Jul 2011 16:31:36 -0700 (PDT) In-Reply-To: <4E2D1275.8000305@yandex.ru> References: <1311574719.49706.YahooMailClassic@web122313.mail.ne1.yahoo.com> <4E2D1275.8000305@yandex.ru> Date: Mon, 25 Jul 2011 18:31:36 -0500 Message-ID: From: Brandon Gooch To: "Andrey V. Elsukov" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-emulation@freebsd.org, nox@jelal.kn-bremen.de Subject: Re: mount vdi X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 25 Jul 2011 23:31:38 -0000 2011/7/25 Andrey V. Elsukov : > On 25.07.2011 10:18, Joe Sciulli wrote: >> Is it possible to mount virtualbox vdi file on the FreeBSD host? =A0This= appears to be doable on >> windows and linux hosts, which basically is done in two steps: 1. find o= ffset in the image. 2. >> mount the image with that offset. >> >> I'm trying to do the same thing on FreeBSD, and found the undocumented a= nd deprecated command >> still works: >> >> VBoxManage internalcommands dumphdinfo freebsd_home.vdi >> >> I got the following for the virtual disk image holding the /home (no roo= t hence no MBR) disk for >> a FreeBSD guest: >> >> Header: offBlocks=3D4096 offData=3D28672 >> >> Then attempt to mount it: >> >> mdconfig -a -t vnode -f /tmp/freebsd_home_56.vdi -u 0 mount /dev/md0 /tm= p/aaa/ mount -t cd9660 >> /dev/md0 /tmp/aaa/ >> >> unfortunately both the above two mount commands failed with "Invalid arg= ument". =A0I tried >> skip=3D28672 to no avail as well. =A0Anything did I do wrong? > > I have not any Vbox images with fixed size, but i tried this: > # mdconfig -f 10G_GPT_UFS.vdi > # gnop create -v -o 41472 /dev/md0 > > where 41472 is offData value. After that md0.nop was tasted and reports a= bout invalid GPT. > So, i think if your image is fixed size disk yout can try this method and= mount UFS (not cd9660). > > -- > WBR, Andrey V. Elsukov There was a CFT sent out a while back about a fuse module for mounting vdi images: http://lists.freebsd.org/pipermail/freebsd-emulation/2010-September/007964.= html Not sure about the state of this now though... -Brandon