Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Aug 2016 12:39:46 -0400
From:      "Thomas Laus" <lausts@acm.org>
To:        Victor Sudakov <vas@mpeks.tomsk.su>, freebsd-virtualization@freebsd.org
Subject:   Re: Converting from VMDK to RAW
Message-ID:  <57A8B5D2.1198.3E42CA@lausts.acm.org>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?57A8B5D2.1198.3E42CA>