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

How to specify which datastore to use with OVFtool

$
0
0

 

This is driving me crazy! How do you specify which datastore to use when there are multiple?

 

 

I ran exactly the same command on a box that had one datastore and it worked fine (as expected). It created the VM folder in the root of the DS and then pulled across the VM from the OVF. However with multiple it just says no target datstore specified. I've tried a million combinations of ?-ds= with square brackets, without. Sometimes it says not found in inventory. I guess it's looking for a folder. But surely this can't be that hard?

 

 

C:\Program Files\VMware\VMware OVF Tool>ovftool P:\Downloads\PanoManagerVM-2.8.0

-ovf\panomanager.ovf "vi://root@192.168.1.5

Opening OVF source: P:\Downloads\PanoManagerVM-2.8.0-ovf\panomanager.ovf

Warning: No manifest file

Please enter login information for target vi://192.168.1.5/

Username: root

Password: *********

Opening VI target: vi://root@192.168.1.5/

Error: No target datastore specified

Datastores found on target:

  SAN Storage

  storage1

 

 


Ovftool fails in converting an ova file into vmx

$
0
0

OVFTool fails with manifest issue of ova format, enclosed the command used and the output

 

ovftool C:\DevVM\Appliance\TestDev.ova C:\DevVM\TestDev\TestDev.vmx

 

Opening OVA source: C:\DevVM\Appliance\TestDev.ova

Opening VMX target: C:\DevVM\TestDev\TestDev.vmx

Writing VMX file: C:\DevVM\TestDev\TstDev.vmx

Disk Transfer Failed

Error: SHA1 digest of file TestDev-disk1.vmdk does not match manifest

 

I am using VMware ovftool 2.0.1 (build-260188). Any help and/or pointers appreciated. Thanks.

Create OVF with flat vmdk

$
0
0

Hey,

 

I'm trying to build a utility that builds an OVF, given a flat.vmdk and a .vmdk with the descriptor. But I've found that only streamOptimized disks will export properly, however they only take embedded descriptors. I'm using VSphere 4 to deploy an ovf.

 

In the ovf, I have the disk format to be ovf:format="http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized". This works perfectly fine until VSphere gets to reading the vmdk file where it gives the error message "Error uploading file C:\path\to\scsi0_0.vmdk to server. I/O exception while reading VMDK header", where the header is,

 

# Disk DescriptorFile
version=1
CID=fffffffe
parentCID=ffffffff
createType=streamOptimized
# Extend description
RW 16777216 FLAT "scsi0_0-flat.vmdk"
# The Disk Data Base
#DDB
ddb.virtualHWVersion = "7"
ddb.adapterType = "lsilogic"
ddb.geometry.heads = "64"
ddb.geometry.sectors = "32"
ddb.geometry.cylinders = "8192"

 

 

I guess my question is, does deploying ovfs support any other format other than streamOptimized where I can use a flat.vmdk and a .vmdk?

 

Thank you,

Kyle

OVF import trouble

$
0
0

I am attempting to perform and document a roundtrip Export and Import using ovftool.

 

I performed the export as follows:


bowser:/tmp/ovfTool # mount 10.68.x.xx:/export/images /mnt/ovfExport

bowser:/tmp/ovfTool # mkdir /mnt/ovfExport/ovfs

bowser:/tmp/ovfTool # mkdir /mnt/ovfExport/ovfs/wario-sles11-sp1-x8664

bowser:/tmp/ovfTool # ovftool vi://bluoma:******@helios.blue.roguewave.com/Corvallis/vm/Build\ Server/sles11-sp1-x8664/wario /mnt/ovfExport/ovfs/wario-sles11-sp1-x8664/wario.ovf

Opening VI source: vi://bluoma@helios.blue.roguewave.com:443/Corvallis/vm/Build%20Server/sles11-sp1-x8664/wario
Opening OVF target: /mnt/ovfExport/ovfs/wario-sles11-sp1-x8664/wario.ovf
Writing OVF package: /mnt/ovfExport/ovfs/wario-sles11-sp1-x8664/wario.ovf
Disk Transfer Completed

