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

Unsupported element 'Property' from ovftool and ESXi server

$
0
0

I'm trying to use the ovftool to import a OVA file into a ESXi server.  However I get the following error

 

Error: OVF Package is not supported by target:
- Line 118: Unsupported element 'Property'
Completed with errors

 

The related lines in the OVF file are:

    <ProductSection ovf:class="vami" ovf:instance="*******">
      <Info>Information about the installed software</Info>
      <Category>Networking Properties</Category>
118-->      <Property ovf:key="gateway" ovf:type="string" ovf:userConfigurable="true">
        <Label>Default Gateway</Label>
        <Description>The default gateway address for this VM. Leave blank if DHCP is desired.</Description>
      </Property>
      <Property ovf:key="DNS" ovf:type="string" ovf:userConfigurable="true">

 

Based on some initial investigation I have done I beleive this is because the ProductSection is defaulting to required="true" which forces ESXi to use these fields, however ESXi doesn't seem to support this and it errors out as shown above.

 

The OVA file was generated using ovftoolto export VM in a vcenter instance.  This OVA file imports fine into vcenter, but not ESXi

 

Is there anyway to configure ovftoolwhen run against vcenter to generate required="false" in the  ProductSection elements?

    <ProductSection ovf:class="vami" ovf:instance="*******" ovf:required="false">
   
Or some otherway to get ovftoolto export a VM from vcenter as an OVA that will import into ESXi?

 

ovftool 2.1, ESXi 4.1, vCenter 4.1


Deploy OVA "Transfer Failed"

$
0
0

I have an OVA that have built and deployed via VIC many times successfully.  I am now trying to automate the deployment via the OVFTOOL.  However, I keep seeing this "transfer failed" message.  Is there some way to enable a more verbose output?

 

Here is my current command/output:

 

ovftool --acceptAllEulas --datastore=dsRTPPOC1 --network="VM Network" z:\Jazzsm\IBM_Jazz_for_Service_Management___v1_1___Sprint_23.ova vi://admin:password@rtpvcpoc1.tivlab.raleigh.ibm.com/ZoneM/host/ZoneM/rtpesxpoc1.tivlab.raleigh.ibm.com/
Opening OVA source: z:\Jazzsm\IBM_Jazz_for_Service_Management___v1_1___Sprint_23.ova
Opening VI target: vi://admin@rtpvcpoc1.tivlab.raleigh.ibm.com:443/ZoneM/host/ZoneM/rtpesxpoc1.tivlab.raleigh.ibm.com/
Warning:
- The specified operating system identifier 'RedHat Enterprise Linux Server 6.2' (id: 80) is not supported on the selected host. It will be mapped to the following OS identifier: 'Other Linux (64-bit)'.
Deploying to VI: vi://labadmin@rtpvcpoc1.tivlab.raleigh.ibm.com:443/ZoneM/host/ZoneM/rtpesxpoc1.tivlab.raleigh.ibm.com/
Transfer Failed
Error: System error: (Unknown exception)
Completed with errors

Problems trying to convert a .iso to .ova file

$
0
0

I have a .iso image from which I want to create a .ova , But everytime I run into a problem

 

Error: Curl error: Couldn't connect to server

Completed with errors

 

Here is the command I used,

 

ovftool vi://user:master/@14.23.12.34:443/rt4/www/html/imgs/qweTER7.3/.tyRani/NEWCFT/CFT-NEW-5.23.23.iso /rt4/www/html/tmp_ova/CFT-NEW-5.23.23.ova

 

Not sure whats wrong with this command, I don't have special character in my password or username

 

please note that 14.23.12.34 is a linux machine and both source and target are in same machine and Im executing ovftool command in same linux machine.

 

Thank you

Mac

OVFs from virtualbox

$
0
0

Hey

 

This is a short writeup on what is needed to import OVF produced with VirtualBox 2.2.4 (and 2.2.2)

 

 

 

