From owner-freebsd-virtualization@FreeBSD.ORG Wed Oct 15 16:54:51 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 526ED2D0; Wed, 15 Oct 2014 16:54:51 +0000 (UTC) Received: from mail.nomadlogic.org (mail.nomadlogic.org [IPv6:2607:f2f8:a098::4]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 379F8EE; Wed, 15 Oct 2014 16:54:51 +0000 (UTC) Received: from mail.nomadlogic.org (localhost [127.0.0.1]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.nomadlogic.org (Postfix) with ESMTPS id BA488125E9F; Wed, 15 Oct 2014 09:54:49 -0700 (PDT) Received: from pop.rubicorp.com (unknown [72.34.113.100]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.nomadlogic.org (Postfix) with ESMTPSA id A3D1C125E9D; Wed, 15 Oct 2014 09:54:49 -0700 (PDT) Message-ID: <543EA6D9.5010209@nomadlogic.org> Date: Wed, 15 Oct 2014 09:54:49 -0700 From: Pete Wright User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: Peter Grehan Subject: Re: convert .vmdk files References: <543E0540.3040004@nomadlogic.org> <543E07A4.5090202@freebsd.org> In-Reply-To: <543E07A4.5090202@freebsd.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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: Wed, 15 Oct 2014 16:54:51 -0000 On 10/14/14 22:35, Peter Grehan wrote: > Hi Pete, >> 10. Add filters for popular VM file formats (VMDK, VHD, QCOW2) >> >> i have some .vmdk files for systems currently running VirtualBox i would >> like to port to bhyve. i also have a box running bhyve (10.1-rc2) that >> i can test patches and workflows as well. what is the work required for >> this entail? > > What you have to do today is to convert the VMDK to a flat file, e.g. > using qemu-img. > ok great - installing qemu-devel on my system and running the following command worked great: qemu-img convert -f vmdk -O raw foo.vmdk foo.img i tested this by taking a current .vmdk file from my workstation i do development and copied it over to my new bhyve hypervisor. this may be a good candidate for addition to wiki.freebsd.org/bhyve - i'll go ahead and add this if no one objects. > Ideally bhyve would be able to read/write VM file formats directly, > perhaps with some sort of filter on top of the existing file backend > code. There's plenty of GPL code around for this, but bhyve requires > code with a BSD license. > thanks for the info on that - i unfortunately that is beyond my bandwidth/techinical capabilities at this point. i'd love to help test code out to do this once that day comes. Cheers, -pete -- Pete Wright pete@nomadlogic.org twitter => @nomadlogicLA