Completed successfully

 

 

Now I am attempting to import/deploy the ovf:

 

bowser:/tmp/ovfTool # ovftool --datastore=skillet-ds2 /mnt/ovfExport/ovfs/wario-sles11-sp1-x8664/wario.ovf vi://bluoma:******@helios.blue.roguewave.com/Corvallis/host/R\&D/despina.cvo.roguewave.com
Opening OVF source: /mnt/ovfExport/ovfs/wario-sles11-sp1-x8664/wario.ovf
The manifest validates
Opening VI target: vi://bluoma@helios.blue.roguewave.com:443/Corvallis/host/R&D/despina.cvo.roguewave.com
Deploying to VI: vi://bluoma@helios.blue.roguewave.com:443/Corvallis/host/R&D/despina.cvo.roguewave.com
Disk Transfer Failed
Error: SHA1 digest of file wario-disk1.vmdk does not match manifest
Completed with errors

 

Any ideas why the SHA1 digest did not verify?

 

vCenter:   4.1.0

ESXi host:  4.1.0

 

Thanks,

Bryan

Error in uploading to vCloud using ovftool

$
0
0

Hi,

 

     I try to upload a physical server image to vcloud but it keep returning this error "Invalid response from Server"

 

 

>ovftool -o --net:"bridged=myNetwork" --ipAllocationPolicy=transientPolicy winphysical.ovf "vcloud://username:password@s1.myvcloud.net/?org=MyOrg&vapp=myTest&vdc=MyVDC&catalog=MyCatalog"
Opening OVF source: winphysical.ovf
The manifest validates
Opening vCloud target: vcloud://username@s1.myvcloud.net:443/
Error: Invalid response from server
Completed with errors

 

The ovftool version is 3.01 and the vcloud is 1.5.

I have also attahed the ovf file.

 

 

Thank you.
Regards,

ET Goh

Use OVFTool to Convert OVA File Without A Domain

$
0
0

OVFTool keeps failing when I try to convert an OVA image to vmdk, since I don't have a domain on our network, a la vi://hostname.domain.

 

What should I do?

 

It's a Mitel Linux Image.

Error converting OVF to VMX -- virtualbox-3?

$
0
0

I am trying to convert a .ovf to a .vmx using the ovftool utility in terminal on OSX 10.6.8.

 

USING the --lax command, the result I get is as follows:

 

 

Opening OVF source: /Users/Andrew/Desktop/CS50/appliance50-17/appliance50.ovf
Opening VMX target: /Users/Andrew/Desktop/CS50/appliance50-17/appliance50.vmx
Warning:
- Line 39: Unsupported hardware family 'virtualbox-3'.
- Line 107: OVF hardware element 'ResourceType' with instance ID '10': No support for the virtual hardware device type '35'.
- Line 63: OVF hardware element 'ResourceType' with instance ID '5': No support for the virtual hardware device type '20'.
- Missing hardware element 'CPU' with RASD type '3'.
- Line 127: Duplicate element 'AddressOnParent'.
Writing VMX file: /Users/Andrew/Desktop/CS50/appliance50-17.vmwarevm/appliance50.vmx
Transfer Failed                      
Error: Capacity mismatch for disk /Users/Andrew/Desktop/CS50/appliance50-17.vmwarevm//appliance50-disk1.vmdk
Deleting directory tree below: /Users/Andrew/Desktop/CS50/appliance50-17.vmwarevm
Warning:
- No manifest file found.
Completed with errors

 

 

Any suggestions on how to fix this?  It seems to be a problem with ovftool itself?

Welcome OVF Tool users !

$
0
0

We are excited about this new community and welcome all to participate and discuss OVF Tool topics.


OVF Tool memory range error

$
0
0

 

I'm using the ovf tool to convert a virtual appliance to virtual machine format and getting a memory size limitation error based on the OVF source.  The source ovf file specifies 4GB of memory for guest OS:

 

 

Error:

