From owner-freebsd-emulation@FreeBSD.ORG Mon Jul 25 07:07:11 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 6F51A106564A for ; Mon, 25 Jul 2011 07:07:11 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward7.mail.yandex.net (forward7.mail.yandex.net [77.88.61.37]) by mx1.freebsd.org (Postfix) with ESMTP id 1C6D48FC0A for ; Mon, 25 Jul 2011 07:07:10 +0000 (UTC) Received: from smtp9.mail.yandex.net (smtp9.mail.yandex.net [77.88.61.35]) by forward7.mail.yandex.net (Yandex) with ESMTP id 9A59B1C1698; Mon, 25 Jul 2011 10:51:34 +0400 (MSD) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1311576694; bh=/Ppg3vEc+rQQLHs/UU2W7zzk71N0QI4h4v5Q1WbP9N8=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=HpBrifog+5uJiePf7V/oNPxwDR0pOt2a8wgxJ3UO+S3vfXJtCuzad0a7m5IkSO0sq PmFohqMsCyx/X7x9ucu/Boxw4tg7qjcxPlrzDIGVUOjmIRkumxi1vzYT4uo+xNCKK5 TD3MtlaZmH4ot8G47Qefg1ff6p1rH0IptHn68J1g= Received: from [127.0.0.1] (mail.kirov.so-ups.ru [178.74.170.1]) by smtp9.mail.yandex.net (Yandex) with ESMTPSA id 5540D4BA00BE; Mon, 25 Jul 2011 10:51:34 +0400 (MSD) Message-ID: <4E2D1275.8000305@yandex.ru> Date: Mon, 25 Jul 2011 10:51:33 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: Joe Sciulli References: <1311574719.49706.YahooMailClassic@web122313.mail.ne1.yahoo.com> In-Reply-To: <1311574719.49706.YahooMailClassic@web122313.mail.ne1.yahoo.com> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit X-Yandex-Spam: 1 Cc: freebsd-emulation@freebsd.org 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 07:07:11 -0000 On 25.07.2011 10:18, Joe Sciulli wrote: > Is it possible to mount virtualbox vdi file on the FreeBSD host? This appears to be doable on > windows and linux hosts, which basically is done in two steps: 1. find offset in the image. 2. > mount the image with that offset. > > I'm trying to do the same thing on FreeBSD, and found the undocumented and deprecated command > still works: > > VBoxManage internalcommands dumphdinfo freebsd_home.vdi > > I got the following for the virtual disk image holding the /home (no root hence no MBR) disk for > a FreeBSD guest: > > Header: offBlocks=4096 offData=28672 > > Then attempt to mount it: > > mdconfig -a -t vnode -f /tmp/freebsd_home_56.vdi -u 0 mount /dev/md0 /tmp/aaa/ mount -t cd9660 > /dev/md0 /tmp/aaa/ > > unfortunately both the above two mount commands failed with "Invalid argument". I tried > skip=28672 to no avail as well. Anything 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 about 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