`
javasogo
  • 浏览: 1817070 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

Resize a VMWare disk (zz)

 
阅读更多

重新 设置 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 硬盘 大小 扩容 扩大 加大 增加

分享到:
评论

相关推荐

    resize

    通过示例 RESIZE 示例代码显示如何修改 Windows 窗口以便当用户使用鼠标来调整窗口边框跳转到下一个可用大小自动调整方式。 更多信息 可用于从 Microsoft 下载中心下载下列文件: &lt;br&gt;Resize.exe ...

    VB resizeWindow.txt resizeWindow.txt

    resizeWindow.txt resizeWindow.txt resizeWindow.txtresizeWindow.txtresizeWindow.txt resizeWindow.txt resizeWindow.txt resizeWindow.txt

    解决firefox下resize事件无效问题

    在JavaScript编程中,`resize`事件是一个非常常用的功能,它允许开发者监听窗口或元素尺寸的变化。然而,在Firefox浏览器中,可能会遇到`resize`事件不起作用的情况,这会给开发者带来一些困扰。本文将深入探讨这个...

    易语言模块ReSize.rar

    《易语言模块ReSize——深度解析与应用指南》 易语言作为一款国产的编程语言,以其独特的汉字编程语法,降低了编程的学习门槛,使得更多的人能够涉足编程领域。ReSize模块是易语言生态中的一个重要组成部分,它专注...

    HashMap之resize()方法源码解读.docx

    HashMap之resize()方法源码解读 HashMap的resize()方法是HashMap中最核心的方法之一,该方法负责扩容HashMap的容量,以便存储更多的键值对。下面我们将对HashMap的resize()方法进行源码解读,了解其扩容机制和原理...

    jquery.ba-resize.min

    《jQuery的resize()事件与jquery.ba-resize.min.js插件详解》 在Web开发中,JavaScript库jQuery大大简化了DOM操作,包括事件处理。其中,`resize()`事件用于监听窗口或元素尺寸的变化,但直接使用`$(window).resize...

    图像resize程序.rar

    本教程将详细解释如何使用这两个库批量处理图像,实现图像的resize操作。 首先,让我们了解OpenCV。OpenCV(开源计算机视觉库)是一个跨平台的计算机视觉库,包含了大量的图像处理和计算机视觉算法。在Python中,...

    DMA2D_bilinear_resize_resize_bilinear_dma_

    在嵌入式系统和图形处理领域,"DMA2D_bilinear_resize_resize_bilinear_dma_" 这个标题暗示了我们正在讨论一个与直接存储器访问(DMA)2D引擎相关的技术,特别是涉及到双线性插值缩放(bilinear resizing)的实现。...

    matlab实现resize()函数

    matlab实现resize函数,调用方法为MyResize(I,scale,method),其中I为图像读入矩阵,scale为放大或缩小的系数,method支持nearest和bilinear两种方式

    Go-resize-纯golang实现的图像大小调整库

    Go-resize是一个用纯Go语言编写的图像大小调整库,专为Go开发者设计,用于高效地处理和调整图像尺寸。这个库提供了灵活且性能优化的方法,使得在Go应用程序中进行图像缩放、裁剪等操作变得简单易行。在本文中,我们...

    php缩放图片类resizeimage

    该类包含多个属性,如图片类型(`$type`)、实际宽度(`$width`)、实际高度(`$height`)、目标宽度(`$resize_width`)、目标高度(`$resize_height`)、是否裁剪(`$cut`)、源图片路径(`$srcimg`)和目标图片...

    pb 9 resize 实例源代码

    PB 9 Resize 实例源代码解析 PowerBuilder(简称PB)是一种流行的开发工具,主要用于构建企业级的应用程序,尤其在数据库应用开发领域有着广泛的应用。版本9是它的一个历史版本,提供了许多增强功能,其中包括对象...

    ckfinderplugin-imageresize-2.3.jar

    《CKFinder插件ImageResize 2.3版详解》 CKFinder是一款强大的文件管理器,广泛应用于网页编辑器和内容管理系统中,它提供了便捷的图片、文档和其他资源的上传、管理和检索功能。其中,"ckfinderplugin-imageresize...

    给vmware中的linux VM 增加disk

    如果你的系统已经配置了LVM,可以跳过前面的分区步骤,直接使用`pvcreate /dev/sdb`来创建物理卷,然后通过`vgextend`和`lvextend`命令扩展卷组和逻辑卷,并用`resize2fs`调整文件系统大小。如果没有配置LVM,你也...

    JS可拖动,可改变大小resize div

    resizeHandle.style.cursor = 'se-resize'; draggableResizabled.appendChild(resizeHandle); resizeHandle.addEventListener('mousedown', function(event) { isDragging = false; isResizing = true; ...

    Image Resize Guide v2.2.8.zip

    Image Resize Guide可以自由调整图片大小,当前能够修改图片大小软件很多很多,基本上图片处理软件都能修改图片大小。 你只需点击几次鼠标,软件会自动帮你完成余下的工作。对雪景,水或绿树背景的图片效果出众,重要...

    Qt5.7OpenCV249resize函数

    【Qt5.7与OpenCV2.4.9 resize函数详解】 在计算机视觉和图像处理领域,Qt和OpenCV是两个非常重要的库。Qt提供了一套丰富的图形用户界面(GUI)工具,而OpenCV则专注于图像处理和计算机视觉算法。在Qt5.7版本中集成...

    matlab实现自己的resize()函数

    自己写的matlab实现的resize函数,调用方法为MyResize(I,scale,method),其中I为图像读入矩阵,scale为放大或缩小的系数,method支持nearest和bilinear两种方式。谢谢下载,欢迎评论~

    浏览器窗口大小变化时使用resize事件对框架不起作用的解决方法

    浏览器窗口大小变化时使用resize事件对框架不起作用的解决办法,如下: 代码如下:$(window).resize(function(){var surH = $(window).height();$(“.pic_conent”).height(surH);} 当浏览器变化,拉大拉小时,没有...

    Font resize javascript

    Change Font Size OnClick: FontSizer DX ...Resize One or a Few Sections of Documents Exclude Sections from Resize The example documents provide demonstration of how the code can be implemented.

Global site tag (gtag.js) - Google Analytics