华强北电脑城 龙岗电子世界 龙华电脑城  凯尔电脑

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 2278|回复: 1

ESXI错误:未能部署OVF 用户取消了任务

[复制链接]
发表于 2013-7-23 15:34:26 | 显示全部楼层 |阅读模式
尼玛,在ESXI中部署2003 SERVER正常 部署XP就出现这个错误 ' D0 M% l, \2 j  K
) w0 N+ _, V5 ?% P
解决方案如下5 z6 W+ F7 K; m% X0 s
http://communities.vmware.com/message/22170524 C$ D* t8 a- t

# y6 ], r3 M- {; P* W, j* C3 y/ u2 @/ @6 i  I
I have FIX IT with
; Y8 r7 X( c, o; {, c . s- l. Y& V8 I& |
Deleted *.mf file and change settings en OCF file
2 X/ e+ `$ b/ N3 @1 c- e) I 4 d$ J. `! B- T, M. D
Failed to deploy OVF package: The task was canceled by a user.- c* c# e$ c  C  I5 ]6 p/ E! n, L' r. n
How misleading. I, or any other user, certainly didn’t cancel the task. So what happened? I took a look through the (horrendous) hostd.log on the ESXi box and found absolutely nothing of any value.- u- C( p# |/ P1 _0 M" x9 E
Frustrated by the inability to redeploy a template I spent so long preparing, I broke open the OVA template and took a look inside. There were three files with different extensions,! l+ W+ Z6 A7 C+ X9 K& N- ]
.ova - OVF descriptor, written in XML, which describes the hardware requirements, M. {$ Y2 b' [6 d% c" D, @! O( ?- W
.mf – contains SHA1 checksums of the .OVA and .VMDK/ p/ n7 v, m+ {- [
.vmdk – the virtual hard disk for the virtual machine./ q) a9 ]* |1 y$ Z0 P& E
I immediately discarded the .mf. If you modify the .ova and don’t update the .mf, it’ll complain that the checksum is invalid. Removing this file seems to prevent vSphere from checking the checksums, which is useful, seeing as we want to poke around the .ova. After fiddling around inside the .ova, I stumbled across the following line…9 y: [+ R7 g& j* o) S; X0 z
<rasd:ResourceSubType>vmware.cdrom.iso</rasd:ResourceSubType>! P: m7 J4 q, r) Y7 _8 y9 B* t
Changing the above line, to read…
% _  \. I& I, O; U<rasd:ResourceSubType>vmware.cdrom.atapi</rasd:ResourceSubType>
$ [% N# {& r3 V& Z: P( C4 x…appears to have fixed my deployment issues. Perhaps changing the ‘CD Drive Device type’ in the virtual machine’s settings would’ve fixed it. But by that point, I had already exported the OVA and deleted the source virtual machine., W" T! z0 @; z: h
Hopefully someone will stumble across this one day, and it’ll save them a few hours!
回复

使用道具 举报

 楼主| 发表于 2013-7-23 15:45:22 | 显示全部楼层
Before creating an OVA file, in vSphere right click on the VM, open Settings, click on CD/DVD drive, check if Device Type is selected as Datastore ISO. If so, select Client Device. Save settings by clicking OK. Export OVA file, and then deploy.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|华强北 电脑城 龙岗电子世界 龙华电脑城 pc4g.com ( 粤ICP备16039863号 )

GMT+8, 2024-9-19 19:22 , Processed in 0.172827 second(s), 16 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表