Quantcast
Channel: VMware Communities : Popular Discussions - Open Virtualization Format Tool
Viewing all 34499 articles
Browse latest View live

OVA vs OVF in ovftool

$
0
0

Hi all,

I am trying to implement an OVF support for some virtualization software, which is using raw images for disks. I use qemu-img to convert raw images to vmdk format. Then I use ovftool to convert ovf file into vmware instance.

When the file I have is a simple ovf descriptor + manifest + disk - all is fine, it works even if I'm using qemu-img without "compat6" option

When the disk is compressed or the OVF package is packed into OVA - there are errors being thrown. Moreover when I create OVA package with no disk, the conversion works.

 

Here is the fragment of results for the OVA file:

 

Writing VMX file: test_ova.vmx
[2011-10-03 16:34:35.685 7F097D2C1720 verbose 'ovftool'] Using file size as progress measure
Disk progress: 0%[2011-10-03 16:34:35.685 7F097D2C1720 verbose 'ovftool'] Ovf::GetFileSource as StreamVmdk failed. Exception: Cannot open disk source: Not a supported disk format (sparse VMDK version too old)
Disk Transfer Failed                       
Error: Failed to open source disk: 3f66f54d-a9fa-4aa8-806d-d757d6f34a59.disk0.vmdk
[2011-10-03 16:34:35.685 7F097D2C1720 verbose 'ovftool'] Backtrace: 
[00] rip 00007f09767453e4  
[01] rip 00007f09765e99d4  
[02] rip 00007f097658e038  
[03] rip 00000000004fef51  
[04] rip 000000000054aaa5  
[05] rip 000000000054ae78  
[06] rip 000000000049c41a  
[07] rip 00007f0974e62c4d  
[08] rip 000000000047ec7a  
[2011-10-03 16:34:35.685 7F097D2C1720 verbose 'ovftool'] Deleting file: ./test_ova-disk1.vmdk

 

Same fragment when I unpack OVA and then run ovftool on the .ovf file:

 

Writing VMX file: test_ovf.vmx
[2011-10-03 16:35:53.934 7F7E899C4720 verbose 'ovftool'] Using file size as progress measure
Disk progress: 0%[2011-10-03 16:35:53.935 7F7E899C4720 verbose 'ovftool'] Ovf::GetFileSource as StreamVmdk failed. Exception: Cannot open disk source: Not a supported disk format (sparse VMDK version too old)
Disk progress: 99%[2011-10-03 16:35:54.106 7F7E899C4720 verbose 'ovftool'] Ovf::GetFileSource: Opened 3f66f54d-a9fa-4aa8-806d-d757d6f34a59.disk0.vmdk as diskLib source
[2011-10-03 16:35:54.106 7F7E899C4720 verbose 'ovftool'] Opening disk target /xcinstall-1.corp.google.com/VirtualLsiLogicController0:0
Disk Transfer Completed                    
Completed successfully
Can someone please explain to me, what is happening?
I am using python's tarfile to create OVA, if this may be of importance (although I doubt that, since it works with diskless OVA),
my qemu-img version used in this example was 0.12,
I used ovftool in version 2.0.0.

Thank you.


getting following error while calling OVF tool.

$
0
0

C:\Program Files\VMware\VMware OVF Tool>ovftool  E:\vmdk2008\Windows2008\Windows
2008P2V.vmx   vcloud://suresh:suresh1@10.137.90.73:443?org=Org1-Cloud1&vapp=myVA
PPTets&catalog=cat2&vappTemplate=junk&vdc=OrgVDC-org1-Cloud1
Opening VMX source: E:\vmdk2008\Windows2008\Windows2008P2V.vmx
Error: Missing vappTemplate or vapp key in locator
Completed with errors
'vapp' is not recognized as an internal or external command,
operable program or batch file.
'catalog' is not recognized as an internal or external command,
operable program or batch file.
'vappTemplate' is not recognized as an internal or external command,
operable program or batch file.
'vdc' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files\VMware\VMware OVF Tool>

