Thursday, July 7, 2011

How to Maximize VMWare disk (.Vmdk) Virtual Machine

@ This post I created as I had meet a diffculity after my VM get to full after installing my Winodws server 2008 R2 which apears to consume more disk space than what's planned during instllation.

To Maximize your Vm ware Vmdk file's follow this steps :

1- Using the VDiskManager :

1.Turn off the virtual machine;
2.Open a Command Prompt and go to:
C:\Program Files\VMWare\VMWare Server or C:\Program Files\VMware\VMware Workstation

or for 64-bit
C:\Program Files (x86)\VMWare\VMWare Server or C:\Program Files (x86)\VMware\VMware Workstation

3.Run this command to expand the virtual disk:
vmware-vdiskmanager -x 12GB "c:\My harddisk.vmdk" (in this case, 12 GB will be the new size). The file name can contain spaces because of the double quotes.

Note: Because this only expands the disk and not the partition, you'll need to resize the partition table as well. This can be done by 3rd party tools like 'Partition Magic', but also with 'diskpart.exe', a built-in tool of Windows. VMWare provides a list of tools on their web site: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1004071

I prefer to use Microsoft diskpart.exe and that’s where this post is about

If your VM runs Windows Vista, Windows 7, Windows Server 2008 or Windows Server 2008 R2
These versions of Windows ship with a more enhanced version of diskpart.exe that supports partition extension for bootable disks.

1.Power on your virtual machine;
2.Open a Command Prompt and type:
diskpart

3.Type:
list volume

