Quantcast
Viewing all 34499 articles
Browse latest View live

Deploy OVF Template in VMWare Workstation 10 using ovf-tool

Hi All,

 

I just started exploring the ovf-tools. I have an ovf template available for a VM and I was able to deploy it in Workstation using the GUI.

Is there a way / command available to use this pre-existing .ovf template and deploy a Virtual Machine in workstation using this; through ovf-tool?

 

Any help would be appreciated.


ovftool frequently encounters Unexpected end of stream

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

ovftool "locator does not refer to an object"

I am trying to create an OVF from a vm in vsphere - I'm running ovftool on a linux machine, and using the following syntax (I got this from the ovftool users guide):

ovftool username@myvcenter.aaa.com/"datacenter name"/vm/vmname /local/path/tostoreit/vnname.ovf

It prompts for a password, I enter the password, and it comes back with:

Opening VI source: vi://username@myvcenter.aaa.com/datacenter name/vmname
Error: Locator does not refer to an object:vi://username@myvcenter.aaa.com/datacenter name/vmname

 

Incidentally, I get the exact same error when I try using the mac version of ovftool, and the windows version.

Please help - I know this should work. I have no idea what I'm doing wrong, but I have to get this working pretty fast.

Thank you!!

Not able to ipaddress/gateway/netmask field configuration for deployed ovf in VM using ovftool

Hi,

 

I want to config IP-address/gateway/netmask to the deployed ovf virtual machine and i getting the following info when i run ovftool.exe

Can anyone help me out in configure ipaddress fields.

Or is there any other way to do it.

 

 

C:\Program Files\VMware\VMware OVF Tool>ovftool.exe --powerOn --diskMode=thin --
ipProtocol=IPv4 --acceptAllEulas --name=pravin --network="VM Network" --prop:IpA
ddress="10.110.208.16" --prop:SubnetMask="255.255.252.0" --prop:Dns="10.110.188.
5" --prop:DefaultGateway="10.110.208.1" --datastore="datastore1" "C:\Sharing\v35
9\ovf_filename.ovf" " vi://root:password@10.110.209.214"
Opening OVF source: //:@WIN-1VPBHEDRE5M:80\Sharing\v359\ovf_filename.ovf
Opening VI target: vi://root@10.110.209.214:443/
Deploying to VI: vi://root@10.110.209.214:443/
Transfer Completed
Powering on VM: pravin
Warning:
- No manifest file found.
- OVF property with key: 'DefaultGateway' does not exists.
- OVF property with key: 'Dns' does not exists.
- OVF property with key: 'IpAddress' does not exists.
- OVF property with key: 'SubnetMask' does not exists.
- No manifest entry found for: 'system.vmdk'.
Completed successfully

ovftool: unable to upload ovf

Hi,

 

I am trying to upload ovf file to vcloud. But I am getting following error:

 

D:\apps\ovftool>ovftool --acceptAllEulas --diskMode=thin --noSSLVerify

--overwrite --X:connectionReconnectCount=3 --X:forceDnsName --X:disableHostname

Resolve --X:logFile=upload.log --X:logLevel=trivia "D:\VM\VM.ovf" "vcloud://admin:admin123@XYZ.com?org=ORG&vappTemplate

=Test&catalog=CAT"

Opening VMX source: D:\VM\VM.ovf

Opening vCloud target: vcloud://admin@XYZ.com:443/

Deploying to vCloud vApp template: vcloud://admin@XYZ.com:443/

Transfer Failed

Error: Failed to send http data

Completed with errors

 

In log file I can see following log:

 

-->

2016-01-22T15:40:23.269+05:30 trivia -[04660] [Originator@6876 sub=Default] CURL: SSL: certificate subject name 'XYZ.com' does not match target host name 'XYZ1.com'

-->

2016-01-22T15:40:23.269+05:30 trivia -[04660] [Originator@6876 sub=Default] CURL: header data hidden

2016-01-22T15:40:23.269+05:30 trivia -[04660] [Originator@6876 sub=Default] CURL: header data hidden

2016-01-22T15:40:23.269+05:30 trivia -[04660] [Originator@6876 sub=Default] CURL: => Sending data of size 5

2016-01-22T15:40:23.269+05:30 trivia -[04660] [Originator@6876 sub=Default] CURL: header data hidden

2016-01-22T15:40:23.269+05:30 trivia -[04660] [Originator@6876 sub=Default] CURL: header data hidden

2016-01-22T15:40:23.269+05:30 trivia -[04660] [Originator@6876 sub=Default] CURL: header data hidden

2016-01-22T15:40:23.269+05:30 trivia -[04660] [Originator@6876 sub=Default] CURL: header data hidden

2016-01-22T15:40:23.269+05:30 trivia -[04660] [Originator@6876 sub=Default] CURL: header data hidden