Error: Failed to open disk: Test.vmdk

$
0
0

Hello all,

 

I am having a problem with the ovftool.

 

Here's what i did.

 

1)I created a VM running CentOS.

 

2)These are the 3 files that i got.

 

Test.vmx

 

Test.vmdk (Descriptor File)

 

# Disk DescriptorFile

version=1

CID=5046e880

parentCID=ffffffff

createType="vmfsPreallocated"


# Extent description

RW 83886080 VMFS "Test-flat.vmdk" 0


# The Disk Data Base

#DDB


ddb.virtualHWVersion = "4"

ddb.geometry.cylinders = "83220"

ddb.geometry.heads = "16"

ddb.geometry.sectors = "63"

ddb.adapterType = "lsilogic"

 

Test-flat.vmdk

 

3) This is the command that i ran

 

ovftool "Test.vmx" "Test_New.ova"

 

4)This is the error that i got.
2012-09-05T12:24:57.817+05:30 [7F22134FE740 verbose 'Default'] [ovfTool.cpp] Done initializing libs
2012-09-05T12:24:57.817+05:30 [7F22134FE740 verbose 'Default'] [ovfTool.cpp] Determining source
2012-09-05T12:24:57.818+05:30 [7F22134FE740 verbose 'Default'] [ovfTool.cpp] Determining target
Opening VMX source: Test.vmx
2012-09-05T12:24:57.821+05:30 [7F22134FE740 verbose 'Default'] Failed to open disk: ./Test-1-0.vmdk
2012-09-05T12:24:57.821+05:30 [7F22134FE740 verbose 'Default'] Exception: Failed to open disk: ./Test-1-0.vmdk. Reason: The file specified is not a virtual disk
Error: Failed to open disk: Test-1-0.vmdk

Please help!

 

Thank you

VMware OVF Tool

$
0
0

Experts,

I downloaded and installed VMware OVF Tool i am running Vmware Workstation 9. I am trying to figure out how to use VMware OVF Tool and create my VMs. Any help with this ?

 

Regards,

SD

How to use "ovftool --prop:key=value"?

$
0
0

We want a mechanism to automatically start VMs with customized parameters.  We found "ovftool --prop key=value" probably is what we want.  But we find in order to retrieve the properties set by vmtoolsd --cmd "info-get guestinfo.ovfEnv" from inside the VM, we have to first go to the vSphere Client and Enable the checkbox "VMWare Tools" under "OVF Environment Transport".   But this way, it needs manual configuration.  Is there a way to pass in the properties automatically or automatically enable "VMWare Tools"?

OVFTOOL failing with SSL error

$
0
0

Hello

I'm trying to export a VM to OVF format but it's failing with SSL error.

C:\Program Files\VMware\VMware OVF Tool>ovftool.exe --noSSLVerify=true --compres

s vi://username:password@localhost:80/Test/143.219.176.247/HOCMPTWS01-Template y:\

margg\VM

Error: cURL error: SSL connect error

Completed with errors

 

I'm not using any special characters.

Has anyone seen this error? Any suggestions?

 

Using OVFTool 4.1

ESX 3.5

VCenter 2.5

VM to OVF w/ OVFTOOLS Error

$
0
0

Hi,

 

Using ESXi 6.0.0, ovftool 4.2

 

I am trying to export a VM in a standalone ESXi to OVF using the following sintaxys:

 

C:\Program Files\VMware\VMware OVF Tool>ovftool "vi://root:pass@esxiip/ha-datacenter?ds=\[SSD Datastore\] nubodb_gima/nubodb.vmx" c:\nubodb-ovf\

But it is showing: Error: Locator does not refer to an object: vi://root@esxiip/ha-datacenter?ds=\[SSD%20Datastore\]%20nubodb_gima/nubodb.vmx

VM is located in:  [SSD Datastore] nubodb_gima/nubodb.vmx

 

I looked at the documentation and also the examples provided by ovftool but it is not working. I'll apreciate any help.

 

Gracias,

