From owner-freebsd-virtualization@FreeBSD.ORG Tue Jul 29 20:51:15 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from hub.FreeBSD.org (hub.freebsd.org [IPv6:2001:1900:2254:206c::16:88]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 815008D0; Tue, 29 Jul 2014 20:51:14 +0000 (UTC) Date: Tue, 29 Jul 2014 16:51:11 -0400 From: Glen Barber To: Craig Rodrigues Subject: Re: vhd file from snapshots: VBOX_E_OBJECT_NOT_FOUND Message-ID: <20140729205111.GC1065@hub.FreeBSD.org> References: <20140729194854.GA1065@hub.FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="xcZCW6l6Uhoukq6i" Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 11.0-CURRENT amd64 X-SCUD-Definition: Sudden Completely Unexpected Dataloss X-SULE-Definition: Sudden Unexpected Learning Event User-Agent: Mutt/1.5.23 (2014-03-12) Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jul 2014 20:51:15 -0000 --xcZCW6l6Uhoukq6i Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 29, 2014 at 01:43:13PM -0700, Craig Rodrigues wrote: > On Tue, Jul 29, 2014 at 12:48 PM, Glen Barber wrote: >=20 > > On Tue, Jul 29, 2014 at 12:44:01PM -0700, Craig Rodrigues wrote: > > > Hi, > > > > > > I downloaded FreeBSD-11.0-CURRENT-amd64-20140714-r268622.vhd.xz > > > from > > > > > ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/VM-IMAGES/11.0-CURRENT/amd6= 4/20140714/ > > > > > > > > > Under MacOS X, I uncompressed the .vhd.xz file. I used VirtualBox, a= nd > > > created a VM. When I tried to attach > > > the .vhd file to this VM, VirtualBox gave this error: > > > > > > VBOX_E_OBJECT_NOT_FOUND > > > > > > Any ideas? > > > > There are a few issues with how qemu-img creates the VHD. The use of > > qemu-img will very soon be not required, thanks to marcel@ adding VHD > > support to mkimg(1). > > > > In the meantime, can you try cloning the VHD disk, but instead of > > a dynamically-allocated image, set it to be a fixed-size image? I have > > had very sporadic success with this, so cannot guarantee it will work. > > > > The VMDK image, however, should work without issue, if you are unable to > > get the VHD image to work. > > >=20 >=20 > I don't know how to clone the VHD disk. Inside VirtualBox, I created a > FreeBSD VM with no disks, > and then attached the VHD image as a disk to this new VM. It wasn't > working. >=20 It is a bit tricky (and non-intuitive), but if I remember correctly, it needs to be done from the Virtual Media manager. Attach the disk to a VM, then in the VMM, there should be an option to clone the disk image, which the next few steps will ask if you want to clone as a dynamic- or fixed- image. I don't have virtualbox available to me at the moment to give exact steps, though. > However, I tried doing the same thing with the VMDK image, and that worked > fine. >=20 Ok, good. > If the new mkimg can create VHD files which import without problem into > VirtualBox, that will be a huge improvement. Yes, this is the plan. Glen --xcZCW6l6Uhoukq6i Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJT2Ak/AAoJELls3eqvi17Q0P8P/1iGzqjKIPoY/ktI33NZAJEE Hh99aGmrMmq/LNEknno1D3fZjpGsNQoeLbqk660+rzKPMvVWgiDfGVHHuyirbgYP wZeSs7sRIFWfk3I5XKnwk9j5GWetFkrecyCt9il/7DJnjkN+8aML78w0jSJNOSKh hd0ftc45Y2SU+5UnOKBhn3NqSu+h/kYR1eliaZkaNsXuUBcuskNiWob9nZZ8ccxe XjmbsoiOEcyTK5T5I4vBl359tzh0ooQ3gEJSL0nC3cvjA8ecYTW8xTd2/jjFlVYn 6IZ3aygW78fvKtmWKVi+8AZ/k4ZzG7EvIunnNR1jjQBPEgWLmOSREpmr38KDcOfW SjQE+O9RMAO4rTa1VUfFCafqWhj4jwOn5QWOolYY142altQLjLnwYv3hRSafxSYv 3i4uZDqL0f4yGeQt1WkxEfAoqHoaCJ+bueFcQuen+01/aMUPPK0rN8lBusEHGEPj Dpda1lmyJEFQkqW8Ug876q2HgCrwmDtfmEM4UpgIFpMp7UI8/KrBsfFwRAw/8TCk LpEqM09/OHRgUSrVhZs3b15uuyCW18oh+PaFzVMV7YWoqn76g91zj5vOnSMBix43 fNXbZtJRp5rzl91wDVw20fDyZaVMo95yUay/aSwgvUGidOkzEO9KrOUflnek9Xkg zFpGZnrIXx7R9cP6kSxh =c9Qv -----END PGP SIGNATURE----- --xcZCW6l6Uhoukq6i--