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

OVF Import Failing Due to Syntax

$
0
0

Hi. I'm trying to  deploy an OVF template using Vsphere 4.1 client but it keeps failing with syntax errors. The OVF is supplied with an IBM product I've trying to install but there's something it doesn't like relating to the ValueMap section which is a single line in the OVF file. Any ideas what's wrong with it? Thx

 

<ovf:Property ibmExt:invisible="true" ovf:key="language" ovf:password="false" ovf:qualifiers="[ValueMap {&quot;en&quot;,&quot;de&quot;,&quot;ja&quot;,&quot;ko&quot;,&quot;zh&quot;,&quot;zh(tw)&quot;,&quot;fr&quot;,&quot;it&quot;,&quot;es&quot;,&quot;pt(br)&quot;}]" ovf:type="string" ovf:userConfigurable="true" ovf:value="en" ovf:required="true">
          <ovf:Label ovf:msgid="ConfigLocale.language.label">Default Locale</ovf:Label>
          <ovf:Description ovf:msgid="ConfigLocale.language.description">This is the default locale of the Operating System and TSAM</ovf:Description>
        </ovf:Property>


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

OFV export trouble

$
0
0

hello, I am stuck.  Any help is much appreciated.

I am simply trying to export an OVF template from a vm (.vmx) in vCenter 4.1.0 using the OVF Tool.

 

The vm is located here:

<vcenter>/<datacenter>/vm/Build Server/sles11-sp1-x8664/yoshi

 

I can probe the object like this:

[root@r2d2 bin]# ovftool vi://<user>:<password>@helios.blue.roguewave.com/Corvallis/vm/Build\ Server/sles11-sp1-x8664/yoshi

OVF version:   1.0

VirtualApp:    false

Name:          yoshi

 

Download Size:     Unknown

 

Deployment Sizes:

  Flat disks:     80.00 GB

  Sparse disks:   Unknown

Networks:

  Name:        CVO VM Network

  Description: The CVO VM Network network

 

Virtual Hardware:

  Family:       vmx-07

  Disk Types:   SCSI-lsilogic

Now, I am having problems specifying a target locator to export the ovf template.
I am trying to export the ovf template to the following location:
<vcenter>/<datacenter>/vm/templates/ovf-templates/yoshi.ovf

 

[root@r2d2 bin]# ovftool vi://<user>:<password>@helios.blue.roguewave.com/Corvallis/vm/Build\ Server/sles11-sp1-x8664/yoshi vi://<user>:<password>@helios.blue.roguewave.com/Corvallis/vm/templates/
Opening VI source: vi://bluoma@helios.blue.roguewave.com:443/Corvallis/vm/Build%20Server/sles11-sp1-x8664/yoshi
Error: Found wrong kind of object (Folder). Possible completions are:
  ovf-templates/
  build-servers/
  db-servers/
  RDI Upgrade Test Template
Completed with errors
[root@r2d2 bin]# ovftool vi://<user>:<password>@helios.blue.roguewave.com/Corvallis/vm/Build\ Server/sles11-sp1-x8664/yoshi vi://<user>:<password>@helios.blue.roguewave.com/Corvallis/vm/templates/ovf-templates
Opening VI source: vi://bluoma@helios.blue.roguewave.com:443/Corvallis/vm/Build%20Server/sles11-sp1-x8664/yoshi
Error: Found wrong kind of object (Folder). Possible completions are:
Completed with errors

 

[root@r2d2 bin]# ovftool vi://<user>:<password>@helios.blue.roguewave.com/Corvallis/vm/Build\ Server/sles11-sp1-x8664/yoshi vi://<user>:<password>@helios.blue.roguewave.com/Corvallis/vm/templates/ovf-templates/yoshi.ovf

Opening VI source: vi://bluoma@helios.blue.roguewave.com:443/Corvallis/vm/Build%20Server/sles11-sp1-x8664/yoshi

Error: Locator does not refer to an object: vi://bluoma@helios.blue.roguewave.com:443/Corvallis/vm/templates/ovf-templates/yoshi.ovf

Completed with errors

Can someone help identify the correct target locator?

I have also tried the following host path:

 

[root@r2d2 bin]# ovftool vi://<user>:<password>@helios.blue.roguewave.com/Corvallis/vm/Build\ Server/sles11-sp1-x8664/yoshi vi://<user>:<password>@helios.blue.roguewave.com/Corvallis/host/R\&D

