vmware中如何為虛擬機增加硬盤容量
第一種方法:增加新硬盤分區(qū):
1.打開vmware(不用啟動虛擬機內的系統(tǒng)),=>虛擬機=>設置=>add,選擇Hard Disk,然后一直點 next,(中間有一步是設置需要添加磁盤的大小,按照自己的需求設置,這里就忽略了)最后點OK
2.=>啟動該虛擬機 ,在虛擬的系統(tǒng)里面再執(zhí)行以下操作: =>控制面板=>管理工具=>計算機管理=>磁盤管理,會跳出一個“歡迎使用磁盤初始化和轉換向導”的界面。一直點“下一步”,(在右下區(qū)域找到剛初始化的磁盤,你會發(fā)現是“未指派”的),選中該磁盤后執(zhí)行以下操作:=>操作=>所有任務=>新建磁盤分區(qū)=>一直下一步直到完成。
第二種方法:擴展已有硬盤容量:
界面中并沒有提供增加硬盤容量的方法。
只能在命令行形式下執(zhí)行。
安裝所在盤的Program Files\VMware\VMware Workstation下有一個vmware-vdiskmanager.exe,就是它。
命令參數如下:
Usage: vmware-vdiskmanager.exe 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: vmware-vdiskmanager.exe -c -s 850Mb -a ide -t 0 myIdeDisk.vmdk
ex 2: vmware-vdiskmanager.exe -d myDisk.vmdk
ex 3: vmware-vdiskmanager.exe -r sourceDisk.vmdk -t 0 destinationDisk.vm
dk
ex 4: vmware-vdiskmanager.exe -x 36Gb myDisk.vmdk
ex 5: vmware-vdiskmanager.exe -n sourceName.vmdk destinationName.vmdk
ex 6: vmware-vdiskmanager.exe -k myDisk.vmdk
ex 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
-------------------------------------------------------
我的執(zhí)行過程:
E:\Program Files\VMware\VMware Workstation>set path=%path%;E:\Program Files\VMwa
re\VMware Workstation
E:\Program Files\VMware\VMware Workstation>e:
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>vmware-vdiskmanager.exe -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>vmware-vdiskmanager.exe -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.
WARNING: If 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:
http://www.vmware.com/support/kb/enduser/std_adp.php?p_faqid=1647
總結一下:
1。文件名應該用雙引號括起來。
2。vmdk文件用不帶001,002的最短的那個文件名。
3。GB,MB,別忘了B。
需要強調的一點是,調整硬盤大小之后的效果,相當于增加了原來物理硬盤的柱面數目,因此,文件系統(tǒng)并不會自動增長。需要重新調整文件系統(tǒng)的大小。這一步不同的系統(tǒng)有不同的方法。比如
1. 如果guest OS為win系列,可以通過partion magic來實現
2. 如果guest OS為Linux系列,可以通過 resize2fs來擴大ext2/3格式的文件系統(tǒng)。
3. 如果guset OS為其他Unix系統(tǒng),可以通過向文件樹中新增加分區(qū),來擴充原文件系統(tǒng)。
通過vm加盤的方法:在菜單欄哪里有個“VM”,點擊“VM”里面有個“settings”或者直接用快捷鍵“Ctrl+D”,點擊“Add”增加一個“Hard Disk”.加完后進入系統(tǒng)后,右擊我的電腦選擇“管理”進入后再選擇“存儲”中的“磁盤管理”。對你剛才新增加的硬盤進行快速格式化后,就可以為你原先的硬盤多增加一個盤符=已經擴大你原先的硬盤大小
相關文章

推出跨端全天候智能助手Uclaw! 統(tǒng)信UOS桌面操作系統(tǒng)V25發(fā)布
4月15日,統(tǒng)信軟件正式發(fā)布統(tǒng)信桌面操作系統(tǒng)V25,作為國產操作系統(tǒng)里程碑式版本,該版本在智能化、高效性、可靠性三大維度實現系統(tǒng)性突破,標志著國產操作系統(tǒng)從“可用”全2026-04-16
哪個系統(tǒng)誰最懂你? 2026全球十大操作系統(tǒng)排行榜
根據最新Statcounter、Statista等權威數據統(tǒng)計,全球操作系統(tǒng)市場份額發(fā)生了微妙變化,下面我們就來看看2026全球十大操作系統(tǒng)排行榜2026-04-08
輕松玩轉虛擬機套娃! 在Hyper-V中開啟嵌套虛擬化的技巧
有辦法在虛擬機中創(chuàng)建虛擬機嗎?答案是肯定的,在虛擬機中運行虛擬機是可能的,我們將其稱為嵌套虛擬化,下面我們就來看看詳細操作方法2025-02-19
龍蜥操作系統(tǒng)Anolis OS-23.x安裝配置圖解教程(保姆級)
本文主要介紹了安裝和配置AnolisOS 23.2系統(tǒng),包括分區(qū)、軟件選擇、設置root密碼、網絡配置、主機名設置和禁用SELinux的步驟,具有一定的參考價值,感興趣的可以了解一下2025-01-20
在處理文件拷貝復制到VMware虛擬機中的任務時,有多種方法可以實現文件的高效傳輸,使用這些方法,可以在不同的操作系統(tǒng)和環(huán)境下,實現文件的快速、安全遷移,詳細請看下文2024-09-24
統(tǒng)信 UOS V20 桌面專業(yè)版更新發(fā)布:附更新內容匯總
統(tǒng)信 UOS V20 桌面專業(yè)版(1070u1)正式發(fā)布,支持微信掃碼登錄、應用窗口縮略圖,海量功能修復,詳細請看下文介紹2024-08-08
怎么看自己IP地址? 不同的操作系統(tǒng)中查看路由器的IP地址的方法
在互聯(lián)網上進行網絡連接,每個設備都有一個唯一的標識,即IP地址,本文介紹了如何在不同平臺上查找路由器的IP地址,包括Windows、Mac、iPhone、iPad、Android、Chrome OS和2024-07-16
很多人在使用虛擬機系統(tǒng)的時候,經常對虛擬機的運行速度不甚滿意,甚至經常很惱火,虛擬機速度慢有很多原因,每個人需要根據自己的情況具體分析,本文根據筆者的使用經驗將2024-02-21
使用虛擬機的時候,遇到了錯誤,想要把錯誤的代碼或是運行情況復制粘貼到Windows的網上論壇區(qū)求助大神,該怎么操作呢?詳細請看下文介紹2024-02-21
統(tǒng)信UOS V20桌面專業(yè)版(1060)11月更新發(fā)布(附更新內容匯總)
國產桌面操作系統(tǒng)統(tǒng)信 UOS V20 專業(yè)版(1060)11月更新發(fā)布,這是統(tǒng)信 UOS V20 專業(yè)版(1060)2023 年度最后一次更新,下面我們就來看看詳細的更新內容2023-12-01










