From owner-freebsd-virtualization@FreeBSD.ORG Tue Jul 29 20:43:16 2014 Return-Path: Delivered-To: freebsd-virtualization@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 7050A59B; Tue, 29 Jul 2014 20:43:16 +0000 (UTC) Received: from mail-la0-x235.google.com (mail-la0-x235.google.com [IPv6:2a00:1450:4010:c03::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C110A229C; Tue, 29 Jul 2014 20:43:15 +0000 (UTC) Received: by mail-la0-f53.google.com with SMTP id gl10so162626lab.40 for ; Tue, 29 Jul 2014 13:43:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=JsXbLVX8pShR+CGtC9EudOvUQXZ8hNGmejVA/JHDg+Y=; b=ThezdFDHC0bTtRUlzF/FznpQFUJBfC3F265741tVz5eGiUAWNLgJlXbraEQ2owMIjI lrK23zfpnBNwrFMxr0RPO3mYMtMX1D2r3w1ZnIjkRAk8RJb4y2HQ62wKTF7rRCrWRm2C 8eF4kewrdJKffPD9+p9xb3EpcjyaISKB1Iz7gDeSuE2b2e0+JRfzi01XinUjNFyZaAMi lP7frZwxEXJJQMszk0k3Urxu2UQuBp87rVplFc+OQYK7sCXEynsoCoMNOGmzm1LqrUNX t4up1kzHaw/1CQOzkeOdpxC6yCC6qVJZ1pFImMB0gFHk4cpl0APpiEy6MD7RyHxZ4+9a uFlw== MIME-Version: 1.0 X-Received: by 10.112.93.75 with SMTP id cs11mr373798lbb.82.1406666593602; Tue, 29 Jul 2014 13:43:13 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.112.225.34 with HTTP; Tue, 29 Jul 2014 13:43:13 -0700 (PDT) In-Reply-To: <20140729194854.GA1065@hub.FreeBSD.org> References: <20140729194854.GA1065@hub.FreeBSD.org> Date: Tue, 29 Jul 2014 13:43:13 -0700 X-Google-Sender-Auth: kErwYnS3zahx9BWNXQGeUCB8DJ0 Message-ID: Subject: Re: vhd file from snapshots: VBOX_E_OBJECT_NOT_FOUND From: Craig Rodrigues To: Glen Barber Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 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:43:16 -0000 On Tue, Jul 29, 2014 at 12:48 PM, Glen Barber wrote: > 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/amd64/20140714/ > > > > > > Under MacOS X, I uncompressed the .vhd.xz file. I used VirtualBox, and > > 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. > 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. However, I tried doing the same thing with the VMDK image, and that worked fine. If the new mkimg can create VHD files which import without problem into VirtualBox, that will be a huge improvement. -- Craig