虚拟机增加硬盘容量_第1页
虚拟机增加硬盘容量_第2页
虚拟机增加硬盘容量_第3页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、第一种方法:增加新硬盘分区:1. 打开vmware (不用启动虚拟机内的系统),=虚拟机=设置=add,选择Hard Disk,然后一直点next,(中间有一步是设置需要添加磁盘的大小,按照自己 的需求设置,这里就忽略了)最后点 OK2. =启动该虚拟机,在虚拟的系统里面再执行以下操作: = 控制面板= 管理 工具= 计算机管理=磁盘管理,会跳出一个 欢迎使用磁盘初始化和转换向导” 的界面。一直点 下一步”,(在右下区域找到刚初始化的磁盘,你会发现是 朱 指派”的),选中该磁盘后执行以下操作:=操作=所有任务=新建磁盘分区= 一直下一步直至U完成。第二种方法:扩展已有硬盘容量:界面中并没有提供

2、增加硬盘容量的方法。只能在命令行形式下执行。安装所在盘的 Program FilesVMwareVMware Workstation 下有一个 vmware-vdi skmanager.exe 就是它。命令参数如下:Usage: vmware-vdiskmanager.exe OPTIONS <disk-name> | <mount-point>Offline disk manipulation utilityOptions:-c: create disk; need to specify other create options-d: defragment the s

3、pecified virtual disk-k: shrink the specified virtual disk-n <source-disk> : rename the specified virtual disk; need to specify destination disk-name-p: prepare the mounted virtual disk specified bythe drive-letter for shrinking-q: do not log messages-r <source-disk> : convert the specif

4、ied disk; need to specify destination disk-type-x <new-capacity> : expand the disk to the specified capacityAdditional options for create and convert:-a <adapter> : (for use with -c only) adapter type (ide, buslogic o r lsilogic)-s <size> : capacity of the virtual disk-t <disk-t

5、ype> : disk type idDisk types:0: single growable virtual disk1: growable virtual disk split in 2Gb files:preallocated virtual disk:preallocated virtual disk split in 2Gb filesThe capacity can be specified in sectors, Kb, Mb or Gb.The acceptable ranges:ide adapter : 100.0Mb, 950.0Gbscsi adapter: 1

6、00.0Mb, 950.0Gbex 1: vmware-vdiskmanager.exe -c -s 850Mb -a ide -t 0 myIdeDisk.vmdkex 2: vmware-vdiskmanager.exe -d myDisk.vmdkex 3: vmware-vdiskmanager.exe -r sourceDisk.vmdk -t 0 destinationDisk.v m dkex 4: vmware-vdiskmanager.exe -x 36Gb myDisk.vmdkex 5: vmware-vdiskmanager.exe -n sourceName.vmdk

7、 destinationName.vm dkex 6: vmware-vdiskmanager.exe -k myDisk.vmdkex 7: vmware-vdiskmanager.exe -p <mount-point>(A virtual disk first needs to be mounted at <mount-point>)其中的-x参数就是用来扩容的如这个:vmware-vdiskmanager.exe -x 36Gb myDisk.vmdk我的执行过程:E:Program FilesVMwareVMware Workstation>set pa

8、th=%path%;E:Program Fil esVMwa reVMware WorkstationE:Program FilesVMwareVMware Workstation>e:E:Program FilesVMwareVMware Workstation>cd E:VM_MachineE:VMMachine>cd Windows Server 2003 Standard Edition2007/07/20 11:17001.vmdk2007/07/20 11:17.vmdk2007/07/20 10:56E:VMMachineWindows Server 2003

9、Standard Edition>dir *.vmdk1,588,527,104 Windows Server 2003 Standard Edition-s65,536 Windows Server 2003 Standard Edition-s002448 Windows Server 2003 Standard Edition.vmdkE:VM_MachineWindows Server 2003 Standard Edition>vmware-vdiskmanager.e xe -x 4G"Windows Server 2003 Standard Edition.

10、vmdk"Using log file C:DOCUME1ADMINI1LOCALS1Temp1vmware-Administ ratorvdiskmanager.logThe specified disk size does not fall within acceptable range.The acceptable ranges: ide adapter : 100.0Mb, 950.0Gb scsi adapter: 100.0Mb, 950.0GbE:VM_MachineWindows Server 2003 Standard Edition>vmware-vdisk

11、manager.e xe -x 4Gb "Windows Server 2003 Standard Edition.vmdk"Using log file C:DOCUME1ADMINI1LOCALS1Temp1vmware-Administ ratorvdiskma nager.logThe old geometry C/H/S of the disk is: 261/255/63The new geometry C/H/S of the disk is: 522/255/63Disk expansion completed successfully.WARNING: I

12、f the virtual disk is partitioned, you must use a third-party utility in the virtual machine to expand the size of the partitions. For more information, see: adp.php?p faqid=1647总结一下:1。文件名应该用双引号括起来。2。vmdk文件用不带001, 002的最短的那个文件名。3。GB, MB,别忘了 Bo需要强调的一点是,调整硬盘大小之后的效果,相当丁增加了原来物理硬盘的柱 面数目,因此,文件系统并不会自动增长。需要重新调整文件系统的大小。这一步不同的系统有不同的方法。比如1. 如果guest OS为win系歹0,可以通过 partion magic来实现2. 如果guest OS为Linux系歹U,可以通过resize2fs来扩大ext2/3格式的文件系3. 如果guset OS为其他Unix系统,

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论