ovftool and Unknown option: 'net'

$
0
0

When I try to run my ovftool command, the --net option is marked as an "unknown option" despite being in the documentation on the vmware website, and in the --help section of ovftool

 

Also, "--nic" is another similarly "Unknown option" that is documented in both places

 

Using the --network option does not address the issue either. I need a way to assign port groups to each of the 4 network interfaces in the OVA and I have been researching this for several hours with no progress

 

Please advise

 

Command:
$ ovftool --net="Network 1"=<port group1> --net="Network 2"=<port group2> --net="Network 3"=<port group3> --net="Network 4"=<port group4> --datastore=<datastore> --acceptAllEulas --computerName:<testname> myfile.ova vi://<user>:<pw>@<host>/<path>

Error: Unknown option: 'net'

Completed with errors


ovftool 4.2.0 has a broken --allowAllExtraConfig

$
0
0

4.2.0 is bundled into the current build of Fusion10:

ovftool --version

VMware ovftool 4.2.0 (build-6230482)

 

This version has a busted --allowAllExtraConfig flag, so some VMs will not export to OVA, instead you get a slew of errors like this one:

- Line -1: Unsupported value 'disk.EnableUUID' for attribute 'key' on element 'ExtraConfig'.

Scripting ovftool

$
0
0

I need to write a script to remotely shotdown a guest VM, export it to .ova format an restart it.

Is there any sample I can start from?

Regards

marius

ERROR: Not a supported disk format(Invalid sparse VMDK header)

$
0
0

Hi All,

 

I have just come across ovftool and was giving a try to it. I am fairly new to VMware world.

I have a  .OVF which I exported using vSphere client 4.0. This .OVF comprises of 3 Suse Linux based virtual machines. i.e. I created a vApp on ESX (4.1) host, in this vApp I put my 3 SLES VMs and then exported it as OVF.

It has a total size of around 4.5GB.

 

Now I ran this command to compress this .OVF as well as gave an option to create deltadisks.

C:\> ovftool --compress=9 --makeDeltaDisks --skipManifestCheck  MyVMCluster\MyVMCluster.ovf   E:\

 

output:

{{{

The manifest does not validate
Generating delta disks for 2 disks (capacity 40960 MB)
Reading disks
Disk Transfer Completed

 

Determining optimal configuration for capacity group
Writing configuration to disk
Disk Transfer Completed

 

Completed successfully

}}}

 

Now when I checked my E:\ It had created a folder with the same name and put related files there. I saw a significant reduction in the new vmdk size. ( around 2.3GB now )

 

Now when I manually deploy this new ovf on vSphere client, it goes till certain %age and then flags an error:

{{{

Error uploading file to server ( E:\MyVMCluster\disk3.vmdk.gz ) Not a supported disk format ( Invalid sparse vmdk header )

}}}

and then it stops and everything rolledback.

 

 

Any pointers ?

 

Thanks

Nikunj

Could not look up host [username]. Proper password, but will not convert

$
0
0

Hey all. I know I am using proper syntax, but it seems like there's a missing service running on my esx cluster. I am able to log in with vSphere, but cannot use ovftool to export a stopped server in my ESX 4.0 cluster environment.

 

command I am using:

 

ovftool vi://[username]:[password]@vi://192.168.77.111/[serverid] d:\[serveridoutput].ovf

 

the error I am receiving is as follows:

 

Error: Could not lookup host: [username]

Completed with errors

 

 

Now it's interesting because the server does seem to know that I am using a proper user/pass because if I make a mistake on the password, I am given another chance to log in, until I miss three tries. If I enter the correct password, it seems to almost connect, then fails out with the above error. I would *REALLY* appreciate some help with this guys.

 

Thanks in advance!

Question Installing OVFtool in ESXi 5.5U1

$
0
0

So long story short I'm building a self deployment install using a Kickstart script that after the install uses wget to copyy the OVA files to the local data store and then deploys the OVAs, i have the script figured out however i can't seem to get ovftool installed on ESXi 5.5, everytime i try to run it i get the following error

 

