From owner-freebsd-emulation@FreeBSD.ORG Mon Jul 25 06:18:40 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 79B60106566C for ; Mon, 25 Jul 2011 06:18:40 +0000 (UTC) (envelope-from jsciulli2003@yahoo.com) Received: from nm27-vm3.bullet.mail.ne1.yahoo.com (nm27-vm3.bullet.mail.ne1.yahoo.com [98.138.91.157]) by mx1.freebsd.org (Postfix) with SMTP id 0996B8FC08 for ; Mon, 25 Jul 2011 06:18:39 +0000 (UTC) Received: from [98.138.90.49] by nm27.bullet.mail.ne1.yahoo.com with NNFMP; 25 Jul 2011 06:18:39 -0000 Received: from [98.138.89.162] by tm2.bullet.mail.ne1.yahoo.com with NNFMP; 25 Jul 2011 06:18:39 -0000 Received: from [127.0.0.1] by omp1018.mail.ne1.yahoo.com with NNFMP; 25 Jul 2011 06:18:39 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 574593.10967.bm@omp1018.mail.ne1.yahoo.com Received: (qmail 56900 invoked by uid 60001); 25 Jul 2011 06:18:39 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1311574719; bh=Sv8QJFXhHF+Zf7kYJMXnL2emHF8RjPNK4zbX9dqbVT0=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=PU08lXNKVSiD1bXA04s6s2++7FiYRtDPL73Y/RV3rbHQT9sotzGlinBwnWu9QZ/K3guCfcnGmRCz1OQYAtOmGVHdUUTJ1SUuH7nmbpwm8V6WpDTQYsBtE8nh51b37jayI7tBqT3wEW/B+AtLImymZNbzMy98SF9yiMXrJ8QFaFo= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=Yjw1eQ07vreBT1hdpa2zK+Gy3rkHWn5lWDe575B/1s8uSPgK0Zr1aEvbTv6WT0AvVOLqr07B9MSz/MefWOnt2EQdkmTd4sxcYn1wspKghgkYJkK7/G3RO62moDxGXHaewtyJCUJaYHgx6lIGAHpbgsMwkmh3bEUhTtBPRjJd/iU=; X-YMail-OSG: ZB8ZhHMVM1lgHfvw2eYmerD.Z6xurpJ169qsDvHjgpSb0Iq I2DbofG1RCh4TWjKuxPzqxzBeSNKu.2so3Deu4B0cMa1E4YlTKTGpUJxvLw. SllVlqheVvP1WIzlWjEpeUDGcq1V47nvBfZfNpIy5.cYMVLndOI6zaLUTP4w NZgVwvSrPM8OHK7WeLMbgsISaEDOm_rcUFdSpPPypw3s385_3GLqoHbnlfDt .yx99WlBmJWk6Mypb8q5hnTic6MrrBsDe3Ws2cAnLhmPt4gpbiH.rFbpcEHf uKkxN9Hkar.SToVmRa_b89ZWenQxgpkue0aVjZL95I9X.dGerOAJIWPwE5jT nfXOxjS.S_gnKSeM- Received: from [68.197.39.39] by web122313.mail.ne1.yahoo.com via HTTP; Sun, 24 Jul 2011 23:18:39 PDT X-Mailer: YahooMailClassic/14.0.3 YahooMailWebService/0.8.112.310352 Message-ID: <1311574719.49706.YahooMailClassic@web122313.mail.ne1.yahoo.com> Date: Sun, 24 Jul 2011 23:18:39 -0700 (PDT) From: Joe Sciulli To: freebsd-emulation@freebsd.org In-Reply-To: <20110721081726.GR17489@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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 06:18:40 -0000 Is it possible to mount virtualbox vdi file on the FreeBSD host?=A0 This ap= pears to be doable on windows and linux hosts, which basically is done in t= wo 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 h= ence no MBR) disk for a FreeBSD guest: Header: offBlocks=3D4096 offData=3D28672 But since the mount command in FreeBSD doesn't support "offset", I have to = dd the image into another file.=A0 I believe the default "block" size in dd= is 512 bytes, so the offset 28672 (bytes?) is 56 blocks.=A0 So I used the = command: dd skip=3D56 if=3Dfreebsd_home.vdi of=3Dfreebsd_home_56.vdi 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 argume= nt".=A0 I tried skip=3D28672 to no avail as well.=A0 Anything did I do wron= g? Or is there any other solution in FreeBSD host to mount virtualbox vdi file= ?=A0 There appears to be a "vdfuse" but is not ported yet, and the attempt = to port appears to be not for VirtualBox 4.