You should tell VirtualBox to export in 0.9 format.

 

 

 

By default it produce OVFs for vmx-06 so if you want to import this OVF into VMware vSphere 4 with esx 3.5.x and esx 4.0 hosts

 

 

 

you will have to change this to either :

 

 

 

&lt;vssd:VirtualSystemType&gt;vmx-07&lt;/vssd:VirtualSystemType&gt; (for a esx 4.0)

 

 

 

or

 

 

 

&lt;vssd:VirtualSystemType&gt;vmx-04&lt;/vssd:VirtualSystemType&gt; (for esx 3.5.x and 4.0 hosts)

 

 

 

If you are using VMware OVF tool to convert it to a vmx for workstation you dont have to change this.

 

 

 

 

 

 

 

 

 

Needed changes to import the OVF with VMware OVF tool.

 

 

 

Change soundcard to non-required (esx boxes do not support virtual soundcards and  the hostresource value is not in the DMTF std for rasd elements)

 

 

 

Change the rasd item to:

 

 

 

&lt;Item ovf:required="false"&gt;

&lt;rasd:Caption&gt;sound&lt;/rasd:Caption&gt;

&lt;rasd:Description&gt;Sound Card&lt;/rasd:Description&gt;

&lt;rasd:InstanceId&gt;7&lt;/rasd:InstanceId&gt;

&lt;rasd:ResourceType&gt;35&lt;/rasd:ResourceType&gt;

&lt;rasd:ResourceSubType&gt;ensoniq1371&lt;/rasd:ResourceSubType&gt;

&lt;rasd:AutomaticAllocation&gt;false&lt;/rasd:AutomaticAllocation&gt;

&lt;rasd:AddressOnParent&gt;3&lt;/rasd:AddressOnParent&gt;

&lt;/Item&gt;

 

 

 

of if you really need the soundcard to:

 

 

 

&lt;Item ovf:required="true"&gt;

&lt;rasd:Caption&gt;sound&lt;/rasd:Caption&gt;

&lt;rasd:Description&gt;Sound Card&lt;/rasd:Description&gt;

&lt;rasd:InstanceId&gt;7&lt;/rasd:InstanceId&gt;

&lt;rasd:ResourceType&gt;1&lt;/rasd:ResourceType&gt;

&lt;rasd:ResourceSubType&gt;vmware.ensoniq1371&lt;/rasd:ResourceSubType&gt;

&lt;rasd:AutomaticAllocation&gt;false&lt;/rasd:AutomaticAllocation&gt;

&lt;rasd:AddressOnParent&gt;3&lt;/rasd:AddressOnParent&gt;

&lt;/Item&gt;

 

 

 

 

 

 

 

 

 

(Skip the next if you are converting to a vmx file (used for VMware workstation)) 

 

 

 

Disks on IDE Controllers are only supported by newer VMware products so it will be a good idea to add the following to the OVF

 

 

 

&lt;Item&gt;

&lt;rasd:Description&gt;SCSI Controller&lt;/rasd:Description&gt;

&lt;rasd:InstanceId&gt;10&lt;/rasd:InstanceId&gt;

&lt;rasd:ResourceType&gt;6&lt;/rasd:ResourceType&gt;

&lt;rasd:ResourceSubType&gt;lsilogic&lt;/rasd:ResourceSubType&gt;

&lt;rasd:Address&gt;1&lt;/rasd:Address&gt;

&lt;rasd:BusNumber&gt;1&lt;/rasd:BusNumber&gt;

&lt;/Item&gt;

 

 

 

and change the disk to point to this by changing the parent in the disk rasd element e.g.

 

 

 

&lt;Item&gt;

&lt;rasd:Caption&gt;disk1&lt;/rasd:Caption&gt;

&lt;rasd:Description&gt;Disk Image&lt;/rasd:Description&gt;

&lt;rasd:InstanceId&gt;8&lt;/rasd:InstanceId&gt;

