博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Resize a VMWare disk (zz)
阅读量:5262 次
发布时间:2019-06-14

本文共 3687 字,大约阅读时间需要 12 分钟。

重新 设置 vmware 硬盘 大小 扩容 扩大 加大 增加

This blog post describes how you canresize your VMWare virtual disks.

There are multiple ways to performthis task. Paul wrote me a comment saying that there is an easy way that Ididn't know before:. So I added this info to mypost.

AS ALWAYS, BEFORE YOU BEGIN, MAKESURE YOU HAVE A GOOD BACKUP!

Method 1: Using (tested with v3):

  1. Turn off the virtual machine;
  2. Start the VMWare Converter application;
  3. Open the Convert Machine wizard;
  4. Select 'standalone virtual machine' as the source anddestination system;
  5. Choose 'Select volumes and resize to save or add space';
  6. Enter a new size and voilá, you're done!

Some say that the expand process is and that VMWare Tools might need to bereinstalled. A disadvantage is that Converter will create a new (many GB) copyof your VM.

Method 2: Using the VDiskManager:

  1. Turn off the virtual machine;
  2. Commit/remove all the snapshots first! (I forgot to mention this, thanks JimO). Or make a Full Clone if you use Link Clones.
  3. 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

  1. Run this command to expand the virtual disk:
    vmware-vdiskmanager -x 12GB "My harddisk.vmdk" (in this case, 12 GB will be the new size). The file name can contain spaces because of the double quotes.
  2. 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, but also with, a built-in tool of Windows. VMWare provides a list of tools on their web site:
    I prefer to use Microsoft diskpart.exe and that’s where this post is about ().

Instructions for Windows Vista, 7and 2008R2 are below!

If your VM runs Windows 2000, XP,Server 2003 or Server 2003 R2

If your resized virtual disk isbootable, you cannot use diskpart from the virtual machine itself. Use a 3rdparty tool or use another virtual machine. Here I describe how to usediskpart.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 <volume number> (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.

If your VM runs Windows Vista, Windows 7, Windows Server 2008 or WindowsServer 2008 R2
These versions of Windows ship with a more enhanced version of diskpart.exethat 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 <volume number> (the number from step 8)
  5. Type:
    extend
  6. Your now finished! You do not have to reboot.

 

Please leave me a comment about yourresults. If somebody has an advice, please post it. I'll add it to this post(with your name) so that others can benefit from it too.

Hope this helps,

Update 2008-04-23: Refreshed thepost. Fixed some spelling errors. Improved text formatting.

Update 2008-06-12: Found anothergood site with up to 6 methods! Have a look here:

Update2009-08-26: Fixed a space in vmware-vdiskmanager, added x64-info and WindowsVista/7/2008R2 information

重新 设置 vmware 硬盘 大小 扩容 扩大 加大 增加

转载于:https://www.cnblogs.com/IS2120/archive/2011/10/25/6745990.html

你可能感兴趣的文章
Visual Studio Code 打开.py代码报Linter pylint is not installed解决办法
查看>>
Python 数据类型
查看>>
S5PV210根文件系统的制作(一)
查看>>
centos下同时启动多个tomcat
查看>>
slab分配器
查看>>
数据清洗
查看>>
【读书笔记】C#高级编程 第三章 对象和类型
查看>>
针对sl的ICSharpCode.SharpZipLib,只保留zip,gzip的流压缩、解压缩功能
查看>>
【转】代码中特殊的注释技术——TODO、FIXME和XXX的用处
查看>>
【SVM】libsvm-python
查看>>
Jmeter接口压力测试,Java.net.BindException: Address already in use: connect
查看>>
Leetcode Balanced Binary Tree
查看>>
Leetcode 92. Reverse Linked List II
查看>>
九.python面向对象(双下方法内置方法)
查看>>
go:channel(未完)
查看>>
[JS]递归对象或数组
查看>>
LeetCode(17) - Letter Combinations of a Phone Number
查看>>
Linux查找命令对比(find、locate、whereis、which、type、grep)
查看>>
路由器外接硬盘做nas可行吗?
查看>>
python:从迭代器,到生成器,再到协程的示例代码
查看>>