- Virtual machine has 4,096 megabytes of memory, which is outside the range of 4 to 3,600 megabytes supported on the host.  This may be a general limitation of the host software, or specific to the guest OS selected for the virtual machine.

 

 

The work around is to edit the source ovf file and decrease the RAM size to  3 GB and conversion works fine.  But I'm curious why this limitation is occuring.  Is 3,600 MB the maximum virtual memory size supported byVMware workstation or server?

 

 

 

 

 

 

 

 

Task was canceled by user - ovf package and vShpere

$
0
0

I'm having some trouble getting the vSphere Client to import my OVF's. When using the vSphere Client, I successfully walk through the wizard to "Deploy OVF Template" then get the following error:

 

"Failed to deploy OVF package: The remote server returned an error: (500) Internal Server Error"

 

 

Sometimes the error is a timeout error but this is very infrequent (I failed to capture the output).

 

 

In the Event log I see this error roughly 2 minutes after the import:

 

 

Deploy OVF template

MyVA

The task was

canceled by

a user.

ESXUSR

virtcent-dev.my.com

10/20/2009 12:13:09 PM

10/20/2009 12:13:09 PM

10/20/2009 12:15:37 PM

 

 

 

I can convert my OVF back to VMX format.

 

 

 

VMware ovftool 1.0.0 (build-166674). The command I'm executing is simply: ovftool "xxxx.vmx" "yyy.ovf"

 

 

 

It looks like a possible timeout issue on the cliet side, but I've reset the timeout (Edit->Client Settings->Client-Server command timeout = 600).  This didn't seem to have any impact on the problem.

 

 

Thanks for any help.

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 download problem

$
0
0

 

Having problems installing  VMware-ovftool-2.0.1-260188-lin.i386.sh on a linux host.

 

 

When I try to install I get

 

VMware OVF Tool 2.0 installer script

Copyright VMware 2010

.........extracting archive........

 

Checksum validation failed for archive.

(If you use FTP, make sure to set it to binary mode)

The MD5 checksum is d14f14ab14f994131cf0d2fad2b318e3 not ff672047cbf2caf725bc1d295c7bbdc0

 

 

Am I downloading the wrong file?

 

 

Not able to deploy a VM from .ova format using ovf tool

$
0
0

I am trying to deploy a VM into ESXi 4.1  from .ova template using

ovftool.  My ESXi is having two datastores:- datastore1 and datastore-2.

 

This is the syntax I am using:-

 

ovftool.exe --name=test -nw="VM Network" -ds="datastore1" CentOS.ova vi://10.102.143.30

 

It is shows the following messages:-

 

Opening OVA source: CentOS.ova

Please enter login information for target vi://10.102.143.30/

 

After entering the login information nothing happens. It returned me the prompt. It also doesn't print any error message.

 

Below is my ova file information obtained by probing:-

 

 

Opening OVA source: CentOS.ova

 

OVF version:   1.0

Name:          CentOS

 

Download Size:     1.72 GB

 

Deployment Sizes:

+  Flat disks:     30.00 GB+

+  Sparse disks:    4.69 GB+

 

Networks:

+  Name:        VM Network+

+  Description: The VM Network network+

 

Virtual Hardware:

+  Family:       vmx-07+

+  Disk Types:   SCSI-lsilogic+

 

Warning: No manifest file

Completed successfully

ovftool -- mapping multiple nics with same network name to different network names

$
0
0

Is there a way to map network devices that are both associated with "VM Network" in the ova to different networks on the target?  The ova contains only "VM Network", but I would like to put one interface on "NET_A" and one on "NET_B".

OVFTool cannot set property successfully

$
0
0

I want to set some properties to ovf files.

 

I use ovftool as bellow:

 

ovftool --prop:ip=10.32.23.123 --prop:dns=255.255.254.0

 

when this command has been executed without error showing, I still cannot see the property of ovf files.

 

Then I used ovftool myovffile.ovf

 

I still can not see the property I want to set.

what should I do?


exporting & importing VM;s ..

$
0
0

Gents ,

 

Pls bear with me as this will be long post...

 

