VMware Cloud Community
Picch
Contributor
Contributor

ovftool failing to convert vmx to ovf

Hello,

I'm attempting to do a vmware to ovf converstion.  However, I'm receiving some fairly generic errors from ovftool and was hoping I could get some help.

Here are the console messages when I attempt to convert:

[root@provisionvrpt ~]# /usr/bin/ovftool --machineOutput --X:logToConsole=true /var/lib/vmware/Virtual\ Machines/vm/test.vmx /var/lib/vmware/Virtual\ Machines/vmovf/test.ovf
[2011-08-16 00:42:55.990 B7FAC6D0 verbose 'ovftool'] Subscribing to signal: 2 (SIGINT)
[2011-08-16 00:42:55.990 B7FAC6D0 verbose 'ovftool'] Subscribing to signal: 4 (SIGILL)
[2011-08-16 00:42:55.990 B7FAC6D0 verbose 'ovftool'] Subscribing to signal: 6 (SIGABRT)
[2011-08-16 00:42:55.990 B7FAC6D0 verbose 'ovftool'] Subscribing to signal: 8 (SIGFPE)
[2011-08-16 00:42:55.990 B7FAC6D0 verbose 'ovftool'] Subscribing to signal: 15 (SIGTERM)
[2011-08-16 00:42:55.990 B7FAC6D0 verbose 'ovftool'] Subscribing to signal: 1 (SIGHUP)
[2011-08-16 00:42:55.990 B7FAC6D0 verbose 'ovftool'] Subscribing to signal: 3 (SIGQUIT)
[2011-08-16 00:42:55.990 B7FAC6D0 verbose 'ovftool'] Subscribing to signal: 5 (SIGTRAP)
[2011-08-16 00:42:55.990 B7FAC6D0 verbose 'ovftool'] Subscribing to signal: 9 (SIGKILL)
[2011-08-16 00:42:55.991 B7FAC6D0 verbose 'ovftool'] Subscribing to signal: 13 (SIGPIPE)
[2011-08-16 00:42:55.991 B7FAC6D0 verbose 'ovftool'] [ovfTool.cpp] Using home directory /root/.ovftool
[2011-08-16 00:42:55.991 B7FAC6D0 verbose 'ovftool'] [ovfTool.cpp] OvfTool Environment:
/X:fencedMode = "bridged"
/X:imageReadSize = "262144"
/X:logToConsole = "true"
/X:maxNumberOfTermSignals = "5"
/X:maxRedirects = "256"
/X:maximalDeltaConfSize = "8"
/X:maximalDeltaTreeSize = "6"
/X:progressSmoothing = "60"
/X:vimSessionTimeout = "600"
/authdPortSource = "902"
/authdPortTarget = "902"
/machineOutput = "true"
/prgPath = "/opt/vmware/ovftool"
/source = "/var/lib/vmware/Virtual Machines/vm/test.vmx"
/target = "/var/lib/vmware/Virtual Machines/vmovf/test.ovf"

[2011-08-16 00:42:56.000 B7FAC6D0 verbose 'ovftool'] [ovfTool.cpp] Done initializing libs
[2011-08-16 00:42:56.000 B7FAC6D0 verbose 'ovftool'] [ovfTool.cpp] Determining source
[2011-08-16 00:42:56.212 B7FAC6D0 verbose 'ovftool'] [ovfTool.cpp] Determining target
[2011-08-16 00:42:57.488 B7FAC6D0 verbose 'ovftool'] Failed to open disk: /var/lib/vmware/Virtual Machines/vm/test.vmdk
[2011-08-16 00:42:57.488 B7FAC6D0 verbose 'ovftool'] Exception: The specified virtual disk needs repair
Error: Failed to open disk: test.vmdk
[2011-08-16 00:42:57.493 B7FAC6D0 verbose 'ovftool'] Backtrace:
[00] rip 050210b3
[01] rip 04eb6e9e
[02] rip 04e55ec2
[03] rip 081c014b
[04] rip 08310271
[05] rip 08311b54
[06] rip 0831ad24
[07] rip 0831b1f7
[08] rip 0831b74c
[09] rip 081f871a
[10] rip 0816fa45
[11] rip 080cd318
[12] rip 0317be9c
[13] rip 080ae4f1

But when I attempt to repair the disk, I get the following:

vmware-vdiskmanager -R /var/lib/vmware/Virtual\ Machines/vm/test.vmdk
No errors were found on the virtual disk, '/var/lib/vmware/Virtual Machines/vm/test.vmdk'.

Any help would be apprecaited.  Is there a way to increase the verbosity of the logging?

Here is my ovftool version info: VMware ovftool 2.0.1 (build-260188)

Thanks!

0 Kudos
1 Reply
kawo
Contributor
Contributor

Hi,

I just had exactly the same problem you've described.

Instead of using "vmware-vdiskmanager -R wiki-t00.vmdk" which didn't help, cause it found no errors, I tried shrinking the disk "vmware-vdiskmanager -k wiki-t00.vmdk" and after that "ovftool --machineOutput --X:logToConsole=true wiki-t00.vmx /VMs/__ovf/wiki-t00/wiki-t00.ovf" ran through like a charm. Smiley Happy

Kate

0 Kudos