Opening VI source: vi://bluoma@helios.blue.roguewave.com:443/Corvallis/vm/Build%20Server/sles11-sp1-x8664/yoshi

Opening VI target: vi://bluoma@helios.blue.roguewave.com:443/Corvallis/host/R&D

Error: No target datastore specified. Possible completions:

  DespinaLS

  DevVMs

  NFS Install

  VM template backup

  dominator-nfs-install

  nfs-ds1

  puffinSanMedia

  skillet-ds1

  skillet-ds2

Completed with errors

 

[root@r2d2 bin]# ovftool vi://<user>:<password>@helios.blue.roguewave.com/Corvallis/vm/Build\ Server/sles11-sp1-x8664/yoshi vi://<user>:<password>@helios.blue.roguewave.com/Corvallis/host/R\&D/skillet-ds2

Opening VI source: vi://bluoma@helios.blue.roguewave.com:443/Corvallis/vm/Build%20Server/sles11-sp1-x8664/yoshi

Error: Locator does not refer to an object: vi://bluoma@helios.blue.roguewave.com:443/Corvallis/host/R&D/skillet-ds2

Completed with errors

 

[root@r2d2 bin]# ovftool vi://<user>:<password>@helios.blue.roguewave.com/Corvallis/vm/Build\ Server/sles11-sp1-x8664/yoshi vi://<user>:<password>@helios.blue.roguewave.com/Corvallis/host/R\&D?ds=[skillet-ds2]

Opening VI source: vi://bluoma@helios.blue.roguewave.com:443/Corvallis/vm/Build%20Server/sles11-sp1-x8664/yoshi

Error: Datacenter object not found

Completed with errors

[root@r2d2 bin]# ovftool vi:// <user>:<password>@helios.blue.roguewave.com/Corvallis/vm/Build\ Server/sles11-sp1-x8664/yoshi vi:// <user>:<password>@helios.blue.roguewave.com/Corvallis/host/R\&D?ds=[skillet-ds2]ovfs
Opening VI source: vi://bluoma@helios.blue.roguewave.com:443/Corvallis/vm/Build%20Server/sles11-sp1-x8664/yoshi
Error: Datacenter object not found
Completed with errors
Any thoughts or suggestions are welcome.
Thanks,
Bryan

Error loading Operating System

$
0
0

I recently had an issue where I exported a VM as an OVF using the vSphere client, a few weeks later I needed to import the VM back into our environment and after importing I received an "Error loading Operating System" error.  I have imported and exported countless VMs as OVF files, and this is very frustrating.  I also have VMs sent to me from Government entities and I always express how they should send them as an OVF file since it makes it very easy for me to import.  Recently I had 1 out of 3 errors after the import with the same "Error loading Operating System" message.

 

I have tried to change the HD controller on the VM, I also created a New VM with the "custom" option and I chose the exact OS and vHardware for the VM, and I tried to use the existing .vmdk files and that does not work.  I'm just wondering if there is some simple fix out there for what I thought was a simple import and export.

 

I'm using ESXi 4.1 Update 2 on HP BL hardware...oh, I also have VMware Workstation 8, and I can mount the vmdk files.

Sun Storage 7000, OVF --> VMX

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>

Deploy OVA to ESXi 5 host directly

$
0
0

Hello all,

 

I have a linux VM on a remote ESXi 5 host that I have installed OVFtool.  That same linux vm has a local "win2k8.ova" ova file.  Here is the command i'm trying to use:

 

ovftool -ds=DS1 -n=MSRVR01 win2k8.ova vi://root:password@172.16.100.20

 

and get the following message:

 

Error: Found wrong kind of object (ResourcePool). Possible completions are:

 

But this is a single ESXi host without any ResourcePools.  How do i get around this?

 

Thanks,

Nick

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


Properties lost when deployed a VM and exported it to OVF

$
0
0

Hi,

 

I have built a VM, using VMware Studio in OVA format. I defined some custom OVF environment properties in it.

After I built the VM, I opened the .OVF file to see the property values are appeared correctly. They look like the below

 

<ProductSection ovf:required="false">
      <Info>VM ISV branding information</Info>
      <Product>xxxxxxxxx</Product>
      <Vendor> xxxxxxxxx , Inc.</Vendor>
      <Version>x.x.x.x</Version>
      <FullVersion>x.x.x.x alpha</FullVersion>