&lt;rasd:ResourceType&gt;17&lt;/rasd:ResourceType&gt;

&lt;rasd:HostResource&gt;/disk/vmdisk1&lt;/rasd:HostResource&gt;

&lt;rasd:Parent&gt;10&lt;/rasd:Parent&gt;

&lt;rasd:AddressOnParent&gt;0&lt;/rasd:AddressOnParent&gt;

&lt;/Item&gt;

 

 

 

 

 

 

 

 

 

Will the VM work after the changes? That depends if your vm have driver for the scsi controller etc but atleast you can import it.

 

 

 

 

 

 

 

 

 

Feel free to comment

Invalid value '1.0' for attribute 'version' on element 'Envelope'

$
0
0

I have an OVF from VirtualBox that I want to import into VMware Workstation 6.5.2 (linux). The first thing I noticed was that there is no 'Import' option in the File menu of VMware 6.5.2 for linux. So, I ran the ovf file through ovftool. ovftool reported an error when converting:

 

~/tmp] ovftool foo.ovf ~/tmp/convert/foo.vmx

Opening OVF source: foo.ovf

Warning: No manifest file

Opening VMX target: foo.vmx

Error:

- Line 2: Invalid value '1.0' for attribute 'version' on element 'Envelope'.

~/tmp]

 

This particular OVF was created with VirtualBox 2.2.4. Both support ovf 1.0, right? Output of line 2 ...

 

~/tmp] sed -n 2p foo.ovf

 

 

Ideas?

How do I keep vmxnet3 NIC type when exporting to OVF/OVA

$
0
0

Hi,

I exported a VM from my ESXi 4.0.0 server using ovftool for Windows but the type of NIC seems to have been changed as part of the conversion. It was VMXNET3 on the host but ends up being VMXNET in the OVF.

 

The export was done as follows..

 ovftool --eula@=c:\MyEULA --powerOffSource vi://root:password@esxi4_host/MyVapp d:\dev\vapps\ 

 

Snippet from the original .vmx

ethernet0.virtualDev = "vmxnet3"

 

Snippet from the .ovf that was generated

   <VirtualHardwareSection>
...snip..      <Item>        <rasd:AddressOnParent>7</rasd:AddressOnParent>        <rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>        <rasd:Connection>VM Network</rasd:Connection>        <rasd:Description>VmxNet ethernet adapter on "VM Network"</rasd:Description>        <rasd:ElementName>ethernet0</rasd:ElementName>        <rasd:InstanceID>6</rasd:InstanceID>        <rasd:ResourceSubType>VmxNet</rasd:ResourceSubType>        <rasd:ResourceType>10</rasd:ResourceType>
...snip..    </VirtualHardwareSection>

 

Is this a known issue ? Any workarounds ?

ovftool how to use the parameter targetSessionTicket

$
0
0

Hi,

 

In the documentation of ovftool (2.0.1) there is a parameter targetSessionTicket to avoid to give again the user credential to connect to the vcenter or esx.

I'm using PowerCLI to open a session and get a new session ticket to the user

 

When I'm trying it, there is the error : "Error: The session ticket is invalid."

 

"C:\Program Files\VMware\VMware OVF Tool\ovftool.exe" "--I:targetSessionTicket=VCT-AB8152EC-EF3B-44F7-B212-721682E061EC" --datastore="SAN" c:\temp\ovf\test1\test1.ovf vi://vcenter4/Datacenter/host/Cluster/esx1

 

Any idea or sample to use this parameter that can be share will be very usefull

 

Regards

 

Rémi

ovftool import VM slow

$
0
0

Hi,

 