I plan to export a Whole DC consisting of some 90 + VM , each VM has it;s Own datastore ( Bad thing i know..will streamline it ) . the esx version ranges from Esx 2.5 to 3.0 to 3.5 to 4.0 and all the VM;s are in same Vcenter ver 2.xx. we need to Migrate these to Vsphere 4 . I plan to use OVF tool for the same. I am a bit concerned about 2.5 . how do i export them. where do i install OVF Tool ( on vcenter server ?? ) on windows hosts ??? ..Datastore on SAN storage .& are presented to ESX via HBA's . how do OVF tool See these Datastores on Windows Hosts ....

 

Will appreciate if some body can help. tried via documentation but it didnl't helped much..

Regards

Sushil

Bug in GET requests for ovftool 2.1.0?

$
0
0

Hello All,

 

Would like to submit the possibility of a bug in ovftool 2.1.0.  Keeping things simple, we have a "fileserver" of ovfs/vmdks and our commands to ovftool started breaking after ugrading to 2.1.0 (from 2.0.1).

 

We dug up the command that prints out the debug info and found the (as our server logs showed), ovftool makes to GET requests to the source URL for the ovf (for whatever reason).  The second of these seems is mal-formatted in 2.1.0.  For comparison, I've also included similar outout from 2.0.1.

 

Our (neutered) deploy string: /usr/bin/ovftool  --lax --machineOutput --name='vm_test1' --datastore='store1' --net:'NOWHERE'='dev' http://fileserver/file/vm.ovf vi://root:password@esxihost

 

Get requests (2.1.0):

2011-11-14T16:04:55.413-05:00 [7FB4D5C7B700 verbose 'Default'] CURL: => Send header GET /file/vm.ovf HTTP/1.1

--> User-Agent: VMware-client/4.0.0 (ovfTool; libcurl)

 

...

2011-11-14T16:04:55.420-05:00 [7FB4D5BF7700 verbose 'Default'] CURL: => Send header GET /file//vm.ovf HTTP/1.1

--> User-Agent: VMware-client/4.0.0 (ovfTool; libcurl)

 

Apache file server handles the extra slash ok, but our other serving option using Phusion Passenger does not, and returns a 404, which causes ovftool to return

 

ERROR
+ <Errors>
+ <Error>
+ <Type>ovftool.ovf.descriptor.open</Type>
+ <LocalizedMsg>
+ Failed to open OVF descriptor
+ </LocalizedMsg>
+ </Error>
+ </Errors>

 

RESULT
+ ERROR

 

Good get requests (2.0.1):

> GET /file/vm.ovf HTTP/1.1

User-Agent: VMware-client/4.0.0 (ovfTool; libcurl)

...

> GET /file/vm.ovf HTTP/1.1

User-Agent: VMware-client/4.0.0 (ovfTool; libcurl)

 

 

Can anyone else confirm or has had similar problems?

vCenter 5 virtual appliance configuration

$
0
0

Hello..

 

Is it possible to give vCenter appliance ip, gateway, netmask etc via ovftool? Same way as to Orchestrator.

 

--prop:vami.DNS.VMware_vCenter_Server_Appliance=10.0.0.69  --prop:vami.gateway.VMware_vCenter_Server_Appliance=10.0.0.1  --prop:vami.ip0.VMware_vCenter_Server_Appliance=10.0.0.96  --prop:vami.netmask0.VMware_vCenter_Server_Appliance=255.255.255.0

 

When running these commands with ovftool, it doesnt give any errors  or anything, but it doesnt pass the variables forward either. Clearly  vCenter appliance doesnt have any "intelligence" for such feature.

 

ovftool --acceptAllEulas --skipManifestCheck  --datastore=storage-1 --diskMode=thin --name=vcenter --prop:vami.DNS.VMware_vCenter_Server_Appliance=10.0.0.69   --prop:vami.gateway.VMware_vCenter_Server_Appliance=10.0.0.1   --prop:vami.ip0.VMware_vCenter_Server_Appliance=10.0.0.96   --prop:vami.netmask0.VMware_vCenter_Server_Appliance=255.255.255.0

