Chinaunix首页 | 论坛 | 博客
  • 博客访问: 767397
  • 博文数量: 171
  • 博客积分: 3629
  • 博客等级: 中校
  • 技术积分: 1779
  • 用 户 组: 普通用户
  • 注册时间: 2005-02-23 21:21
文章分类

全部博文(171)

文章存档

2019年(4)

2018年(7)

2017年(1)

2016年(4)

2014年(1)

2013年(8)

2012年(10)

2011年(50)

2009年(12)

2008年(10)

2006年(56)

2005年(8)

分类: WINDOWS

2011-12-03 15:06:06

自己创建VHD的过程中遇到了一些问题,和下面仁兄的一样.拿来做记录了:

I'm trying to use WIM2VHD according to the instructions on Scott Hanselman's blog post to create a Sysprepped VHD image to boot from. I've installed the WAIK, and I have my Windows 7 sources mounted as a virtual drive.

When I try to run WIM2VHD like this:

cscript WIM2VHD.wsf /wim:F:\sources\install.wim /sku:Ultimate /vhd:E:\WindowsSeven.vhd /size:30721

I get the following log:

Log for WIM2VHD 6.1.7600.0 on 11/2/2009 at 10:51:18.16 Copyright (C) Microsoft Corporation. All rights reserved. MACHINE INFO: Build=7600 Platform=x86fre OS=Windows 7 Ultimate ServicePack= Version=6.1 BuildLab=win7_rtm BuildDate=090713-1255 Language=en-ZA INFO: Looking for IMAGEX.EXE... INFO: Looking for BCDBOOT.EXE... INFO: Looking for BCDEDIT.EXE... INFO: Looking for REG.EXE... INFO: Looking for DISKPART.EXE... INFO: Session key is E01E1ED7-C197-4814-BDE4-43B73E14FCC4 INFO: Inspecting the WIM... INFO: Configuring and formatting the VHD... ******************************************************************************* Error: 0: Cannot derive Volume GUID from mount point. ******************************************************************************* INFO: Unmounting the VHD due to error... WARNING: In order to help resolve the issue, temporary files have not been deleted. They are in: C:\Users\Jacob\AppData\Local\Temp\WIM2VHD.WSF\E01E1ED7-C197-4814-BDE4-43B73E14FCC4 *emphasized text*Summary: Errors: 1, Warnings: 1, Successes: 0 INFO: Done.

Any ideas?


Answer:

Please modify your command line like this:

cscript WIM2VHD.wsf /wim:F:\sources\install.wim /sku:Ultimate /vhd:E:\WindowsSeven.vhd /size:30721 /trace:true

and post the contents of the log file. That will hopefully help me figure out what's going on.

(http://serverfault.com/questions/80438/wim2vhd-failing-with-cannot-derive-volume-guid-from-mount-point)

上面的/size参数大有讲究,如果自己的临时文件夹过小会出现此故障.

把临时文件夹重新设定到新的位置,空间足够大,反正大于默认的40G,再运行就OK了.使用/trace|参数可以追踪找原因.


阅读(891) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~