惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
News and Events Feed by Topic
T
The Exploit Database - CXSecurity.com
P
Palo Alto Networks Blog
T
Threat Research - Cisco Blogs
Cloudbric
Cloudbric
Recent Commits to openclaw:main
Recent Commits to openclaw:main
I
Intezer
Attack and Defense Labs
Attack and Defense Labs
P
Privacy International News Feed
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
L
Lohrmann on Cybersecurity
C
Cybersecurity and Infrastructure Security Agency CISA
V2EX - 技术
V2EX - 技术
AWS News Blog
AWS News Blog
O
OpenAI News
L
LINUX DO - 最新话题
N
News | PayPal Newsroom
PCI Perspectives
PCI Perspectives
www.infosecurity-magazine.com
www.infosecurity-magazine.com
T
Troy Hunt's Blog
Latest news
Latest news
D
Darknet – Hacking Tools, Hacker News & Cyber Security
A
Arctic Wolf
Spread Privacy
Spread Privacy
G
GRAHAM CLULEY
T
Tor Project blog
博客园_首页
Know Your Adversary
Know Your Adversary
有赞技术团队
有赞技术团队
S
Secure Thoughts
美团技术团队
Apple Machine Learning Research
Apple Machine Learning Research
爱范儿
爱范儿
T
Tailwind CSS Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
V
Visual Studio Blog
J
Java Code Geeks
Cisco Talos Blog
Cisco Talos Blog
Schneier on Security
Schneier on Security
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
S
Security Affairs
Jina AI
Jina AI
人人都是产品经理
人人都是产品经理
雷峰网
雷峰网
宝玉的分享
宝玉的分享
量子位
Last Week in AI
Last Week in AI
月光博客
月光博客
罗磊的独立博客
S
SegmentFault 最新的问题

博客园 - JIN Weijie

基于Entity Framework的自定义分页,增删改的通用实现 基于Dapper的分页实现,支持筛选,排序,结果集总数,多表查询,非存储过程 让Windows 7变成WIFI热点 新浪微博RSS生成器Ver 1.0 同步Twitter帐号 修改Thickbox,预加载图片和点击图片前后浏览 ASTreeView 1.5.8发布(ASP.Net树控件) ASTreeView 1.5.3发布(ASP.NET树控件) ASTreeView 1.4.0发布(ASP.NET树控件) ASTreeView 1.3.0发布(ASP.NET树控件) ASTreeView 1.1.1发布(ASP.NET树控件) 在GoDaddy上部署SubText ASTreeView 1.0发布(一个ASP.NET树控件) 自定义增加Windows xp IIS的连接数 javascript closure(闭包)的一个示例 <=本博客已经转移至jinweijie.com=> [js][asp.net]客户端控制validator [asp.net]优化ViewState [js]remove whitespace for firefox [windows]自动拨号脚本
vmware增加磁盘空间方法以及出错解决
JIN Weijie · 2009-01-14 · via 博客园 - JIN Weijie

如果vm空间不够,可以用cmd命令来增加磁盘空间,然后用Acronis PartitionExpert等磁盘工具在vm里把新增加的空间分配出来。

操作步骤如下:

进入命令行提示符(start - run - enter "cmd")

比如我的vm放在d:"vm下,那么命令是(最关键的就是粗体字):

D:"Program Files"VMware"VMware Workstation>vmware-vdiskmanager -x 20GB "D:"VM"Windows 2003 R2(weijie)s-vmd6](s)"Windows Server 2003 Standard Edition.vmdk"

如果一切顺利,就会出现:
Disk expansion completed successfully.
那么恭喜,你可以进vm,用Acronis PartitionExpert来增加磁盘空间了。

不过今天遇到些问题,首先,因为以前做过一个snapshot,不能增加磁盘:
The selected operation can only be executed on a disk with no snapshots.

这时候,一定要去把以前建的snapshot删掉,而且这会花很长的时间,千万要等它完毕,不然,如果强行关掉删除snapshot的进程的话,再次尝试增加磁盘的命令,会成功,但会使vm不能启动!会出现下面的错误当你尝试启动vm的时候:

The parent virtual disk has been modified since the child was created

不过还是可以解决的,如下:
1.用文本编辑器 打开 .vmdk文件,比如我的是Windows Server 2003 Standard Edition.vmdk内容可能如下:

  1. # Disk DescriptorFile  
  2. version=1  
  3. CID=5bae3106  
  4. parentCID=ffffffff  
  5. createType="twoGbMaxExtentSparse"  
  6.  
  7. # Extent description  
  8. RW 4192256 SPARSE "Windows Server 2003 Standard Edition-s001.vmdk"  
  9. RW 2099200 SPARSE "Windows Server 2003 Standard Edition-s002.vmdk"  
  10. RW 4192256 SPARSE "Windows Server 2003 Standard Edition-s003.vmdk"  
  11. RW 4192256 SPARSE "Windows Server 2003 Standard Edition-s004.vmdk"  
  12. RW 4192256 SPARSE "Windows Server 2003 Standard Edition-s005.vmdk"  
  13. RW 4192256 SPARSE "Windows Server 2003 Standard Edition-s006.vmdk"  
  14. RW 4192256 SPARSE "Windows Server 2003 Standard Edition-s007.vmdk"  
  15. RW 4192256 SPARSE "Windows Server 2003 Standard Edition-s008.vmdk"  
  16. RW 12288 SPARSE "Windows Server 2003 Standard Edition-s009.vmdk"  
  17. RW 4192256 SPARSE "Windows Server 2003 Standard Edition-s010.vmdk"  
  18. RW 4192256 SPARSE "Windows Server 2003 Standard Edition-s011.vmdk"  
  19. RW 2101248 SPARSE "Windows Server 2003 Standard Edition-s012.vmdk"  
  20.  
  21. # The Disk Data Base   
  22. #DDB  
  23.   
  24. ddb.toolsVersion = "7428"  
  25. ddb.adapterType = "lsilogic"  
  26. ddb.geometry.sectors = "63"  
  27. ddb.geometry.heads = "255"  
  28. ddb.geometry.cylinders = "1958"  
  29. ddb.virtualHWVersion = "4"  
  30. ddb.encoding = "GBK"  

 可以看到,17,18,19行是新增加出来的磁盘空间,把他们删除,保存.vmdk文件。

之后,vm应该可以顺利启动了,这时,需要建一个新的snapshot,然后按照正常的流程删之,然后再运行增加磁盘空间命令,方可顺利扩大vm空间。

ps: blog搬家,欢迎访问新地址:www.jinweijie.com