/VMware-vCenter-Server-Appliance-5.0.0.3324-472350/VMware-vCenter-Server-Appliance-5.0.0.3324-472350_OVF10.ovf.backup  vi://10.0.0.10

 

So any tips? Do I need to create some external media and modify the appliance to add it in, which will pass the needed variables to appliance, and script which will run from init.d on start and read those?

 

-k-

Large OVF imports into vCloud Director 1.0.1 fail, smaller imports succeed

$
0
0

I'm getting wildly different results while importing large OVF file into vCloud Director 1.0.1 via the ovftool than when performing the upload of the same OVF via the native JAva tool within vCloud Director itself. AS long as the file transfer compeltes through the vCD Java tool, the file is importing into vCenter correctly, and then being correctly registered within vCD.

 

The OVF I'm working with is 68.2 GB in size.

 

Below is a sanatized version of my command line and the output from the tool:

 

 

ovftool --net:"dvportgroup-48=company-Services_Internal" E:\OlioWebtest\oliowebtest.ovf "vcloud://user:password@testvcd1.company.com:443/?org=company_Services&vapp=OlioWebTest&vdc=company_Services_ALLO_vDC01&catalog=test"
Opening OVF source: E:\OlioWebtest\oliowebtest.ovf
The manifest validates
Warning: File is not referred in the manifest: oliowebtest.ovf
Opening vCloud target: vcloud://user@testvcd1.company.com:443/
Waiting for task on server .done
Deploying to vCloud: vcloud://user@testvcd1.company.com:443/
Disk Transfer Completed

Error: Invalid response from server
Completed with errors

 

Looking in the vCD GUI logs for the organization, I see the descriptor being processed, and the process for finalizing the upload completing, but the vApp is never added to the catalog. If I look in vCenter, I can find the VM on a valdi datastore for the org vDC and the correct resource pool in the proper state for a catalog vApp. The error "Error: Invalid response from server" is displayed immediately upon completion of the data transfer.

 

 

 

If I move the VM to the root of the datacenter, I can import the VM as a vApp and copy it to the caalog with no issue.

 

I tested with a much smaller OVF (1.3 GB), and received exactly the behavior I expected.

 

ovftool --net:"none=company-Services_Internal" E:\suse\descriptor.ovf "vcloud://user:password@testvcd1.company.com:443/?org=company_Services&vapp=SUSE32&vdc=company_Services_ALLO_vDC01&catalog=test"
Opening OVF source: E:\suse\descriptor.ovf
Warning: No manifest file
Opening vCloud target: vcloud://user@testvcd1.company.com:443/
Waiting for task on server .done
Deploying to vCloud: vcloud://user@testvcd1.company.com:443/
Disk Transfer Completed

Waiting for task on server ...................done
Waiting for task on server .......................................done
Waiting for task on server ..done
Completed successfully

 

Looking at the succesful transfer, I see an additonal action logged in the GUI logs for the organization. After the finalization record, there is a "Create virtual application" event logged on the smaller transfer that is never logged on the larger transfer.

 

The only item I can think of from a vCloud Director standpoint is that that vCD logon sesion timeout has expired on the large transfer long before the additional tasks are issued to vCD resulting in the invalid response. Is this the case, or is something else going on?

 

When looking at the vcloud-container-info.log file on the cells doing the processing for the succesful imports, I see a whole string of commands being executed in the current logged on user context.

OVF Tool 3.0.1 Segmentation fault on linux

$
0
0

Running OVF Tool 3.0.1 on 32 bit CentOS 6 Linux 2.6.32-279.11.1.el6.i686 (download from VMWare site md5sum was checked ok)

 

Tool starts up fine and is in the process of exporting a VM from one ESXi 4.1 host to another ESXi 4.1 host . 

 

Tool then crashes with /usr/bin/ovftool: line 23:  7629 Segmentation fault      (core dumped) "$OVFTOOL_BIN" "$@"

Viewing all 34499 articles
Browse latest View live


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