www.flish.co.uk

  • Photos
  • Black and White
  • Video
  • Articles
    • An Apple a Day
    • Work…
    • … Rest and Play
    • …. Cole!
    • …. Leah
  • The Rants
  • Running
  • Contact

Convert a Version 7 vmdk Disk to Version 4

  • Posted in: Articles,Work...
  • on January 9, 2012
  • » Tags: convert, disk image, downgrade, version 4, version 7, virtual machine, vmdk, vmware
  • » 1 Comment

This post is to highlight how you can convert a Version 7 vmdk disk to version 4.  Basically the background is that since Vsphere 4.0 the default Virtual Machine Hardware Version is version 7, under Esx or Esxi 3.5 it was virual machine version 5 (I think versions 5 and 6 are under VMWare workstation), so if you have any need to take a virtual machine from 4.0 / 4.1 / 5.0 etc backwards to a 3.5 host you’re (by default), knackered.

The easiest solution by the way is to use VMware convert, point at source and destination and it will sort it out, but sometimes this isn’t an option.  In my case I had the vmdk file (the small 1kb descriptor file and the 20GB *-flat.vmdk disk image it references), and nothing else.  Except that I knew my source was a version 7 vmware disk image.   I had copied the vmdk image files to the esxi 3.5 host but on creating a new virtual machine it basically pretended it couldn’t see the disk image, browsing the datastore to add the virtual disk showed nothing, no clue it even existed.  As always, this is what I did, take a backup first, your fault if you screw it up, etc, etc.

Using vi, or any other text editor, open up the vmdk file (the small one, *NOT* the big one), eg in my case I had;

/vmfs/volumes/49b13e24-6619f880-49fd-00151798cc79/Linuxx64 # ls -hlat
-rw------- 1 root root 20.0G Jan 9 16:11 Linux x64 Clone-flat.vmdk
-rw------- 1 root root 486 Jan 9 16:09 Linux x64 Clone.vmdk
drwxr-xr-t 1 root root 2.9k Jan 9 15:58 ..
drwxr-xr-x 1 root root 560 Jan 9 15:45 .
/vmfs/volumes/49b13e24-6619f880-49fd-00151798cc79/Linuxx64 #

It’s the highlighted orange one we want, the *-flat.vmsk is the actual disk image data.  Once opened you will have something like;

# Disk DescriptorFile
version=3
CID=7d8e12e8
parentCID=ffffffff
createType="vmfs"
# Extent description
RW 524288000 VMFS "Linux x64 Clone-flat.vmdk"
# The Disk Data Base
#DDB
ddb.toolsVersion = "7458"
ddb.adapterType = "lsilogic"
ddb.geometry.sectors = "63"
ddb.geometry.heads = "255"
ddb.geometry.cylinders = "32635"
ddb.uuid = "60 00 C2 93 7a c9 31 2b-8d 11 61 d1 30 66 5c 41"
ddb.virtualHWVersion = "7"

Note the highlighted values simply change to;

# Disk DescriptorFile
version=1
CID=7d8e12e8
parentCID=ffffffff
createType="vmfs"
# Extent description
RW 524288000 VMFS "Linux x64 Clone-flat.vmdk"
# The Disk Data Base
#DDB
ddb.toolsVersion = "7458"
ddb.adapterType = "lsilogic"
ddb.geometry.sectors = "63"
ddb.geometry.heads = "255"
ddb.geometry.cylinders = "32635"
ddb.uuid = "60 00 C2 93 7a c9 31 2b-8d 11 61 d1 30 66 5c 41"
ddb.virtualHWVersion = "4"

That simple, honest, edit in a text file and you’d done.  If you try and and this to Virtual Machine under Esx or Esxi 3.5 it will now see the vmdk and work just fine, in my case at least

  • Share:
  • Facebook
  • Email
  • Print
  • Share
  • StumbleUpon
  • Reddit
  • Digg
Logging In...

Profile cancel

Sign in with Twitter Sign in with Facebook
or

Not published

  • 1 Reply
  • 1 Comment
  • 0 Tweets
  • 0 Facebook
  • 0 Pingbacks
Last reply was 44 days ago
  1. dotUK - Web Design (@dotukwebdesign)
    View 44 days ago

    Convert a Version 7 vmdk Disk to Version 4 – http://t.co/oEg01M4l http://t.co/dSQ0THFP

    Reply

Instagrams

 

Categories

  • Articles (27)
    • An Apple a Day (4)
    • External (3)
    • Here comes …. Cole! (4)
    • Here comes …. Leah (2)
    • Rest and Play (8)
    • The Rants of an Angry Web Developer (5)
    • Work… (5)
  • Media (48)
    • Instagrams (1)
    • Photoart (4)
    • Photos (37)
      • Street Photography (1)
    • Video (8)
  • Running (4)

Backchat

  • Steve on Avoid Bristol Cameras
  • Neil on Avoid Bristol Cameras
  • dotUK - Web Design (@dotukwebdesign) on Convert a Version 7 vmdk Disk to Version 4
  • Flish on Avoid Bristol Cameras
  • Vic on Avoid Bristol Cameras

You are here: Home » Articles » Convert a Version 7 vmdk Disk to Version 4

Latest Instagram

 

Recent Posts

  • Instant Messaging on Multiple Devices
  • Photos – Winter Snow
  • Convert a Version 7 vmdk Disk to Version 4
  • Instagrams
  • Buffalo Terastation Raid Recovery (PPC) under Linux (i386)

Recent Mutterings:

  • Client meeting, honest! (@ The Masham) http://t.co/77Vg5CTk 5 hours ago
  • On the edge of existence - Kruger Park Blog - http://t.co/nlHdVi7W 9 hours ago
  • RT @TwopTwips: HANK MARVIN. When introducing yourself, don't be surprised if you're offered a sandwich. (via @MilesIvanHamer) 10 hours ago
  • Looks at #Boro score, smiles, and retires to bed to de-bogeyfy #manflu #fb 1 day ago
  • RT @kykapp: Annoyed that @zenoss won't be fixing the bug that renders process monitoring useless in 3.x Massive bug now washing their ha ... 1 day ago

Follow Me

Copyright 2010 Onwards- All rights reserved Andy Flisher

  • Go to top ↑
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.