2016-01-22T15:40:23.269+05:30 trivia -[04660] [Originator@6876 sub=Default] CURL: Connection #34 to host XYZ1.com left intact

-->

2016-01-22T15:40:23.269+05:30 verbose -[04044] [Originator@6876 sub=Default] vCloud response code: 204

2016-01-22T15:40:23.269+05:30 verbose -[04044] [Originator@6876 sub=Default] vCloud response body:

-->

2016-01-22T15:40:23.269+05:30 verbose -[04044] [Originator@6876 sub=Default] Curl session torn down

 

 

Any help is appreciated.

Unsupported element 'Property'

 

I am trying to import OVF with custom propery set and getting folling error with vmware ovf tool. Any idea on how to resolve this issue?

 

 

Error:

- Line 107: Unsupported element 'Property'

 

 

 

 

 

 

 

 

OVF tool for Windows 64 bit OS VMs

 

Hi All,

 

 

Do we have an ovf tool

for Windows 64bit OS virtual machines? The ovf tool guide mentions tools

for Windows 32 bit OS and Linux 32 & 64 bit OS but not for Windows

64 bit OS virtual machines.

 

Pleas help.

 

Regards,

Andy

ankit_17@hotmail.com

 

 

OVFTOOL - Configuration file syntax for parameters without explicit values

(Easy) Question… Regarding the use of global configuration file (ovftool.cfg) and local configuration file with OVFTOOL.

 

Syntax is given only for comments and parameters which are name-value pairs, e.g. datastore=DATASTORE-NAME. 

 

For a single parameter without a corresponding value, e.g. –acceptAllEulas, should these parameters be expressly set to TRUE?

Or can they simply be present (no equals sign)?  Both styles seem to work properly for --acceptAllEulas option.

 

Example:  which of the following CFG files shows the expected syntax?   Or are both acceptable?

 

acceptAllEulas=true

disableVerification=true

quiet=true

datastore=S123D0001

ipAllocationPolicy=fixed

 

or

 

acceptAllEulas

disableVerification

quiet

datastore=S123D0001

ipAllocationPolicy=fixed

 