Am I the only one that gets about 10Mbps (Megabits/second), or about 1MB/sec (megabyte/sec) throughput when using the ovftool to import a VM on a 1Gbps LAN?  I would assume there is some type of throttle on the service console network interface, even though I haven't found any evidence from the forums that indicates this is true.  It's just a little strange that we're getting "exactly" 10Mbps.  This happens on multiple vCenter servers and ESX clusters so I'm assuming it's a throttle.  From the one machine I run the ovftool from, I can import to 2 different clusters and get 20Mbps (10Mbps on each).

 

This is on vCenter 4.0 Update 2 and ESX 4.0 Update 2 (not ESXi) as well as 4.1 versions of these.

 

Any ideas?

 

Thanks!

 

Eric


ovftool.cfg

$
0
0

Looking for some sample "ovftool.cfg" and/or "*.ovftool" files.  Any body point me in right direction? "ovftool --help config" not giving me too much information.

 

Thanks - Hogan..

Create .ovf from unregistered vmx

$
0
0

Hello,

 

Im using ghettoVCB to backup my running VMs on same datastore. But when i wanna copy backed up VM, even if its in thin format, to my desktop running Win 7, size of file is same as size of virtual disk (backing up 2GB VM, used is 1,2GB, copied file is 2GB).

 

So i used Converter for exporting VM from VI to .ovf to my desktop. And if something goes wrong, ill import it back. But you cannt export running VM.

 

So i wanna used backed up unregistered copy of VM created by ghettoVCB to convert it to .ovf using OVFTools.

 

Is it somehow possible? When i try convert it with direct path to backup VM vmx, error: Error: " Locator does not refer to an object vi://root@IP/backups/wordpress/ " appears. Thanks for help.

 

Im running ESXi 4.1 update1

VMware API to create OVF format

$
0
0

Hi

I am looking at VMware API to create OVF image format.

ovftool frequently encounters Unexpected end of stream

$
0
0

Hello

I've looked around in the forums, but couldn't find a resolution to this problem. I'm using ovftool (the latest version - 2.1.0) to deploy an ova consisting of 3 VMs to an ESXi 4.1 server, via a vcenter. I see frequent stalls in the data transfer from the vcenter to the server (did a packet capture), and ovftool frequently (but not always) gives up at some random point through the transfer, complaining that it encountered an unexpected end of stream.

 

Here's the commandline I'm using:

 

ovftool --name=foo --X:logToConsole=True --X:logLevel="verbose" --diskMode=thin --net:"VM Network"="VM Network" --vmFolder=bar --skipManifestCheck myova.ova vi://user:pass@localhost/my_dc/host/my_host/Resources/my_pool

 

Here's a log snippet if it might help:

 

