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

推荐订阅源

MongoDB | Blog
MongoDB | Blog
Recorded Future
Recorded Future
Jina AI
Jina AI
The Register - Security
The Register - Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
月光博客
月光博客
博客园 - 三生石上(FineUI控件)
F
Fortinet All Blogs
人人都是产品经理
人人都是产品经理
S
SegmentFault 最新的问题
Apple Machine Learning Research
Apple Machine Learning Research
L
LangChain Blog
Y
Y Combinator Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
GbyAI
GbyAI
The GitHub Blog
The GitHub Blog
Vercel News
Vercel News
博客园 - 【当耐特】
雷峰网
雷峰网
The Cloudflare Blog
阮一峰的网络日志
阮一峰的网络日志
aimingoo的专栏
aimingoo的专栏
云风的 BLOG
云风的 BLOG
I
InfoQ
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google DeepMind News
Google DeepMind News
Security Latest
Security Latest
有赞技术团队
有赞技术团队
L
Lohrmann on Cybersecurity
P
Proofpoint News Feed
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
The Last Watchdog
The Last Watchdog
P
Privacy & Cybersecurity Law Blog
Scott Helme
Scott Helme
Google Online Security Blog
Google Online Security Blog
WordPress大学
WordPress大学
Hacker News - Newest:
Hacker News - Newest: "LLM"
NISL@THU
NISL@THU
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
B
Blog RSS Feed
Cyberwarzone
Cyberwarzone
K
Kaspersky official blog
F
Full Disclosure
Martin Fowler
Martin Fowler
Spread Privacy
Spread Privacy
D
Docker
C
Cisco Blogs
www.infosecurity-magazine.com
www.infosecurity-magazine.com
H
Hacker News: Front Page

博客园 - 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