</ProductSection>

 

I deployed this OVF to a ESXi 4.0 server. Later exported the same VM to OVF format using OVFTool, using the command line

 

ovftool.exe vi://root:xxxxxxxxxxx@IP/vmname  "d:\Virtual Machines\imported-OVF\newVM.ovf"

 

After the export, I opened the newVM.OVF file and found that the properties (like product, vendor, version etc.) are not retained.

 

What could be the issue. Please suggest.

 

--Hemanth

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

Maximum (realistic) sizes for OVA/OVF format and export?

$
0
0

Hi- has anyone hit any problems with exporting large (e.g. > 1TB) VMs in OVA/OVF format?

 

I realise that you can split the files generated, but leaving aside any issues to do with the file-system on which the files reside, are there any inherent gotchas with the export mechanism or the file format that would mean it's not a good idea to rely on this for exporting large VMs...?

Thanks!

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.

ovftool - Defining the 'Product', 'Version' and 'Vendor'?

$
0
0

Hi,

 

Am trying to export an ova from a VM using ovftool.  Something along the lines of...

 

ovftool --prop:Version=100 --privateKey=./id_rsa.pem --eula@=./eula.txt vi://root:mypass@myserver.mydomain.com/myVM ./myOVA.ova

 

Everything looks good except that I haven't been able to define the 'Product', 'Version' and 'Vendor'  that appears in the initial dialog when customers deploy the template into a running ESX / vCenter instance.

 