2012-09-11T07:13:01.767-07:00 [07668 verbose 'Default'] [ViConnection] Using vim API version: 5.0
2012-09-11T07:13:01.891-07:00 [07384 warning 'Libs'] Encountered other certificate error: 27
2012-09-11T07:13:01.891-07:00 [07384 warning 'Libs'] Encountered other certificate error: 27
2012-09-11T07:13:01.938-07:00 [07668 verbose 'HttpConnectionPool'] HttpConnectionPoolImpl created. maxPoolConnections = 1; idleTimeout = 900000000; maxOpenConnections = 1; maxConnectionAge = 0
2012-09-11T07:13:01.954-07:00 [07668 verbose 'Default'] Keeping VI session alive
Opening VI target: vi://user:pass@localhost:443/my_dc/host/my_host/Resources/my_pool
2012-09-11T07:13:02.016-07:00 [07384 warning 'Libs'] Encountered other certificate error: 27
2012-09-11T07:13:02.016-07:00 [07384 warning 'Libs'] Encountered other certificate error: 27
Deploying to VI: vi://user:pass@localhost:443/my_dc/host/my_host/Resources/my_pool
2012-09-11T07:13:10.471-07:00 [07668 verbose 'Default'] Using file size as progress measure
Disk progress: 02012-09-11T07:13:10.518-07:00 [07668 verbose 'Default'] Opening disk target /nut4/client/VirtualLsiLogicController0:0
2012-09-11T07:13:10.534-07:00 [07384 verbose 'Default'] CURL: => Send header POST /nfc/52d3abc1-5c67-3e19-1db6-88303c597203/disk-0.vmdk HTTP/1.1
--> User-Agent: VMware-client/4.0.0 (ovfTool; libcurl)
--> Host: 1.1.1.2
--> Accept: */*
--> Transfer-Encoding: chunked
--> Content-Type: application/x-vnd.vmware-streamVmdk
-->
-->
2012-09-11T07:13:35.010-07:00 [07384 verbose 'Default'] Curl_perform error code 55 (Failed sending data to the peer)
Disk Transfer Failed                      
Error: Internal error: Unexpected end of stream

 

Interestingly, if I use the vsphere client to deploy the ova, it goes through quicker and I haven't seen it fail (I need to use ovftool to automate deployment).

 

Any help would be greatly appreciated.

 

Thanks

No local configuration options in .ovftool

$
0
0

Hello:

 

I am working in a Windows environment with ovftool 3.01.

 

When running the ovftool in a directory that contains an ovf and a .ovftool file, the ovftool does not seem to pick up the local configuration file.

 

> ovftool --help config

 

This will show as "Currently no local configuration options in .ovftool"

 

I have tried a number of permutations: ".ovftool", "<name>.ovftool", even "ovftool.cfg" on the off chance it is looking for the global name.

 

But none of these options work.

 

When I move the file to C:\Documents and Settings\$USERNAME\VMware\ovftool.cfg, which makes it global, it works just fine. So, I know the file is working.

 

But I am managing dozens of unique OVAs, and so having the local configuration option would be most helpful.

 

Am I misnaming the local config? Or is this a known bug or linux-only feature?

 

Thanks,

 

Andrew

OVFtool cannot authenticate to vcloud

$
0
0

I am atempting to connect to a vcloud instance to download an OVF and no matter what I cannot authenticate. Even if I manually input the userid and password it continues to prompt for them. I have creayed a userid and password specifically for this task local to the vcloud and the password and username don't conatin ANY special characters.

 

Any ideas?

ovftool terminating before starting the deployment of the ova

$
0
0

Hi Guys,

 

I want to get some feed back about the below stack trace after setting the --X:logfile and loglevel

 

 

2013-04-29T04:47:37.841-07:00 [02188 verbose 'Default'] [SSL_DB] Using C:\Documents and Settings\Default User\Application Data\VMware\ovftool_SSLDB as SSL DB
2013-04-29T04:47:37.856-07:00 [02188 verbose 'Default'] Subscribing to signal: 2 (SIGINT)
2013-04-29T04:47:37.856-07:00 [02188 verbose 'Default'] Subscribing to signal: 4 (SIGILL)
2013-04-29T04:47:37.856-07:00 [02188 verbose 'Default'] Subscribing to signal: 22 (SIGABRT)
2013-04-29T04:47:37.856-07:00 [02188 verbose 'Default'] Subscribing to signal: 8 (SIGFPE)
2013-04-29T04:47:37.856-07:00 [02188 verbose 'Default'] Subscribing to signal: 15 (SIGTERM)
2013-04-29T04:47:37.856-07:00 [02188 verbose 'Default'] OvfTool Version: VMware ovftool 3.0.1 (build-801290)
2013-04-29T04:47:37.856-07:00 [02188 verbose 'Default'] Using home directory: C:\Documents and Settings\Default User\Application Data\VMware\ovftool.cfg
2013-04-29T04:47:37.872-07:00 [02188 verbose 'Default'] OvfTool Environment:
--> /X:httpTimeout = "0"
--> /X:imageReadSize = "262144"
--> /X:logFile = "c:\ovftool.log"
--> /X:logLevel = "trivia"
--> /X:maxNumberOfTermSignals = "5"
--> /X:maxRedirects = "256"
--> /X:maximalDeltaConfSize = "8"
--> /X:maximalDeltaTreeSize = "6"
--> /X:progressSmoothing = "60"
--> /X:useMacNaming = "false"
--> /X:vCloudEnableGuestCustomization = "false"
--> /X:vCloudKeepTemplate = "true"
--> /X:vCloudTimeout = "3600"
--> /X:vimSessionTimeout = "600"
--> /authdPortSource = "902"
--> /authdPortTarget = "902"
--> /datastore = "cisvlcloud na2"
--> /diskMode = "thin"
--> /fencedMode = "bridged"
--> /name = "dev"
--> /net/eth0 = "VM Network"
--> /noSSLVerify = "true"
--> /powerOn = "true"
--> /prgPath = "C:\Progra~1\VMware\VMware_OVF_Tool"
--> /source = "z:\on\dev.ova"
--> /target = "vi://admin:password@dns.address.com"
--> /vCloudTemplate = "false"
-->
2013-04-29T04:47:37.888-07:00 [02188 verbose 'Default'] Done initializing libs
2013-04-29T04:47:37.888-07:00 [02188 verbose 'Default'] Determining source
2013-04-29T04:47:37.888-07:00 [02188 verbose 'Default'] Determining target
2013-04-29T04:47:37.888-07:00 [02188 verbose 'Default'] Backtrace:
--> backtrace[00] rip 00bae353
--> backtrace[01] rip 00ab00be
--> backtrace[02] rip 00ab1311
--> backtrace[03] rip 00a724fa
--> backtrace[04] rip 0040ea83
--> backtrace[05] rip 004c19c0
--> backtrace[06] rip 00421493
--> backtrace[07] rip 00421af8
--> backtrace[08] rip 00442dd9
--> backtrace[09] rip 0040e54a
--> backtrace[10] rip 00419ad8
--> backtrace[11] rip 0041a9c4
--> backtrace[12] rip 00628faf
--> backtrace[13] rip 77e523dd
-->

 

and then if fails.  I'm not sure why this is happening from my another machine.  I have the same thing running fine from my Win 7 machine.

 

Any help on why this is happening?

 

-Mahesh


How to add addition Hard disk space for the created VM in ESXi server using Ovftool command

$
0
0

Can anyone help me out on "how to add additional Hard Disk and Ethernet Adapter for VM created in an ESXi server using ovftool.exe commandline.

ovftool: How to override disk naming of ovftool

$
0
0

Hi,

 

Suppose I have a VM "vm1" with 3 disks "[datastore2] k1/k1.vmdk",   "[datastore2] k1/k1new.vmdk"  and "[datastore2] k1/k1up.vmdk".

 

I can't identify the correct disk, If I import this VM to my local system using "ovftool".

 

Output of "ovftool" command : ovftool vi://root:vmware123@192.168.1.26?moref=vim.VirtualMachine:109 .

k1-disk1.vmdk

k1-disk2.vmdk

k1-disk3.vmdk

k1.mf

k1.ovf

 

See, "ovftool" renamed the disks to "k1-disk1.vmdk", "k1-disk2.vmdk" and "k1-disk1.vmdk".

 

Have any way to keep the name of the disk ??

Have any way to specify the name for the disk in the "ovftool"  ???

 

Thanks,

How to use ovftool command line utility Video Tutorial

Convert ESX4(i) OVF to work with ESX3.5

$
0
0

I have downloaded and installed the OVF tool but when i try and copy/deploy the OVF to the server i get a message below.

Error: Failed to open OVF descriptor

Completed with errors

 

Any help you guys can give would be great. thanks

Create an OVF with no disks

$
0
0

Hi everyone,

 

I'm totally new to this forum. I've already done my research about the question I'm going to ask and unfortunately couln't find any valid answers.

 

So the question is: would it be possible to create an OVF with no disks or disks with size equal to 0?

 

Thank you for your help.

Viewing all 34499 articles
Browse latest View live


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