vmware中如何为虚拟机增加硬盘容量

vmware中如何为虚拟机增加硬盘容量
第⼀种⽅法:增加新硬盘分区:
1.打开vmware(不⽤启动虚拟机内的系统),=>虚拟机=>设置=>add,选择Hard Disk,然后⼀直点 next,(中间有⼀步是设置需要添加磁盘的⼤⼩,按照⾃⼰的需求设置,这⾥就忽略了)最后点OK
2.=>启动该虚拟机,在虚拟的系统⾥⾯再执⾏以下操作: =>控制⾯板=>管理⼯具=>计算机管理=>磁盘管理,会跳出⼀个“欢迎使⽤磁盘初始化和转换向导”的界⾯。⼀直点“下⼀步”,(在右下区域到刚初始化的磁盘,你会发现是“未指派”的),选中该磁盘后执⾏以下操作:=>操作=>所有任务=>新建磁盘分区=>⼀直下⼀步直到完成。
第⼆种⽅法:扩展已有硬盘容量:
界⾯中并没有提供增加硬盘容量的⽅法。
只能在命令⾏形式下执⾏。
安装所在盘的Program Files\VMware\VMware Workstation下有⼀个,就是它。
命令参数如下:
Usage: OPTIONS <disk-name> | <mount-point>
Offline disk manipulation utility
Options:
-c                    : create disk; need to specify other create options
-d                    : defragment the specified 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 by压延膜
the drive-letter for shrinking
-
q                    : do not log messages
-r <source-disk>      : convert the specified disk; need to specify
destination disk-type
-x <new-capacity>    : expand the disk to the specified capacity
Additional 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-type>    : disk type id
Disk types:
0                  : single growable virtual disk
1                  : growable virtual disk split in 2Gb files
2                  : preallocated virtual disk
3                  : preallocated virtual disk split in 2Gb files
The capacity can be specified in sectors, Kb, Mb or Gb.
The acceptable ranges:
ide adapter : [100.0Mb, 950.0Gb]
scsi adapter: [100.0Mb, 950.0Gb]
ex 1: -c -s 850Mb -a ide -t 0 myIdeDisk.vmdk
ex 2: -d myDisk.vmdk
ex 3: -r sourceDisk.vmdk -t 0 destinationDisk.vm
dk
蛋白质晶体
ex 4: -x 36Gb myDisk.vmdk
ex 5: -n sourceName.vmdk destinationName.vmdk
ex 6: -k myDisk.vmdk
ex 7: -p <mount-point>塑料静电分离机靠谱吗
(A virtual disk first needs to be mounted at <mount-point>)
-----------------------------------------------------------------
其中的-x参数就是⽤来扩容的……
如这个: -x 36Gb myDisk.vmdk水粉盒
-------------------------------------------------------
我的执⾏过程:
E:\Program Files\VMware\VMware Workstation>set path=%path%;E:\Program Files\VMwa
re\VMware Workstation
E:\Program Files\VMware\VMware Workstation>e:c型变压器
E:\Program Files\VMware\VMware Workstation>cd E:\VM_Machine
E:\VM_Machine>cd Windows Server 2003 Standard Edition
E:\VM_Machine\Windows Server 2003 Standard Edition>dir *.vmdk
2007/07/20  11:17        1,588,527,104 Windows Server 2003 Standard Edition-s001
.vmdk
2007/07/20  11:17                65,536 Windows Server 2003 Standard Edition-s002
.vmdk
2007/07/20  10:56                  448 Windows Server 2003 Standard Edition.vmdk
E:\VM_Machine\Windows Server 2003 Standard Edition& -x 4G
"Windows Server 2003 Standard Edition.vmdk"
Using log file C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\1\vmware-Administrator\vdiskma
nager.log
The specified disk size does not fall within acceptable range.
The acceptable ranges:
油田水处理
ide adapter : [100.0Mb, 950.0Gb]
scsi adapter: [100.0Mb, 950.0Gb]
E:\VM_Machine\Windows Server 2003 Standard Edition& -x 4G
b "Windows Server 2003 Standard Edition.vmdk"
Using log file C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\1\vmware-Administrator\vdiskma
nager.log
The old geometry C/H/S of the disk is: 261/255/63
The new geometry C/H/S of the disk is: 522/255/63
Disk expansion completed successfully.
需要强调的⼀点是,调整硬盘⼤⼩之后的效果,相当于增加了原来物理硬盘的柱⾯数⽬,因此,⽂件系统并不会⾃动增长。需要重新调整⽂件系统的⼤⼩。这⼀步不同的系统有不同的⽅法。⽐如
1. 如果guest OS为win系列,可以通过partion magic来实现
2. 如果guest OS为Linux系列,可以通过 resize2fs来扩⼤ext2/3格式的⽂件系统。
3. 如果guset OS为其他Unix系统,可以通过向⽂件树中新增加分区,来扩充原⽂件系统。
通过vm加盘的⽅法:在菜单栏哪⾥有个“VM”,点击“VM”⾥⾯有个“settings”或者直接⽤快捷键“Ctrl+D”,点击“Add”增加⼀
个“Hard Disk”.加完后进⼊系统后,右击我的电脑选择“管理”进⼊后再选择“存储”中的“磁盘管理”。对你刚才新增加的硬盘进⾏快速格式化后,就可以为你原先的硬盘多增加⼀个盘符=已经扩⼤你原先的硬盘⼤⼩

本文发布于:2024-09-23 00:36:43,感谢您对本站的认可!

本文链接:https://www.17tex.com/tex/3/102149.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:增加   磁盘   系统
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议