From owner-freebsd-virtualization@freebsd.org Mon Aug 8 16:40:01 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 026BBBB1937 for ; Mon, 8 Aug 2016 16:40:01 +0000 (UTC) (envelope-from lausts@acm.org) Received: from cdptpa-oedge-vip.email.rr.com (cdptpa-outbound-snat.email.rr.com [107.14.166.226]) by mx1.freebsd.org (Postfix) with ESMTP id BDDB21D90 for ; Mon, 8 Aug 2016 16:40:00 +0000 (UTC) (envelope-from lausts@acm.org) Received: from [65.29.112.189] ([65.29.112.189:40859] helo=mail.laus.org) by cdptpa-oedge01 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id 63/41-22208-8D5B8A75; Mon, 08 Aug 2016 16:39:53 +0000 Received: from [192.168.1.100] (thinkpad [192.168.1.100]) by mail.laus.org (8.15.2/8.15.2) with ESMTPS id u78GdoZr039318 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 8 Aug 2016 12:39:52 -0400 (EDT) (envelope-from lausts@acm.org) X-Authentication-Warning: mail.laus.org: Host thinkpad [192.168.1.100] claimed to be [192.168.1.100] From: "Thomas Laus" Organization: ABB To: Victor Sudakov , freebsd-virtualization@freebsd.org Date: Mon, 08 Aug 2016 12:39:46 -0400 Subject: Re: Converting from VMDK to RAW Reply-to: lausts@acm.org Message-ID: <57A8B5D2.1198.3E42CA@lausts.acm.org> Priority: normal In-reply-to: <20160808090140.GA47821@admin.sibptus.transneft.ru> References: <20160807131117.GA23554@admin.sibptus.transneft.ru>, <20160808060859.GA40283@admin.sibptus.transneft.ru>, <20160808090140.GA47821@admin.sibptus.transneft.ru> X-mailer: Pegasus Mail for Windows (4.70) X-RR-Connecting-IP: 107.14.168.118:25 X-Cloudmark-Score: 0 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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: Mon, 08 Aug 2016 16:40:01 -0000 > Victor Sudakov wrote: > > > > I have downloaded the VM disk from VMware ESXi and the image consists > > of two files: myhost-flat.vmdk and myhost.vmdk. The latter is a small > > text file containing meta-information about the disk. The former looks > > like a RAW disk, at least I can mdconfig it and mount the > > partitions. > > > > $ file "myhost-flat.vmdk" > > myhost-flat.vmdk: DOS/MBR boot sector; partition 1 : ID=0xee, start-CHS > > (0x0,0,2), end-CHS (0x3ff,255,63), startsector 1, 20971519 sectors > > > > the problem is that sysutils/vmdktool does not recognize either of > > them: > > > > $ vmdktool -i myhost.vmdk > > myhost.vmdk: File too small (must be at least 1024 bytes) > > $ vmdktool -i myhost-flat.vmdk > > myhost-flat.vmdk: Bad VMDK magic (got 8ec031fc, want 564d444b) > > $ > > > > Probably I don't need any converters at all because the *-flat.vmdk is > > already a RAW image. > > I've even been able to reduce the on-disk size of the image from 10G > to 3,4G with "dd conv=sparse" without any ill effects. > You have done a lot more with VMWare than I have. I just experimented with a few tutorials and then went on to using Xen. I had known of the vmdktool utilities and used them to move VM's between home and office, but never was a serious VMWare customer (too expensive!). Tom -- Public Keys: PGP KeyID = 0x5F22FDC1 GnuPG KeyID = 0x620836CF