跳至主要内容

How to Convert a VMware Pre-allocated Virtual Disk to a Growable Virtual Disk

受不了动辄几百G的虚机,记给自己看,只是在网络上搬运,来源在这里:http://www.virtuatopia.com/index.php/How_to_Convert_a_VMware_Pre-allocated_Virtual_Disk_to_a_Growable_Virtual_Disk。

he vmware-vdiskmanager tool

The VMware Disk Management Tool is a command line tool which is installed by default with VMware Server. The executable file is named vmware-vdiskmanager and is located in \Program Files\VMware\VMware Server on Windows hosts, and /usr/bin on Linux systems.
The tool accepts a number of command-line arguments, a full listing of which can be obtained by running vmware-vdiskmanager with no options.
vmware-vdiskmanager

Virtual Disk Types

The type to which a virtual disk is to be converted is specified using the -t flag, together with the target disk type. This is represented by a number as outlined in the following table:
Type Identifier
Description
0
Growable (single .vmdk file)
1Growable (multiple 2GB files)
2Pre-allocated (single file)
3
Pre-allocated (multiple 2GB files)
4Pre-allocated ESX
5Compressed for streaming

Performing the Virtual Disk Type Conversion

The vmware-vdiskmanager command requires a number of arugments perform a virtual disk type conversion. The syntax for a type conversion is as follows:
vmware-vdiskmanager -r <oldfilename>.vmdk -t <type> <newfilename>.vmdk
where <oldfilename>.vmdk is the name of the virtual disk image file to be converted, <type> is the number from the above table indicating the target virtual disk type, and <newfilename>.vmdk is the name of the new, converted file.
For example, to convert a virtual disk image file called win2008-1_2.vmdk to a growable disk called new.vmdk the following command would need to be executed:
vmware-vdiskmanager -r  win2008-1_2.vmdk -t 0 new.vmdk

  Creating disk 'new.vmdk'
  Convert: 100% done.
Virtual disk conversion successful.
Once the conversion is completed, the virtual machine will need to be configured to use the converted disk, or the new disk renamed to have the name of the original disk.

评论

此博客中的热门博文

解决OpenWRT安装第三方包Incompatible with the architectures configured错误

 起因 起了把家里路由器更新到新版本OpenWRT的念头很久了,周末终于克服自己的懒病,下载了OpenWRT 19.07.4的安装包,更新Linksys WRT1900ACS路由器的系统。 修改了IP地址,把Wifi打开后,驾轻就熟地修改了相关的配置,增加了第三方源,准备开始安装你懂的SS和ChinaDNS等组件。没想到往常屡试不爽的opkg install命令返回了安装失败提示: Incompatible with the architectures configured 仔细比对了所有的配置,确认没有错误,但是安装新增的第三方包时总是报错。 解决方法 试了N多种方法,还是不行,正准备放弃装回原来ROM时,突然发现运行opkg print-architecture返回的CPU架构型号是 arch all 1 arch noarch 1 arch arm_cortex-a9_vfpv3-d16 10 比原来系统打印出来的架构型号多了一个d16,而第三方源的库里貌似没有arm_cortex-a9_vfpv3-d16这样一个型号的源,尝试修改/etc/opkg.conf文件,把原来CPU型号列表增加不带d16行。 arch all 1 arch noarch 1 arch arm_cortex-a9_vfpv3 8 arch arm_cortex-a9_vfpv3-d16 10 再运行opkg install,包装成功。

[转]为Ubuntu Server安装gnome图形桌面环境

From: http://blog.creke.net/696.html ubuntu server版默认都没有图形桌面(GUI),但是可以安装,以下共有两种安装方法。 一、安装全部Gnome桌面环境 Ubuntu系列桌面实际上有几种桌面应用程序,包括Ubuntu-desktop、Kubunut-desktop和Xubuntu-desktop。本文就以Ubuntu-desktop为例进行介绍,此方法操作最简单,但不建议在服务器上使用此方法,因为安装桌面相关软件太多。 sudo apt-get update sudo apt-get install ubuntu-desktop 二、自定义安装 1.安装x-windows的基础(必须): sudo apt-get install x-window-system-core 2.安装gnome基础(必须): sudo apt-get install gnome-core 3.安装中文显示(建议安装): sudo apt-get install language-pack-gnome-zh  #让gnome面板、菜单显示中文 sudo apt-get install language-pack-gnome-zh-base sudo apt-get install language-pack-zh             #中文语言包 sudo apt-get install language-pack-zh-base sudo apt-get install language-support-zh        #中文语言支持 sudo apt-get install scim        #scim中文输入法平台 4.安装登录管理器(一般不选): sudo apt-get install gdm 说明: gdm(gnome display manager)即gnome图形界面显示管理器,还有kdm/xdm等,它将使您可以在启动时直接进入GUI桌面环境,而勿需通过 startx 来启动GUI。 5.安装新利得软件管理器(可...

安装Oracle WebCenter Sites 12c (part 2)

4. 运行RCU,创建数据库 RCU是FMW 12c系列与之前版本最大的区别,在新的版本中,RCU已集成在Oracle Fusion Middleware Infrastructure中,所以只需安装Oracle Fusion Middleware Infrastructure,就可以开始配置FMW应用所需的数据库。 在Oracle Home的oracle_common\bin目录下,运行rcu.bat,开始创建WebCenter Sites所需的表空间。 4.1 运行RCU,开始创建向导 4.2 创建Repository 选择Create Repository-->System Load and Product Load, 点Next. 4.3 数据库连接信息 输入Oracle数据库的连接信息,点击Next. 注意如果使用XE的话,数据库检查会报错,只要点击忽略就可以继续。 4.4 选择安装组件 勾选WebCenter Sites,其它所需组件会自动先上,确认后点击Next. 通过先决条件检查后点OK确认。 4.5 设置Schema的密码 输入并确认Schema的密码后点Next. 4.6 表空间信息确认并创建表空间 确认表空间信息无误,点击Next. 检查后点击OK。 开始创建不存在的表空间,完成后点OK,再点Next。 4.7 RCU汇总并创建所需的表 确认信息无误后点Create,创建WebCenter Sites所需的表。 开始创建所需的组件。 4.8 完成RCU安装 完成RCU安装,点Close. 5. 创建Oracle WebCenter Sites域 5.1 运行config.cmd,开始域创建向导 运行Oracle Home目录下的oracle_common\common\bin\config.cmd。 选择创建新Domain,Next. 5.2 选择域使用的模板 选择Oracle WebCenter Sites with Examples, Oracle WebCenter Sites - Visitor Services, Oracle Enterprise Mana...