Shrinking Virtual Disks of VMWare
来源:互联网 发布:node.js microservice 编辑:程序博客网 时间:2024/05/21 06:20
The Shrinking Process
For Ubuntu 10.04:
In a Linux or FreeBSD guest operating system, to prepare virtual disks for shrinking, you should run VMware Tools as the root user. This way, you ensure the whole virtual disk is shrunk. Otherwise, if you shrink disks as a nonroot user you cannot wipe the parts of the virtual disk that require root-level permissions.
To shrink a virtual disk:
1. Launch the control panel.
2. Click the Shrink tab.
3. Select the virtual disks you want to shrink, then click Prepare to Shrink.
A dialog box tracks the progress of the wiping process.
Note: If you deselect some partitions, the whole disk is still shrunk. However, those partitions are not wiped for shrinking, and the shrink process does not reduce the size of the virtual disk as much as it could with all partitions selected.
4. Click Yes when VMware Tools finishes wiping the selected disk partitions.
A dialog box tracks the progress of the shrinking process. Shrinking disks may take considerable time.
5. Click OK to finish.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
For Ubuntu 12.04:
1. 虚拟机设置的硬盘选项中先Compac一下;
2.开虚拟机,参考http://www.howtoforge.com/how-to-shrink-vmware-virtual-disk-files-vmdk:
Before we try to shrink the virtual disk files, we should try to remove any unneeded files from the virtual machine to free space. For example, on Debian-based VMs, you can run
apt-get clean
to clear out the local repository of retrieved package files.
Next, run
cat /dev/zero > zero.fill;sync;sleep 1;sync;rm -f zero.fill
to fill the unused space with zeros.
Then power down the VM and open the command window on the Windows host:
3.宿主机执行命令:vmware-vdiskmanager.exe -k F:\*****\ubuntu-10.04.4-desktop-i386.vmdk
提示 Shrink: 100% done.
Shrink completed successfully.
完成
- Shrinking Virtual Disks of VMWare
- Shrink VMWare Virtual Disks formatted with ext4[转]
- VMware Convert Error: The size of all flat source disks will exceed the capacity of xxxxx
- One of the disks in this virtual machine is already in use by a virtual machine or by a snapshot"
- VMWare Player 5 and Drive Shrinking
- Vmware :Cannot open the disk 'xxx.vmdk' or one of the snapshot disks it depends on
- VMware “Cannot open the disk ‘XXXXXX.vmdk’ or one of the snapshot disks it depends on.”
- Resizing or shrinking KVM virtual machine filesystems and disk images
- vmware:Cannot open the disk 'XXX' or one of the snapshot disks it depends on. reason: failed to lock
- VMWare遇到“Cannot open the disk 'XXX' or one of the snapshot disks it depends on. reason: failed to ”
- Cannot open the disk 'D:/vmware/Ubuntu.vmdk' or one of the snapshot disks it depends on
- vmware:Cannot open the disk 'XXX' or one of the snapshot disks it depends on. reason: failed to lock
- VMware启动报错one of the snapshot disks it depends on ...Failed to lock the file
- Cannot open the disk 'E:/vmware/Ubuntu.vmdk' or one of the snapshot disks it depends on. 解决方法
- vmware:Cannot open the disk 'XXX' or one of the snapshot disks it depends on. reason: failed to lock
- Cannot open the disk 'D:/vmware/Ubuntu.vmdk' or one of the snapshot disks it depends on
- VMware启动报错one of the snapshot disks it depends on ...Failed to lock the file
- About install linux ON virtual PC by use of VMware
- linux系统管理基本命令
- 使用C#开发OFFICE插件相关知识库
- 快速启动程序和文档的好软件(初稿)
- Delphi 中的 procedure of object
- 使用CL_GOS_DOCUMENT_SERVICE对采购申请挂附件
- Shrinking Virtual Disks of VMWare
- JSP引包指令
- CentOS–root密码忘记的解决办法
- android 各种颜色值 colors.xml
- Ext.form.Panel表单面板
- 实现int float double 转换成std::string
- ios=编译tesseract
- Grails中表单输入的特殊字符的转义,以及用到传值窗口链接的特殊字符处理
- C# 删除正在运行的自身exe文件