env: can't execute 'bash': No such file or directory

 

this happens even after making the file executable, here's the whole command

 

~ # cd /tmp

 

 

 

/tmp # mkdir ovf

 

 

 

/tmp # cd ovf/

 

 

 

/tmp/ovf # wget http://10.10.10.4/OVA/VMware-ovftool-3.5.0-1274719-lin.x86_64.bundle

Connecting to 10.10.10.4 (10.10.10.4:80)

VMware-ovftool-3.5.0 100% |*******************************| 40125k  0:00:00 ETA

 

 

 

/tmp/ovf # chmod +x VMware-ovftool-3.5.0-1274719-lin.x86_64.bundle

 

 

 

/tmp/ovf # ./VMware-ovftool-3.5.0-1274719-lin.x86_64.bundle

env: can't execute 'bash': No such file or directory

 

 

 

/tmp/ovf # sh ./VMware-ovftool-3.5.0-1274719-lin.x86_64.bundle

env: can't execute 'bash': No such file or directory

 

 

 

/tmp/ovf # /bin/sh ./VMware-ovftool-3.5.0-1274719-lin.x86_64.bundle

env: can't execute 'bash': No such file or directory

Error Installing OVFTool on Ubuntu 14 WorkStation Guest

$
0
0


I am trying to install ovftool 4.1.0 on a Ubuntu guest I have on my Windows host.  I downloadedd the ovftool bundle changed permission to +x, started the bundle, and accepted the license.  It says it is ready to install and I press enter.  Then I get the below and ovftool is never installed.


 


Rolling back VMware installer component 2.1.0


Removing files..


Uninstalling VMware installer component 2.1.0


Deconfiguring...


 


Any ideas? The bundle I have is the 'VMware-ovftool-4.1.0-2459827-lin.x86_64.bundle' on Ubuntu 14


 

ovftool VM->ova/f fails with SHA1 digest of file . . . disk.iso does not match manifest"

$
0
0

I'm trying to create an OVA file from an installed VM.  If I try creating it with ovftool 3.5, it downloads everything completely then gives me the following error:

SHA1 digest of file https://172.31.68.10:443/ha-nfc/52cca89a-6cde-c7a7-0810-25ff2197d3d6/disk-1.iso does not match manifest
and then deletes the file(s) it generated.

 

I am using compress=0 and --noImageFiles so i don't get the install iso.

 

If I manually go into Edit Settings and remove the cdrom, then 3.5 creates the ova correctly.

 

If I use ovftool 2.0, it succeeds even without manually removing the cdrom iso.

 

I've seen posts where users get the same error I do when they are going ova/f to vm and the answer is to delete the manifest.   Since all of the files are deleted after the error message, I don't have the option to delete the locally created manifest.

 

Is there a way to keep the files around even after a manifest error?

 

Does anyone know why ovftool 3.5 would fail in this case and 2.0 would word?  Has there been some deprecation between the two of them?

 

Thanks,
Mike


OVFTool 2.1.0 with Active Directory Question (vSphere crashes)

$
0
0

When I try to export one of my VMs using File/Export/Export OVF Template....it crashes vSphere with a nice assertion window.

 

To see what the cause of this is, I decided to try using ovftool 2.1.0 on Linux to export the VM instead, to see what happens (like does it crash ovftool?).

 

I got stuck though because when I log into the vCenter I have to specify a domain\username format and I can't figure out how to pass this to ovftool in a way that doesn't cause errors.

 

For example, I tried things like this:

 

# ovftool  vi://myvcenter.domain.com/DataCenterName/vm/

Username:  MYDOMAIN\Administrator

Password: whatever

 

Didn't work, I don't think it likes the backslash.

 

So I tried stuffing it in a variable:

 

# DF="MYDOMAIN\Administrator"

# ovftool  vi://"$DF"@myvcenter.domain.com/DataCenterName/vm/

 

Error: Curl error: Couldn't connect to server

 

Anyone have any ideas?

 