(Yeah, I know - this question probably is a gimme.    Just curious if there's anything to trip over here. ) 

 

=cjs

 

Message was edited by: cjstaples-emc -- sorry, original formatting garbage


Defining serial port Without the GUI

I need access to my deployed virtual machine's serial console, not through a GUI window, but through ssh or telnet.  I finally found how to define a serial console so that I can telnet in, which is perfect, but now I'd like to automate the defining of that serial device without using the vSphere Client GUI.

 

I can define my serial port from the vSphere Client GUI after deploying my VM by powering off the VM, Edit Settings -> Add a Serial Port, check "Connect via Network" -> Network Backing -> Server (VM listens for connections), Port URI = telnet://10.36.0.85:7001, where 10.36.0.85 is my ESXi 4.1 server's IP address and 7001 is a random port.  When I power on my VM, I can telnet 10.36.0.85 7001 from a remote system and viola, I have serial console/terminal access.

 

In the vmx file, I can see

  serial0.present = "TRUE"

  serial0.yieldOnMsrRead = "TRUE"

  serial0.fileType = "network"

  serial0.fileName = "telnet://10.36.0.85:7001"

 

The question is, how can I define the above either in the ovf file before I deploy, as I deploy (I'm using ovftool from a remote system), or via a remote command afterwards, e.g. a vSphere CLI command?  When I try exporting the ovf template from the vSphere client, I get "Device 'Serial port 1' cannot be exported."

Ovftool fails in converting an ova file into vmx

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.

Convert ovf template to vsx

Hello ,

I used the vcenter 4.1 console to Export OVF Template.  We need to be able to load this template in vmware player.  I downloaded ovftool and tried to convert the OVF template so that it could be run in Vmware player.

 

 

This is the command I am issuing to convert the template based off of the OVFTOOL PDF.  This, to my understanding should convert the OVF to a VMX and drop it in the D:\vms folder.  There are 4 disks in this VM server

 

Input

C:\Program Files\VMware\VMware OVF Tool>ovftool -tt=vmx D:\server_name\server_name.ovf D:\vms\

 

Output:

 

Opening OVF source: D:\server\server.ovf
The manifest validates
Opening VMX target: D:\vms\
Warning:
- Target does not support CPU validation.
Error:
-
Completed with errors

 

Needless to say the VMS folder is getting created but nothing else is being converted. 

 

Any help would be greatly appreciated.

 

Thanks,

 

DS

Create OVF/OVA via ovftool

Hi,

 

I have a ESXi 5.0 server running which has a Guest VM running CentOS 5.6.

 

The ESXi server is a standalone server, not included in a datacenter, not managed by vCenter.

 

The server has a HDD of 80G which has both the ESXi host & the Guest OS running on top of it.

 

I installed ovftools on my Windows laptop & tried to create a ovf from the VM but am unsuccessful. I constantly get the following error -

c:\>ovftool vi://root:<rootpassword>@<ESXi Host IP>/datastore1/CentOS c:\testVM.ovf

Error: Cannot parse locater: vi://root:<rootpassword>@<ESXi Host IP>/datastore1/CentOS

Completed with errors

 

The local datastore name is "datastore1"

 

Can someone help me out here with forming the correct the ovftool command to create an ovf & possibly an OVA out of the running VM?

 

 

Thanks

 

Bhushan Pathak

Best way to export a VM as an OVF/OVA ?

Hi All,

 

Everytime I manually export a VM using vsphere client, I am getting the resultant ovf of much larger size. ( i.e. size of .vmdk's are much larger, increases by 10% everytime )
I looked at various temporary files and log files and deleted them before taking the ovf, but it also doesnt reduces the size significantly.
My vm doesnt do any huge IO on the disks.

 

Is there a best practice for exporting an ovf .? ( Ex. SLES based vms. )


Thanks

Nikunj

OVF Tool 3.0.1 Segmentation fault on linux

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" "$@"

OVF environment not available

Hi, I'm having a problem with ovftool. I'm running ovftool against a ESXi host with a trial license. The command shows the ovf properties that I've set on the commandline, but once I'm on the virtual machine, the ovf environment is not present at all. If I do the deployment through the vSphere client, it works perfectly, same OVA file.

 

I see the output from ovftool:

 

--> /prop/ip0 = "192.168.43.159"

--> /prop/ip1 = "192.168.43.185"

 

but also get the warnings:

 

Warning:
- OVF property with key: 'ip0' does not exists.
- OVF property with key: 'ip1' does not exists.
Thanks for any help!

Deployment from OVA format.

Hi,

I am deploying a VM using a OVA format. The  size of OVA format is 60 GB. Currently free space on my datastore is 388 GB.

At the time of selecting Disk Format type if shows me in red that the disk size required is 1 TB therefore you cannot select THICK provisioning.

Therefore, i selected THIN provisiong. It THIN provisioing i am showed that Estimated Disk Usage is 112 GB which is less than the free space available.

But even after selecting THIN proviosing at the time of deployment it throws an error that it cannot create disk as the size of disk is larger than the maximum specified limit. 

My block size is of 1 MB.

OVFtool cannot authenticate to vcloud

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?

How do I set target VM hostname when deploying OVA?

I'm deploying OVA files to a vCenter using ovftool; it's working perfectly, but I want to go the extra mile and automatically set the hostname of the VM after it is deployed.

 

I found a reference to a 'hostname' property (--prop:hostname=myvm.example.com), but it doesn't actually work

 

Here's my command  line

ovftool --lax --acceptAllEulas --datastore=MySAN --overwrite --powerOn --vmFolder=TestFolder --diskMode=thin --powerOffTarget --prop:hostname=myvm.example.comhttp://myurl.com/path/input.ova vi://vcenteruser:password@mycenter.example.com/MyDC/host/MyD/Resources/OVFTest

 

So what is the proper way to do this?

Validations on OVF Properties


Hi,

 

I am customizing an OVF template XML by adding OVF properties.  I have a few questions related to validating the properties.

 

1) If a property doesn't succeed the validation test (say, it falls short of a MinLength check), then I see a red warning right below the field (while deploying the OVF in a vCenter). But the user is still able to proceed and click Submit. Is there a way to stop the user from proceeding when any validation criteria is not met?

 

2) One of my OVF properties is an FQDN and I am looking for a way to validate the format of the FQDN. I want it to be of the format (hostprefix + domain name). Is there is a way to do so?

 

Thanks,

Sabareeswar

Does anyone know how to sign ova with timestamp?

I am creating ova file using VMware OVF tool .

And I want to use public Code Signing Certificate like published by Globalsign or Verisign.

But current OVF tool doucment is not introduce how to sign with timestamp.

So, when public cert is expired, just ova file is also expired.

This is problem.

Ex: Using vsphere client call deploying OVF Template, then display signing is expired.

 

Document

https://www.vmware.com/support/developer/ovf/ovf350/ovftool-350-userguide.pdf

 

Deploy an OVF Template

http://pubs.vmware.com/vsphere-4-esx-vcenter/index.jsp?topic=/com.vmware.vsphere.vmadmin.doc_41/vsp_vm_guide/working_with_ovf_templates/t_import_a_virtual_appliance.html

 

Will signed code still be valid after the Code Signing Certificate expires?

 

The digital signature on code will not expire, when a timestamping service is used. A time stamp shows the validity of the certificate at the time the code was signed. Unless you’re adding additional code to your application, a new signature will not need to be applied even if the certificate used to initially sign the code expires. GlobalSign Code Signing Certificates include a time stamp feature.

https://www.globalsign.com/support/faq/objectfaq.php

Viewing all 34499 articles
Browse latest View live


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