Assume this must be a v common question but have not found how this might be done from the ovftool user guide (http://www.vmware.com/support/developer/ovf/ovf301/ovftool-301-userguide.pdf) or the VMware communities.  Closest I've found is http://communities.vmware.com/thread/328504 which indicates that defining a vCenter vApp allow configurable properties to be set.

 

Is there any way to define these parameters via ovftool?  If not, is there a way to hack the .ova manually to define them?

 

Thanks in advance,

Frank.

setting ovf properties with ovftool and vcloud

$
0
0

I'm trying to import an OVA file with settable OVF properties for configuration (product key, network configuration) into vCloud with ovftool. It seems from the documentation that I should be using the --prop option to set these values, but they don't seem to get passed through vCloud to the deployed vApp, and the system gives an error about unconfigured properties when it tries to start up. I can go in the vCloud interface and manually enter them for my vApp, but I was hoping to automate the process with ovftool.

 

At first I thought the issue was that the properties where at the VM level instead of the vApp level, but changing the OVA in vSphere to move the properties to the vApp itself produces the same result. Using the same command to import the OVA directly into vSphere correctly sets the properties with either version.

 

Is setting of OVF properties for vCloud supported by ovftool? If so, what is the correct syntax?

 

Currently running:

 

ovftool -o --acceptAllEulas --prop:productkey="XXXXX-XXXXX-XXXXX-XXXXX" --prop:ipaddress="10.146.3.1" --prop:netmask="255.255.0.0" --prop:gateway="10.146.1.254" vApp.ova vcloud://vclouddirector?org=IT&vdc=IT&catalog=IT&vapp=test1

 

Thanks.

Can not convert a VMX from vCenter server to a local vmx

$
0
0

I am trying to convent a vmx within vCenter server to a local vmx, i am trying with:

 

ovftool.exe "vi://user:password@my_vCenterserver/may_datacenter?ds=[my_datastore] my_vm/my_vm.vmx" C:\ovfs\my_vm.vmx

 

as the tool user guide Page 35, session "Converting a VM on ESXi or vCenter to an OVF" introduces.

 

But I got prompt as:

 

Opening VI source: vi://my_vCenterserver:443/

Error: Datacenter object not found

Completed with errors

 

 

But, i am sure the my_datacenter is INDEED exists.

 

Any suggestions what should i do?

 

 

Additional:

 

I even can NOT probe my VMX like this:

 

ovftool.exe vi://user:password@my_vCenterserver/my_datacenter/my_vm/my_vm.vmx

 

with Error:

 

Error: Locator does not refer to an object: vi://user:password@my_vCenterserver/my_datacenter/my_vm/my_vm.vmx

 

But I am very sure 'my_vmx' locates indeed there.


How to correctly run a .py python script at bootup

$
0
0

Hi all ...I'm not sure if this is the correct place to post this question and I'm hoping someone could plase advise me as to how to do this.

I created a nested ESXi 5.5b VM.The VM is not connected to a vCenter as yet and it may or may not be connected based on whether or not I want to join it to a vCenter or not.

I then set the vAPP options to enable for the VM settings.

I then set various advanced properties for the VM.

I now have a Python script (I named it test2.py) which collects the properties from an OVA during it's deployment , the script then uses the info collected from the properties and applies them in commands at the cli.

I use this info to alter things like the Hostname, DNS, IP and other info inside the VM.

This all works successfully.

 

I would like to have the script start/run-once at boot time after the vAPP is deployed.

 

How do I do this ? and where to I place the script ? so that is does not get deleted or destroyed when the ova gets created and then deployed.

 

Any help would be greatly appreciated.

Kind regards

Den

Error: Invalid access to memory location - Fix an OVA?

$
0
0

I have a VM that I exported as an OVA as a "Just in Case" backup a while ago.  Today I had to use it and I cannot import it.

There was an ISO mounted when I did the export and it exported the ISO as well.  The error I get is when it tries to access the ISO, it fails.

 

I downloaded OVFtool in the hopes I could strip the ISO from the OVA, but I am getting an error trying to use the --noImageFiles option.  it tells me:

 

E:\ESX\OVA's>ovftool --noImageFiles Win7-Tax64.ova test.ova
Opening OVA source: Win7-Tax64.ova
Opening OVA target: test.ova
Writing OVA package: test.ova
Disk Transfer Failed
Error: Invalid access to memory location.
Completed with errors

 

 

Is it possible to remove this ISO?

After searching through the forum I uninstalled OVFtool from my E: drive and put it on C: with the same result.  Here is the logToConsole:

 

 

E:\ESX\OVA's>ovftool --X:logToConsole Win7-Tax64.ova test.ova

2012-03-09T17:08:08.405-05:00 [08672 verbose 'Default'] Subscribing to signal: 2

(SIGINT)

2012-03-09T17:08:08.405-05:00 [08672 verbose 'Default'] Subscribing to signal: 4

(SIGILL)

2012-03-09T17:08:08.405-05:00 [08672 verbose 'Default'] Subscribing to signal: 2

2 (SIGABRT)

2012-03-09T17:08:08.405-05:00 [08672 verbose 'Default'] Subscribing to signal: 8

(SIGFPE)

2012-03-09T17:08:08.405-05:00 [08672 verbose 'Default'] Subscribing to signal: 1

5 (SIGTERM)

2012-03-09T17:08:08.406-05:00 [08672 verbose 'Default'] [ovfTool.cpp] Using home

directory C:\Users\ItsTooHot\AppData\Roaming\VMware\ovftool.cfg

2012-03-09T17:08:08.406-05:00 [08672 verbose 'Default'] [ovfTool.cpp] OvfTool En

vironment:

--> /X:httpTimeout = "600"

--> /X:imageReadSize = "262144"

--> /X:logToConsole = "true"

--> /X:maxNumberOfTermSignals = "5"

--> /X:maxRedirects = "256"

--> /X:maximalDeltaConfSize = "8"

--> /X:maximalDeltaTreeSize = "6"

--> /X:progressSmoothing = "60"

--> /X:useMacNaming = "false"

--> /X:vCloudKeepTemplate = "true"

--> /X:vCloudTimeout = "3600"

--> /X:vimSessionTimeout = "600"

--> /authdPortSource = "902"

--> /authdPortTarget = "902"

--> /fencedMode = "bridged"

--> /prgPath = "C:\Program Files\VMware\VMware OVF Tool"

--> /source = "Win7-Tax64.ova"

--> /target = "test.ova"

-->

2012-03-09T17:08:08.412-05:00 [08672 verbose 'Default'] [ovfTool.cpp] Done initi

alizing libs

2012-03-09T17:08:08.412-05:00 [08672 verbose 'Default'] [ovfTool.cpp] Determinin

g source

2012-03-09T17:08:08.412-05:00 [08672 verbose 'Default'] [ovfTool.cpp] Determinin

g target

Opening OVA source: Win7-Tax64.ova

2012-03-09T17:08:08.479-05:00 [08672 verbose 'Default'] OVF Descriptor: <?xml ve

rsion="1.0" encoding="UTF-8"?>

--> <!--Generated by VMware VirtualCenter Server, User: ItsTooHot, UTC time: 201

2-03-02T23:49:58.21025Z-->

--> <Envelope vmw:buildId="build-345043" xmlns="http://schemas.dmtf.org/ovf/enve

lope/1" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:ovf="http:

//schemas.dmtf.org/ovf/envelope/1" xmlns:rasd="http://schemas.dmtf.org/wbem/wsci

m/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vmw="http://www.vmware

.com/schema/ovf" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/C

IM_VirtualSystemSettingData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instanc

e">

-->   <References>

-->     <File ovf:href="Win7-Tax64-disk1.vmdk" ovf:id="file1" ovf:size="80291440

64" />

-->     <File ovf:href="Win7-Tax64-file1.iso" ovf:id="file2" ovf:size="331949670

4" />

-->   </References>

-->   <DiskSection>

-->     <Info>Virtual disk information</Info>

-->     <Disk ovf:capacity="70" ovf:capacityAllocationUnits="byte * 2^30" ovf:di

skId="vmdisk1" ovf:fileRef="file1" ovf:format="http://www.vmware.com/interfaces/

specifications/vmdk.html#streamOptimized" ovf:populatedSize="18292015104" />

-->   </DiskSection>

-->   <NetworkSection>

-->     <Info>The list of logical networks</Info>

-->     <Network ovf:name="VM Network">

-->       <Description>The VM Network network</Description>

-->     </Network>

-->   </NetworkSection>

-->   <VirtualSystem ovf:id="Win7-Tax64">

-->     <Info>A virtual machine</Info>

-->     <Name>Win7-Tax64</Name>

-->     <OperatingSystemSection ovf:id="1" vmw:osType="windows7_64Guest">

-->       <Info>The kind of installed guest operating system</Info>

-->       <Description>Microsoft Windows 7 (64-bit)</Description>

-->     </OperatingSystemSection>

-->     <VirtualHardwareSection>

-->       <Info>Virtual hardware requirements</Info>

-->       <System>

-->         <vssd:ElementName>Virtual Hardware Family</vssd:ElementName>

-->         <vssd:InstanceID>0</vssd:InstanceID>

-->         <vssd:VirtualSystemIdentifier>Win7-Tax64</vssd:VirtualSystemIdentifi

er>

-->         <vssd:VirtualSystemType>vmx-07</vssd:VirtualSystemType>

-->       </System>

-->       <Item>

-->         <rasd:AllocationUnits>hertz * 10^6</rasd:AllocationUnits>

-->         <rasd:Description>Number of Virtual CPUs</rasd:Description>

-->         <rasd:ElementName>2 virtual CPU(s)</rasd:ElementName>

-->         <rasd:InstanceID>1</rasd:InstanceID>

-->         <rasd:ResourceType>3</rasd:ResourceType>

-->         <rasd:VirtualQuantity>2</rasd:VirtualQuantity>

-->       </Item>

-->       <Item>

-->         <rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits>

-->         <rasd:Description>Memory Size</rasd:Description>

-->         <rasd:ElementName>2048MB of memory</rasd:ElementName>

-->         <rasd:InstanceID>2</rasd:InstanceID>

-->         <rasd:ResourceType>4</rasd:ResourceType>

-->         <rasd:VirtualQuantity>2048</rasd:VirtualQuantity>

-->       </Item>

-->       <Item>

-->         <rasd:Address>0</rasd:Address>

-->         <rasd:Description>SCSI Controller</rasd:Description>

-->         <rasd:ElementName>SCSI controller 0</rasd:ElementName>

-->         <rasd:InstanceID>3</rasd:InstanceID>

-->         <rasd:ResourceSubType>lsilogicsas</rasd:ResourceSubType>

-->         <rasd:ResourceType>6</rasd:ResourceType>

-->       </Item>

-->       <Item>

-->         <rasd:Address>1</rasd:Address>

-->         <rasd:Description>IDE Controller</rasd:Description>

-->         <rasd:ElementName>IDE 1</rasd:ElementName>

-->         <rasd:InstanceID>4</rasd:InstanceID>

-->         <rasd:ResourceType>5</rasd:ResourceType>

-->       </Item>

-->       <Item>

-->         <rasd:Address>0</rasd:Address>

-->         <rasd:Description>IDE Controller</rasd:Description>

-->         <rasd:ElementName>IDE 0</rasd:ElementName>

-->         <rasd:InstanceID>5</rasd:InstanceID>

-->         <rasd:ResourceType>5</rasd:ResourceType>

-->       </Item>

-->       <Item>

-->         <rasd:AddressOnParent>0</rasd:AddressOnParent>

-->         <rasd:ElementName>Hard disk 1</rasd:ElementName>

-->         <rasd:HostResource>ovf:/disk/vmdisk1</rasd:HostResource>

-->         <rasd:InstanceID>6</rasd:InstanceID>

-->         <rasd:Parent>3</rasd:Parent>

-->         <rasd:ResourceType>17</rasd:ResourceType>

-->       </Item>

-->       <Item>

-->         <rasd:AddressOnParent>0</rasd:AddressOnParent>

-->         <rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>

-->         <rasd:ElementName>CD/DVD Drive 1</rasd:ElementName>

-->         <rasd:HostResource>ovf:/file/file2</rasd:HostResource>

-->         <rasd:InstanceID>7</rasd:InstanceID>

-->         <rasd:Parent>4</rasd:Parent>

-->         <rasd:ResourceType>15</rasd:ResourceType>

-->       </Item>

-->       <Item>

-->         <rasd:AddressOnParent>7</rasd:AddressOnParent>

-->         <rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>

-->         <rasd:Connection>VM Network</rasd:Connection>

-->         <rasd:Description>E1000 ethernet adapter on "VM Network"</rasd:Descr

iption>

-->         <rasd:ElementName>Network adapter 1</rasd:ElementName>

-->         <rasd:InstanceID>8</rasd:InstanceID>

-->         <rasd:ResourceSubType>E1000</rasd:ResourceSubType>

-->         <rasd:ResourceType>10</rasd:ResourceType>

-->       </Item>

-->     </VirtualHardwareSection>

-->   </VirtualSystem>

--> </Envelope>

Opening OVA target: test.ova

2012-03-09T17:08:08.490-05:00 [08672 verbose 'Default'] Closing writer. Locator:

test.ovf (SHA1: 352f265785c162cd8bf180f257a7876dbacf34c4, Written bytes: 4962)

2012-03-09T17:08:08.491-05:00 [08672 verbose 'Default'] Closing writer. Locator:

test.mf (SHA1: 05aeacecbe7778a0bfa4bc10ab9f6e6fc713aaa9, Written bytes: 184)

Writing OVA package: test.ova

2012-03-09T17:08:08.492-05:00 [08672 verbose 'Default'] Using file size as progr

ess measure

Disk Transfer Failed

Error: Invalid access to memory location.

2012-03-09T17:08:08.495-05:00 [08672 verbose 'Default'] Backtrace:

--> backtrace[00] rip 000000000047693a (no symbol)

--> backtrace[01] rip 000000000034d008 (no symbol)

--> backtrace[02] rip 000000000034dc1e (no symbol)

--> backtrace[03] rip 00000000003011cb (no symbol)

--> backtrace[04] rip 0000000000475df3 (no symbol)

--> backtrace[05] rip 000000000048a2fc (no symbol)

--> backtrace[06] rip 000000014001d7ab (no symbol)

--> backtrace[07] rip 000000014009b945 (no symbol)

--> backtrace[08] rip 000000014009ce71 (no symbol)

--> backtrace[09] rip 0000000140022137 (no symbol)

--> backtrace[10] rip 0000000140049b91 (no symbol)

--> backtrace[11] rip 000000014007e8b2 (no symbol)

--> backtrace[12] rip 000000014007ed6d (no symbol)

--> backtrace[13] rip 000000014001af6f (no symbol)

--> backtrace[14] rip 000000014001b76a (no symbol)

--> backtrace[15] rip 000000014025f62e (no symbol)

--> backtrace[16] rip 0000000076d9652d (no symbol)

--> backtrace[17] rip 00000000770dc521 (no symbol)

-->

2012-03-09T17:08:08.496-05:00 [08672 verbose 'Default'] Deleting file: test.ova

Completed with errors

 

E:\ESX\OVA's>

Using ovftool to deploy an OVF with references to external files does not seem to work...

$
0
0

Hi,

 

I have an OVF file that refeneces a disk image from a webserver, e.g.:

 

<File ovf:href="http://myserver/cdrom.iso" ovf:id="file1"/>

 

When i try to deploy this OVF to a vSphere server, it fails at the disk transfer stage... it looks to me like ovftool is treating it like a local file:

 

$ ovftool my.ovf vi://root:@172.26.0.172

Opening OVF source: my.ovf

Warning: No manifest file

Opening VI target: vi://root@172.26.0.172:443/

Deploying to VI: vi://root@172.26.0.172:443/

Disk Transfer Failed

Error: Failed to open file: cdrom.iso

 

Here is the output with logging enabled:

 

Deploying to VI: vi://root@172.26.0.172:443/
2012-08-01T15:51:52.762+10:00 [7F584C55C740 verbose 'Default'] Using capacity as progress measure
2012-08-01T15:51:52.762+10:00 [7F584C55C740 verbose 'Default'] Failed to open file: myserver/cdrom.iso
2012-08-01T15:51:52.762+10:00 [7F584C55C740 verbose 'Default'] Exception: Failed to read from file: http://myserver/cdrom.iso
Disk Transfer Failed
Error: Failed to open file: myserver/cdrom.iso

 

When an OVF is deployed from a local file, does it mean the references also need to be local? I had a quick read of the OVF spec and it seems like file reference can be anywhere... local, relative, http or https... any ideas?

 

Thanks,
John

ovftool fails with curl error: couldn't connect to server

$
0
0

HI,

 

I'm trying to create an OVF using ovftool 3.0.1. When I issue the ovftool command from the command line I get:

Error: cURL error: Couldn't connect to server
Completed with errors

 

I used the following command:

 

/usr/bin/ovftool vi://username:password@XX.XX.XX.XX/datacenter/vm/folder/vmname /destination

 

I can issue the command as above without the vmname to see if I can access Vsphere and to make sure I have a valid source locator.  The command is successful and returns a list of VMs I can use. When I add the VM name to the source locator path, I get the above error. The VM is pysically about 14GB in size (that is the space alloacted).

 

I can use the same command to another Vpshere server and I'm successful in creating the OVF. Which leads me to think that it might be a configuration issue with this Vsphere server?

 

What sorts of issues can lead to the above error?

 

Thanks,

 

Fernando

Segmentation Fault when using vcloud target

$
0
0

I'm trying to use ovftool to automate OVA deployments to vCloud Director 5.1. I have installed ovftool 3.0.1 on Ubuntu and tested out some operations. Everything seems to work except that I always get a segmentation fault when I invoke a vcloud target.

 

Here is the logging output:

 

2013-04-12T09:38:22.261-07:00 [7F987B01E740 verbose 'Default'] [SSL_DB] Using /home/evan/.ovftool.ssldb as SSL DB
2013-04-12T09:38:22.263-07:00 [7F987B01E740 verbose 'Default'] Subscribing to signal: 2 (SIGINT)
2013-04-12T09:38:22.263-07:00 [7F987B01E740 verbose 'Default'] Subscribing to signal: 4 (SIGILL)
2013-04-12T09:38:22.263-07:00 [7F987B01E740 verbose 'Default'] Subscribing to signal: 6 (SIGABRT)
2013-04-12T09:38:22.263-07:00 [7F987B01E740 verbose 'Default'] Subscribing to signal: 8 (SIGFPE)
2013-04-12T09:38:22.263-07:00 [7F987B01E740 verbose 'Default'] Subscribing to signal: 15 (SIGTERM)
2013-04-12T09:38:22.263-07:00 [7F987B01E740 verbose 'Default'] Subscribing to signal: 1 (SIGHUP)
2013-04-12T09:38:22.263-07:00 [7F987B01E740 verbose 'Default'] Subscribing to signal: 3 (SIGQUIT)
2013-04-12T09:38:22.263-07:00 [7F987B01E740 verbose 'Default'] Subscribing to signal: 5 (SIGTRAP)
2013-04-12T09:38:22.263-07:00 [7F987B01E740 verbose 'Default'] Subscribing to signal: 9 (SIGKILL)
2013-04-12T09:38:22.263-07:00 [7F987B01E740 verbose 'Default'] Subscribing to signal: 13 (SIGPIPE)
2013-04-12T09:38:22.263-07:00 [7F987B01E740 verbose 'Default'] OvfTool Version: VMware ovftool 3.0.1 (build-801290)
2013-04-12T09:38:22.263-07:00 [7F987B01E740 verbose 'Default'] Using home directory: /home/evan/.ovftool
2013-04-12T09:38:22.263-07:00 [7F987B01E740 verbose 'Default'] OvfTool Environment:
--> /X:httpTimeout = "0"
--> /X:imageReadSize = "262144"
--> /X:logToConsole = "true"
--> /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"
--> /fencedMode = "bridged"
--> /prgPath = "/usr/lib/vmware-ovftool"
--> /source = "vcloud://vclouddirector.intapp.net/"
--> /vCloudTemplate = "false"
-->
2013-04-12T09:38:22.270-07:00 [7F987B01E740 verbose 'Default'] Done initializing libs
2013-04-12T09:38:22.270-07:00 [7F987B01E740 verbose 'Default'] Determining source
2013-04-12T09:38:22.270-07:00 [7F987B01E740 verbose 'Default'] Determining target
2013-04-12T09:38:22.302-07:00 [7F986BFFF700 verbose 'Default'] CURL: header data removed
2013-04-12T09:38:22.617-07:00 [7F986BFFF700 verbose 'Default'] CURL: header data removed
2013-04-12T09:38:22.617-07:00 [7F986BFFF700 verbose 'Default'] CURL: header data removed
2013-04-12T09:38:22.617-07:00 [7F986BFFF700 verbose 'Default'] CURL: header data removed
2013-04-12T09:38:22.617-07:00 [7F986BFFF700 verbose 'Default'] CURL: header data removed
2013-04-12T09:38:22.617-07:00 [7F986BFFF700 verbose 'Default'] CURL: header data removed
2013-04-12T09:38:22.617-07:00 [7F986BFFF700 verbose 'Default'] CURL: header data removed
2013-04-12T09:38:22.619-07:00 [7F987B01E740 verbose 'Default'] VCloud request body:
-->
2013-04-12T09:38:22.641-07:00 [7F987B01E740 verbose 'Default'] VCloud response body:
--> <?xml version="1.0" encoding="UTF-8"?>
--> <SupportedVersions xmlns="http://www.vmware.com/vcloud/versions" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/versionshttp://vclouddirector/api/versions/schema/versions.xsd">
-->     <VersionInfo>
-->         <Version>1.5</Version>
-->         <LoginUrl>https://vclouddirector.intapp.net/api/sessions</LoginUrl>
   ... schema output snipped ...
-->
2013-04-12T09:38:22.648-07:00 [7F987B01E740 verbose 'Default'] VCloud version used: 5.1

 

 

 

The end of the strace output:

 

[pid 15407] munmap(0x7f8b32f7c000, 135168) = 0
[pid 15407] munmap(0x7f8b32f9d000, 135168) = 0
[pid 15407] munmap(0x7f8b3cadb000, 135168) = 0
[pid 15407] write(6, "\25\3\1\0\30B& 2\7\30\3259W0n~(4\216\375\"\35\310c\211{+\350", 29) = 29
[pid 15407] close(6)                    = 0
[pid 15407] brk(0x2c17000)              = 0x2c17000
[pid 15407] brk(0x2c38000)              = 0x2c38000
[pid 15407] write(1, "2013-04-12T09:40:54.198-07:00 [7"..., 882013-04-12T09:40:54.198-07:00 [7F8B3CB7F740 verbose 'Default'] VCloud version used: 5.1
) = 88
[pid 15407] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
Process 15404 resumed
Process 15407 detached
[pid 15410] +++ killed by SIGSEGV (core dumped) +++
[pid 15409] +++ killed by SIGSEGV (core dumped) +++
[pid 15408] +++ killed by SIGSEGV (core dumped) +++
[pid 15411] +++ killed by SIGSEGV (core dumped) +++
<... wait4 resumed> [{WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV && WCOREDUMP(s)}], 0, NULL) = 15407
write(2, "/usr/bin/ovftool: line 23: 15407"..., 91/usr/bin/ovftool: line 23: 15407 Segmentation fault      (core dumped) "$OVFTOOL_BIN" "$@"
) = 91
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, 0x7fff27453e98, WNOHANG, NULL) = -1 ECHILD (No child processes)
rt_sigreturn(0xffffffffffffffff)        = 0
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7f70fceb44a0}, {0x43f140, [], SA_RESTORER, 0x7f70fceb44a0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(255, "", 409)                      = 0
exit_group(139)                         = ?

Viewing all 34499 articles
Browse latest View live


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