Thanks,

CJ

Signed OVA package verification with ovftool failed

$
0
0

Greetings!

I'm currently trying to sign created OVA package with trusted certificate from Thawte.

This cert is valid (till 2013) and could be easily verified with openssl (`openssl verify sign.cert`) or with Windows tools.

Signing works as follows and it is okay:

ovftool --sourceType=vmx --targetType=ova --privateKey=sign.pem package.vmx package.ova

 

But when I try to check it with ovftool (`ovftool package.ova`) it shows:

Error: Verification of package.cert failed

 

Also verification of package.cert itself with openssl is also fine.

Can anybody help me on what could cause such problem?

 

Thanks in advance.

Getting Password string in ovf property

$
0
0

Hello,

I been working on the setting properties in the ovf template and this is working fine so far.

Basically, I add property in the product section under property tag and read its value during deployment time using

/usr/sbin/vmtoolsd --cmd 'info-get guestinfo.ovfEnv'

 

<ProductSection ovf:class="com.palm.product" ovf:instance="1">

     <Info>info section</Info>
     <Product>LimeLite</Product>
     <Vendor>Palm</Vendor>

     <Property ovf:key="UserName" ovf:type="string" ovf:userConfigurable="true" ovf:value="Admin" ovf:qualifiers="MinLen(0),MaxLen(65535)">
          <Label>UserName</Label>
          <Description>Creates an user account with the Name provided</Description>
     </Property>

</ProductSection>

 

Now, I need get password for the user account which we create during deployment. I looked into property data types and I couldn't figure out

the password type that masks the password entered in the dailog during deployment time.

 

Is password functionality avaialbe in the ovf template already ? If yes, please point me to the location from where I can make use of this.

 

The property type which are avaialbe in the settings is:

String, StringChoice, Integer, Real, Boolean, External IP Address, vApp IP Address.

 

I coudn't find password type in here.

OVFTOOL failing with SSL error

$
0
0

Hello

I'm trying to export a VM to OVF format but it's failing with SSL error.

C:\Program Files\VMware\VMware OVF Tool>ovftool.exe --noSSLVerify=true --compres

s vi://username:password@localhost:80/Test/143.219.176.247/HOCMPTWS01-Template y:\

margg\VM

Error: cURL error: SSL connect error

Completed with errors

 

I'm not using any special characters.

Has anyone seen this error? Any suggestions?

 

Using OVFTool 4.1

ESX 3.5

VCenter 2.5

Ovftool modify network target ovf

$
0
0

Hello everyone,

 

I'm trying to get "ovftool" to modify the resulting ovf (starting from a vmx) with a few parameters like:

  • --net:'nat=VM Network'
  • --memorySize:vm1=2048
  • etc.

but none of them is working. The resulting ovf is every time exactly the same. Here below the probe of the ova file:

 

Header 1

ovftool ubuntu.ova

OVF version:   1.0

VirtualApp:    false

Name:          ubuntu

 

 

Download Size:  801.99 MB

 

 

Deployment Sizes:

  Flat disks:   16.00 GB

  Sparse disks: 1.86 GB

 

 

Networks:

  Name:        nat

  Description: The nat network

 

 

Virtual Machines:

  Name:               ubuntu

  Operating System:   ubuntu64guest

  Virtual Hardware:

    Families:         vmx-09

    Number of CPUs:   1

    Cores per socket: 1

    Memory:           512.00 MB

 

 

    Disks:

      Index:          0

      Instance ID:    6

      Capacity:       16.00 GB

      Disk Types:     SCSI-lsilogic

 

 

    NICs:

      Adapter Type:   E1000

      Connection:     nat

 

As I said the resulting ovf is always the same. I've tried with different examples from the official "ovftool" doc but nothing seems to work. I've even tried to look in the logs but no errors are displayed and no information about my argument / properties are printed.

 

Could someone please let me know if I'm doing something wrong or is "ovftool" not made for that?

 

Best regards,

 

Vincenzo

Viewing all 34499 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>