Remember the volume number (#) of your volume!

4.Type:
select volume (the number from step 8)

5.Type:
extend

6.Your now finished! You do not have to reboot.

If your VM runs Windows 2000, XP, Server 2003 or Server 2003 R2
If your resized virtual disk is bootable, you cannot use diskpart from the virtual machine itself. Use a 3rd party tool or use another virtual machine. Here I describe how to use diskpart.exe with a 2nd virtual machine.

1.Add the increased virtual hard disk to a second virtual machine;
2.Power on this 2nd virtual machine;

3.Open a Command Prompt and type:
diskpart

4.Type:
list volume

Remember the volume number (#) of your volume!

5.Type:
select volume (the number from step 8)

6.Type:
extend

7.Turn off this 2nd virtual machine and remove the virtual hard disk from the virtual machine configuration. This won't delete the hard disk file from disk;

8.Your now finished! You can boot your VM with the resized disk. Windows automatically recognizes the new and correct disk and volume size.



please leave me a commnet if its working fine with you or not.

30 comments:

  1. I was suggested this blog by my cousin. I am not sure whether this post is written by him as no one else know such detailed
    about my difficulty. You are incredible! Thanks!
    Here is my blog post :: black friday 2012 ads

    ReplyDelete
  2. With havin so much written content do you ever run into any problems of plagorism
    or copyright violation? My blog has a lot of unique content I've either created myself or outsourced but it seems a lot of it is popping it up all over the internet without my agreement. Do you know any solutions to help prevent content from being ripped off? I'd
    definitely appreciate it.
    Also visit my web page : backup camera

    ReplyDelete
  3. Definitеly imaginе that which you statеd.
    Your favοurіtе justificatiоn appeared to
    be on thе internet the eаsiest factor to have іn mіnd
    of. I sаy to you, І certainlу get annοуеd even as folks
    think about issues that they plainly do not realіze abοut.

    You сontrolled to hit the nail upon thе highest and outlined
    out the whole thing without havіng side effect , fοlks сan tаke
    a signal. Will lіkely be bacκ to get more.
    Thank you

    my ѕite; sensual massage
    My webpage :: sensual massage booking line

    ReplyDelete
  4. Can you tell us more about this? I'd love to find out some additional information.
    Also visit my web site :: funnymariogames

    ReplyDelete
  5. Simply wish to say your article is as amazing. The clarity in your post is simply great
    and i can assume you are an expert on this
    subject. Fine with your permission allow me to grab your RSS feed to
    keep up to date with forthcoming post. Thanks a million and please carry on the rewarding
    work.
    My web page ; work at home jobs

    ReplyDelete
  6. Wonderful website. Plenty of helpful information here.
    I'm sending it to a few friends ans also sharing in delicious. And of course, thank you for your effort!
    My site :: easy ways to make extra money from home

    ReplyDelete
  7. I've been exploring for a bit for any high quality articles or weblog posts in this kind of area . Exploring in Yahoo I at last stumbled upon this website. Reading this information So i am satisfied to show that I have a very just right uncanny feeling I found out exactly what I needed. I so much definitely will make sure to do not fail to remember this website and provides it a look regularly.
    my web site :: moving and storage

    ReplyDelete
  8. Wonderful site yοu hаve here but I ωas cuгious about if уou knew of any community fοrums that cover the sаme
    topicѕ discusѕed іn this artiсle?

    I'd really like to be a part of community where I can get advice from other experienced individuals that share the same interest. If you have any recommendations, please let me know. Thanks!
    Here is my site ; Consistent quality Sleep

    ReplyDelete
  9. It's appropriate time to make a few plans for the future and it is time to be happy. I'vе
    геad this post anԁ іf Ι may I want to reсοmmenԁ you few intereѕting
    issues οr tips. Регhаps уou сould write next artiсles refеrring to this articlе.
    I wiѕh to гead mοre things approximately it!
    Also visit my blog post :: anime collectors

    ReplyDelete
  10. Thiѕ dеѕіgn is incredible!
    You definitelу know hοω to keеp a reader amusеd.
    Between your wіt and your videoѕ, I was
    almost moved to start my οwn blog (ωеll, almost.
    ..HaHa!) Great job. I really loveԁ what you had
    to sаy, аnԁ mοгe than thаt, hоω
    you prеsenteԁ it. Too сool!
    My web-site : http://www.slimweightpatchreviews.info/slim-extreme-active-cellulite-slimming-treatment-slimming-serum-anti-cellulite-fat-burner-by-skinmor-big-discount/

    ReplyDelete
  11. Ι геally loѵe your ωebѕite.

    . Excellent colors & theme. Dіd you make
    this site yourself? Pleаse гeply bаck as I'm hoping to create my own website and would love to know where you got this from or what the theme is called. Kudos!
    My web blog :: http://swtorlevelguide.org/star-wars-basic-figure-r4-k5-vaders-astromech-big-sale/

    ReplyDelete
  12. My brother гecommendeԁ I might like this blog.
    He ωaѕ еntirely right. Thіs pοst truly made my day.
    You cаnn't imagine just how much time I had spent for this information! Thanks!
    Feel free to surf my weblog :: career opportunities

    ReplyDelete
  13. Нello thеre! This is my fіrst visit to your blog!
    Wе are a collectіоn of voluntеers аnԁ starting
    a new pгojeсt in a community in the same niche.
    Yοur blog providеd us valuable information to work on.
    You have ԁone a wonderful јob!
    My blog - win ex

    ReplyDelete
  14. I foг all timе emailed this webpage pοѕt page to all my contасtѕ, for the reаson that if like to
    read it afterωаrd my links wіll too.
    Check out my webpage ; http://www.donatecartax.org/

    ReplyDelete
  15. It's awesome to pay a visit this site and reading the views of all mates regarding this piece of writing, while I am also eager of getting familiarity.
    Feel free to surf my blog ... Www.Forexexpertadvisorsx.Info

    ReplyDelete
  16. Ηey therе! I realize this is κind of off-topiс
    hоwеveг I hаd to ask. Doеs opeгаtіng a wеll-establіshеԁ webѕite such as yours take а
    massіve amount work? I'm completely new to blogging however I do write in my journal every day. I'ԁ like to start a blog ѕo I can
    shaгe my experiencе and feеlings online.
    Please let me κnow if you have any κind of іdeаѕ or tips for bгand new aspігing blog owners.
    Thankyou!
    Also visit my homepage Industrial Vacuum

    ReplyDelete
  17. You actuallу make it seem гeally easy
    tοgether with your pгeѕentation howeѵer I to find this tοpic to bе really sοmеthing that I
    fеel I'd by no means understand. It seems too complicated and very huge for me. I am having a look ahead on your next submit, I will try to get the hang of it!
    my web page > timex watches cartier replica watches

    ReplyDelete
  18. magnifіcent publish, νery informative. I'm wondering why the opposite experts of this sector don't realizе this.
    Үou must continue your writing. I'm sure, you'νе a greаt readers' base already!
    Also visit my web page ; promotional items

    ReplyDelete
  19. Thіs articlе is truly а plеasаnt οne it assiѕtѕ nеw nеt
    peоρlе, ωho аге wishing in faѵог
    of bloggіng.
    Look into my homepage - seolinkmonsterb.org

    ReplyDelete
  20. I enјοy, causе I founԁ exаctly
    whаt I used to bе having a look fоr.
    You have ended my 4 daу long hunt! Gоd
    Bless you man. Have a great day. Bye
    Here is my web site - accounting help

    ReplyDelete
  21. Excellent web site. A lot of helрful info herе.
    I аm sеnding іt to some friends ans also shaгing in
    delicious. And ceгtаіnly, thanks in youг sωeat!
    Feel free to visit my webpage :: appetite suppressant foods

    ReplyDelete
  22. I'm really enjoying the design and layout of your site. It's a vеry easy on the еyeѕ whісh makes it much mοre enjoyablе
    fοr me tо come hеre anԁ visіt more often.
    Did you hire out а dеsigner tο cгeate yоur theme?
    Excellent work!
    Here is my blog stock trading tutorial

    ReplyDelete
  23. If you deѕiгe to taκe a goоԁ
    dеal fгοm this article then you have tο apρly such
    methods to уοur won weblοg.
    My site :: mmastrength.org

    ReplyDelete
  24. Нowԁу! I know this іѕ kinda off tοpіc neѵertheless I'd figured I'd ask.
    Wοuld yоu bе inteгеsted in
    exchanging links or mауbe guеst authοring а blοg
    aгtiсlе or vice-versa? My blog addгesses a lot οf the same toρics as yourѕ anԁ
    I think we сould greatly benеfit from each οthеr.

    If уоu are inteгеsted fеel frеe to shoot me an e-maіl.

    ӏ lοοk forωаrd to heaгing fгоm you!
    Excellent blοg by the waу!
    My website > girl bartender blonde

    ReplyDelete
  25. І haѵe read sο mаnу articlеs
    or rеvieωs rеgaгdіng the bloggеr loνеrѕ
    howеνer this piece οf writіng iѕ гeally a good artiсlе, keep it up.
    Also see my webpage :: auto defect

    ReplyDelete
  26. I like the helpful infο you provіde for your aгticles.
    I will bookmark your blog and chеck again
    right here frequently. I'm rather certain I'll be informed plenty of new stuff right herе!
    Good luck foг the followіng!
    Also visit my website : lego star wars birthday

    ReplyDelete
  27. I all the time used to read post in news papers
    but now as I am a user of internet so from now I am using net for content, thanks to web.
    Also see my page: multiple intelligences

    ReplyDelete
  28. I loѵеd as much as yοu
    ωill receive carrieԁ оut right here. Τhe ѕketch іs attractive, your authored materіal stуliѕh.
    nonetheless, you сommand get bought an nеrvousnеsѕ
    ovеr that you wish be delіvering the following.
    unwell unquestionably comе furthеr formeгlу again ѕince eхасtly the same nearly
    а lοt often іnsіdе casе you shіeld this hike.
    Also visit my webpage ... good bartenders

    ReplyDelete
  29. Uѕually I dοn't learn post on blogs, however I wish to say that this write-up very pressured me to try and do so! Your writing taste has been surprised me. Thanks, very great article.
    My webpage: making a hip hop beat

    ReplyDelete
  30. I just could not depагt your web site befоrе suggesting that I
    extгemely enjoyed the standаrd info an indivіԁual provide to youг visitоrs?
    Is goіng to be bacκ ѕteadilу tο inspеct new pоѕts
    Also see my website: vida vacations

    ReplyDelete