重新 设置 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):
- Turn off the virtual machine;
- Start the VMWare Converter application;
- Open the Convert Machine wizard;
- Select 'standalone virtual machine' as the source anddestination system;
- Choose 'Select volumes and resize to save or add space';
- 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:
- Turn off the virtual machine;
- Commit/remove all the snapshots first! (I forgot to mention this, thanks JimO). Or make a Full Clone if you use Link Clones.
- 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
- 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.
-
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.
- Add the increased virtual hard disk to a second virtual machine;
- Power on this 2nd virtual machine;
- Open a Command Prompt and type:
diskpart
- Type:
list volume
Remember the volume number (#) of your volume!
- Type:
select volume <volume number> (the number from step 8)
- Type:
extend
- 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;
- 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.
- Power on your virtual machine;
- Open a Command Prompt and type:
diskpart
- Type:
list volume
Remember the volume number (#) of your volume!
- Type:
select volume <volume number> (the number from step 8)
- Type:
extend
- 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 示例代码显示如何修改 Windows 窗口以便当用户使用鼠标来调整窗口边框跳转到下一个可用大小自动调整方式。 更多信息 可用于从 Microsoft 下载中心下载下列文件: <br>Resize.exe ...
resizeWindow.txt resizeWindow.txt resizeWindow.txtresizeWindow.txtresizeWindow.txt resizeWindow.txt resizeWindow.txt resizeWindow.txt
在JavaScript编程中,`resize`事件是一个非常常用的功能,它允许开发者监听窗口或元素尺寸的变化。然而,在Firefox浏览器中,可能会遇到`resize`事件不起作用的情况,这会给开发者带来一些困扰。本文将深入探讨这个...
《易语言模块ReSize——深度解析与应用指南》 易语言作为一款国产的编程语言,以其独特的汉字编程语法,降低了编程的学习门槛,使得更多的人能够涉足编程领域。ReSize模块是易语言生态中的一个重要组成部分,它专注...
HashMap之resize()方法源码解读 HashMap的resize()方法是HashMap中最核心的方法之一,该方法负责扩容HashMap的容量,以便存储更多的键值对。下面我们将对HashMap的resize()方法进行源码解读,了解其扩容机制和原理...
《jQuery的resize()事件与jquery.ba-resize.min.js插件详解》 在Web开发中,JavaScript库jQuery大大简化了DOM操作,包括事件处理。其中,`resize()`事件用于监听窗口或元素尺寸的变化,但直接使用`$(window).resize...
本教程将详细解释如何使用这两个库批量处理图像,实现图像的resize操作。 首先,让我们了解OpenCV。OpenCV(开源计算机视觉库)是一个跨平台的计算机视觉库,包含了大量的图像处理和计算机视觉算法。在Python中,...
在嵌入式系统和图形处理领域,"DMA2D_bilinear_resize_resize_bilinear_dma_" 这个标题暗示了我们正在讨论一个与直接存储器访问(DMA)2D引擎相关的技术,特别是涉及到双线性插值缩放(bilinear resizing)的实现。...
matlab实现resize函数,调用方法为MyResize(I,scale,method),其中I为图像读入矩阵,scale为放大或缩小的系数,method支持nearest和bilinear两种方式
Go-resize是一个用纯Go语言编写的图像大小调整库,专为Go开发者设计,用于高效地处理和调整图像尺寸。这个库提供了灵活且性能优化的方法,使得在Go应用程序中进行图像缩放、裁剪等操作变得简单易行。在本文中,我们...
该类包含多个属性,如图片类型(`$type`)、实际宽度(`$width`)、实际高度(`$height`)、目标宽度(`$resize_width`)、目标高度(`$resize_height`)、是否裁剪(`$cut`)、源图片路径(`$srcimg`)和目标图片...
PB 9 Resize 实例源代码解析 PowerBuilder(简称PB)是一种流行的开发工具,主要用于构建企业级的应用程序,尤其在数据库应用开发领域有着广泛的应用。版本9是它的一个历史版本,提供了许多增强功能,其中包括对象...
《CKFinder插件ImageResize 2.3版详解》 CKFinder是一款强大的文件管理器,广泛应用于网页编辑器和内容管理系统中,它提供了便捷的图片、文档和其他资源的上传、管理和检索功能。其中,"ckfinderplugin-imageresize...
如果你的系统已经配置了LVM,可以跳过前面的分区步骤,直接使用`pvcreate /dev/sdb`来创建物理卷,然后通过`vgextend`和`lvextend`命令扩展卷组和逻辑卷,并用`resize2fs`调整文件系统大小。如果没有配置LVM,你也...
resizeHandle.style.cursor = 'se-resize'; draggableResizabled.appendChild(resizeHandle); resizeHandle.addEventListener('mousedown', function(event) { isDragging = false; isResizing = true; ...
Image Resize Guide可以自由调整图片大小,当前能够修改图片大小软件很多很多,基本上图片处理软件都能修改图片大小。 你只需点击几次鼠标,软件会自动帮你完成余下的工作。对雪景,水或绿树背景的图片效果出众,重要...
【Qt5.7与OpenCV2.4.9 resize函数详解】 在计算机视觉和图像处理领域,Qt和OpenCV是两个非常重要的库。Qt提供了一套丰富的图形用户界面(GUI)工具,而OpenCV则专注于图像处理和计算机视觉算法。在Qt5.7版本中集成...
自己写的matlab实现的resize函数,调用方法为MyResize(I,scale,method),其中I为图像读入矩阵,scale为放大或缩小的系数,method支持nearest和bilinear两种方式。谢谢下载,欢迎评论~
浏览器窗口大小变化时使用resize事件对框架不起作用的解决办法,如下: 代码如下:$(window).resize(function(){var surH = $(window).height();$(“.pic_conent”).height(surH);} 当浏览器变化,拉大拉小时,没有...
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.