重新 设置 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:VMWare Converter. So I added this info to mypost.

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

Method 1: Using VMWare Converter (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 slow 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'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 (more info).

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:http://vmware-land.com/Resizing_Virtual_Disks.html

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

Resize a VMWare disk (zz)相关推荐

  1. 给VMware虚拟机增加硬盘容量:Linux/Windows系统

    Linux的教程:Increase A VMware Disk Size (VMDK) Formatted As Linux LVM without rebooting Windows教程:How t ...

  2. nova resize代码调用部分分析

    这里简单对nova resize的代码调用简单记录,写得不好的地方还请见谅! 测试环境:OpenStack Liberty(rdo) # compute-1计算节点下一台test-cirros-1的虚 ...

  3. How to expand Azure VM OS Disk

    There are three main disk roles in Azure: the data disk, the OS disk, and the temporary disk. 1. OS ...

  4. Vmware Links(转自VMware-land)

    这一阵子在专研虚拟机的VSS备份,无意中发现了VMware-land 很好的网站,不知道为什么无法访问,难道也被和谐掉了??? 以下内容是从Google的页面缓存弄出来的,在Google搜索http: ...

  5. 在 Mac/win7 下上使用 Vagrant 打造本地开发环境

    1. vagrant介绍 1.1 vagrant能做什么 做Web开发(java/php/python/ruby...)少不了要在本地搭建好开发环境,虽然说目前各种脚本/语言都有对应的Windows版 ...

  6. PVE世界常见的存储格式,qcow2/raw/vmdk

    pve 之上的虚拟机,需要依托硬盘使用. 虚拟机的硬盘实际上是分配在宿主机的一个块文件,然后由 pve 核心转换使用. 其中,pve 常用的有两种格式,qcow2 跟 raw.vmware 有自己的格 ...

  7. ubuntu常用的命令

    Table of Contents 1 ubuntu 1.1 写在前面 1.2 系统配置 1.2.1 察看ubuntu内部版本 1.2.2 重启机器 1.2.3 关闭机器 1.2.4 重启unity ...

  8. RVC使用指南(四)-集群状况

    RVC使用指南(四)-集群状况 https://mp.weixin.qq.com/s/tMkHTST0dnDoQx-HFyc-5g 本文使用与vSAN运行状况相关的命令,这些命令仅在安装了Health ...

  9. RVC使用指南(三)-对象管理

    RVC使用指南(三)-对象管理 https://mp.weixin.qq.com/s/B3wcxUP-QJRnb_kVIlbZqQ 看了就要关注我,哈哈~ 本文介绍了vSAN中与对象管理相关的RVC命 ...

最新文章

  1. html解决空格显示问题
  2. ThinkPHP框架搭建网站
  3. 使用.bat文件或者是cmd里面运行.jar文件
  4. 算法入门经典 第三章
  5. linux arm uart应用程序,ARM Linux S3C2440 之UART分析
  6. echarts图表自适应
  7. Win10关闭windows defender杀毒软件的方法
  8. CSRF(跨站请求伪造)攻击 --
  9. openmv图像格式不支持问题解决方案
  10. SumatraPDF 高级设置
  11. 执念斩长河专栏总目录
  12. python实现千牛客服自动回复语_千牛自动回复语大全
  13. 验证码识别逻辑回归案例
  14. 天龙八部新目标服务器未响应,新天龙八部怀旧服有多火?4个月后开新服,玩家排队5小时没进去...
  15. H.265视频流媒体EasyPlayer播放器无法禁用自动播放的问题修复
  16. 湖北省制造业高质量发展专项奖励申报条件,2022年揭榜挂帅项目指南
  17. 用于风控模型的九种数据维度(常用的金融数据)
  18. 微信api调用限制,45009 reach max api daily quota limit 解决方法
  19. 掌上实验室V8系列教程(八)ADC模数转换
  20. 天籁obd接口针脚定义_汽车标准OBDⅡ(自诊断接头)针脚定义

热门文章

  1. Vue ElementUI 实现 Table 多列数据 checkBox选择框
  2. TreeSet的使用方法总结、实现原理、使用示例
  3. BatchNormalization、LayerNormalization、InstanceNorm、GroupNorm、SwitchableNorm总结
  4. 分布式存储系统设计 反熵 (Anti-Entropy)
  5. WMS发展历史与趋势
  6. 实战!手把手带你复现1篇视频分类顶会论文
  7. 亚马逊程序员:我曾拼命逃离996!
  8. CF76A·gift
  9. 144hz和60hz测试软件,144hz和60Hz显示器的区别有哪些?60Hz与144Hz显示器玩游戏差别对比评测...
  10. echarts图表无数据无时,在页面显示暂无数据