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

OVA to VMX using OVFTool in Mac OSx Terminal Problem

$
0
0

Hello,

 

I am new to OVFTool  and am having difficulty using it in Terminal on my MacBook Pro to convert an OVA (created by exporting my WinXp virtual machine from within VirtualBox), to a VMX file for use in VMWare Fusion on my MacBook Pro.

 

I have installed the OVFTool on my boot drive (partition) which is named "LFP OS", in the folder:  /Library/VMWare/OVFTool/.

 

I have the OVA file on my data drive (partition) which is named "LFP Data" in the folder: /Virtual Machines/WinXP.ova.

 

I want to create a virtual machine file (VMX) in the same location as the soure that I can then import into VMWare Fusion.  I have gone through the OVFTool User Guide, forums, Google etc. and cannot get it to work properly.  It may be as simple as my Terminal syntax being off.  Anyway, please help.

 

Here is what I used in Terminal:

 

LFP-MacBook-Pro:virtual machines nils$
LFP-MacBook-Pro:virtual machines nils$ pwd
/volumes/lfp data/virtual machines
LFP-MacBook-Pro:virtual machines nils$ ./Volumes/LFP\ OS/Library/VMWare/OVFTool/ovftool /Volumes/LFP\ Data/Virtual\ Machines/WinXP.ova /Volumes/LFP\ Data/Virtual\ Machines/WinXP.vmx
-bash: ./Volumes/LFP OS/Library/VMWare/OVFTool/ovftool: No such file or directory
LFP-MacBook-Pro:virtual machines nils$

 

Thanks for your time!

 

Regards,

SBNL


Scripting ovftool

$
0
0

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

Is there any sample I can start from?

Regards

marius

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?

Convert ovf template to vsx

$
0
0

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

MAC ovftool not working

$
0
0

When I try to fun ovftool from the terminal I get the error message

 

'ovftool: command not found'

 

i.e. m'ovftool Photo_[Work]/VirtualBoxMachines/copyxp\ Base\ V.vmx Photo_[Work]/VBConversions/xpvb.ovf'

 

???

 

Thanks.

 

Pedro

getting following error while login

$
0
0

C:\Program Files\VMware\VMware OVF Tool>ovftool  --machineOutput --acceptAllEula
s --verifyOnly E:\vmdk2008\Windows2008\Windows2008P2V.vmx   vcloud://suresh:suresh1@10.137.90.73:443?vapp=my_test1_tempst1_temp
ERROR
+ <Errors>
+ <Error>
+ <Type>ovftool.system.error</Type>
+ <LocalizedMsg>
+ Incorrect login: vcloud://10.137.90.73/
+ </LocalizedMsg>
+ </Error>
+ </Errors>

RESULT
+ ERROR

 

 

But my login credentials are correct(VCD user details). Do I need to do any thing specifically

vapprun and property labels

$
0
0

Hi,

 

sorry if it's the wrong forum - vapprun doesn't have its own.

 

I am using vapprun "def-property" to add a few OVF properties to a vApp, before repackaging the vApp as an OVA file. I am able to define a number of properties, and they are handled correctly by both vapprun and vSphere. But I am unable to define the properties' display label, so that the user will see "Please enter an IP address: " instead of simply "ip".

 

Thanks,

    Yaron

Error: Failed to open disk: Test.vmdk

$
0
0

Hello all,

 

I am having a problem with the ovftool.

 

Here's what i did.

 

1)I created a VM running CentOS.

 

2)These are the 3 files that i got.

 

Test.vmx

 

Test.vmdk (Descriptor File)

 

# Disk DescriptorFile

version=1

CID=5046e880

parentCID=ffffffff

createType="vmfsPreallocated"


# Extent description

RW 83886080 VMFS "Test-flat.vmdk" 0


# The Disk Data Base

#DDB


ddb.virtualHWVersion = "4"

ddb.geometry.cylinders = "83220"

ddb.geometry.heads = "16"

ddb.geometry.sectors = "63"

ddb.adapterType = "lsilogic"

 

Test-flat.vmdk

 

3) This is the command that i ran

 

ovftool "Test.vmx" "Test_New.ova"

 

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

Please help!

 

Thank you


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

Custom OVF Property in my Virtual appliance

$
0
0

I'm trying to create an additional property in my VM that I build with VMware Studio so that I can use OVFTool to pass a value for the property when I deploy the VM to a vCenter.

 

The property looks like that shown in red.  But when I invoke OVFTool to give a value to this property, what am I supposed to be using? 

 

Something like this I can't get to work:

 

    ovftool  <...>  --prop.ConfigurationManagementServer.My_VM_Name= 10.1.2.3   <..>

 

Thanks for any hints,

CJ

 

        <Section xsi:type="vadk:IpAssignmentSection_Type">

                <Info>Supported IP assignment schemes</Info>

                <vmw:IpAssignmentSection ovf:required="false" vmw:protocols="IPv4,IPv6" vmw:schemes="">

                        <Info>Supported IP assignment schemes</Info>

                </vmw:IpAssignmentSection>

        </Section>

        <Section xsi:type="vadk:PropertySection_Type">

                <Info/>

                <Property ovf:key="ConfigurationManagementServer" ovf:type="string" ovf:userConfigurable="true" ovf:value="puppet" ovf:qualifiers="MinLen(0),MaxLen(65535)">

                        <Label>Configuration Management Server (Optional)</Label>

                        <Description>Your configuration management server&apos;s fully-qualified name (e.g. config.avamar.com ). Blank if none.</Description>

                </Property>

        </Section>

        <Section xsi:type="vadk:AnyOVFSection_Type">

                <Info>

            Unknown OVF elements in this element will be passed directly

            to the OVF output descriptor without interpretation

        </Info>

        </Section>

        <Section xsi:type="vadk:UpdateSection_Type">

                <Info/>

                <vadk:Repository vadk:url="" vadk:username="" vadk:password="" vadk:passwordFormat="base64"/>

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.

VMware Workstation Natively

$
0
0

okay, I know this isn't developed yet, but I thought I would ask about.

first I love VMware workstation, amazing tool. and most VMware products are quick and easy for the average user.

 

okay to meat of the topic. What would it take to install VMware natively withOUT a host operating system"

 

hear me out. I really love virtualization, and the option it gives to run ANY OS, but the drawback would be the HOST OS, I WISH there was a way to install a very simple OS that VMware creates or uses, to launch it's workstation. maybe call it "LiteStation". then with the same use of the workstation, load your OS, or OS's in many cases, being able to with such a low foot print might be able to open some doors for new technology.

 

now, the simple OS, it need limited capabilities, like driver install (preferably win drivers as they are the most common and most ready, but Linux drivers would be the most understandable), limited programs or possibly no program installs. but it need enough to use the full potential of the machine, so x64 would be required along with VT-x/EPT or AMD-V/RVI + acceleration etc.... with no browsers there won't be a need to install much security, just force it to connect, but not use the network connection except to switch it over to bridge the OS's in VM-LS.

 

I'm sure this software is not out there yet. but think of the possibilities, it would become a 'virtual' boot-loader... running all OS's in a virtual environment, utilizing the max potential of multi-platform. I could see the diminish of speed as we allocate a % of the native hardware for use by the VM's, but still. No longer would dual booting be a norm, having to restart just to use a different OS, but booting both would increase. sure we have native, but sometimes I don't want to mess with Win/Lin/OS just to get to the one I want. and I feel the native OS limits the use of the virtual machine.

 

or maybe something like this is already running.... I just haven't found out.

 

Anyways thanks for the listening... who knows maybe VMware might want to implement something like LiteStation in their software arsenal....

Accipitor

ovftool - Managing Resource Pools

$
0
0

Hello,

 

I am using vSphere ESX (4 or 5).

I am writing automatic scripts using esxcfg and ovftool (on windows) commands.

 

I have some questions:

 

1. How can i create Resource Pool's? (if it cannot be done using ovftool, is there another way? maybe using esxcfg?)

 

2. What is the exact syntax of ovftool to deploy under that Resource Pool?

I am looking for something like this:

ovftool --noImageFiles -ds=dsName --net:"Network1"="Network2" --name=MyVM "C:/MyVM.ovf" "vi://user:password@192.168.1.1/Resource/myResource"

or anything else that can help.

 

 

Thanks!

erelh

Export ESXi VM using ovftool in Linux

$
0
0

Hello,

 

I am trying to use the ovftool in Linux to export a VM running on ESXi 4.0 to an OVF package with the following syntax:

 

$ovftool "vi://root@192.168.X.XXX?ds=[datastore1]test-vm/test-vm.vmx" /home/ovfs/test1.ovf

 

But I always get the error: Datacenter object not found

 

The path to the vmx file is:

test-vm/test-vm.vmx

 

If I have a standalone ESXi (no vCenter present) what Datacenter name should I use?, I have tried with "Datacenter", "Default" but nothing seems to work.

 

Any help is highly appreciated.

 

Thanks.

 

 

Juan Aristizabal.


Not Able to Export to OVF

$
0
0

Not sure if I'm not getting the syntax correct, but I am attempting to export a vm in OVF format directly from a ESXi 4.1 host.

 

I have tried several different commands, but all have failed.

 

Any help with the Syntax to export the OVF directly from a Host would be greatly apprecaited.

 

ovftool --compress=9 "vi://host1/ha-datacenter/3PAR-LUN6/server1" "Z:\server1.ovf"

 

ovftool --compress=9  "vi://host1/DC1/3PAR-LUN6/server1/server1.vmx" "Z:\server1.ovf"

 

ovftool --compress=9  "https://host1/DC1/server1/server1.vmx" "Z:\server1.ovf"

Creating MyvApp.ova from VM1.ova and VM2.ova

$
0
0

Hi All,

 

I have two .ova's with me. Both are SLES based and are highly customised. Designed to work togethar.

 

1) Is it possible using ovftool to create a vApp containing these two vms.? 

2) And also adding custom vApp properties to it.?

 

I can do this manually using vsphere client. And also using powercli scripts.

But I wanted to do it in an offline manner i.e. not involving any running esx host.

 

Please share your thoughts.

 

Thanks

Nikunj

Cannot convert OVA to VMX using OVFTOOL / Using workstation throws system Error

$
0
0

I am facing an issue. I have an ova file of size 362 MB. I am using OVFTOOL to convert ova to vmx file. I get the below error during conversion,

Also tried with option --chunkSize=200mb, but with no luck. Same error as below.

 

Transfer Failed

Error: System error: (Unknown exception)

Completed with errors.

 

In Vmware workstation 8, i get the below error when i am trying to import the OVA file with the below steps,

a). From the File menu on the VMware Workstation 8 menu bar, select Open.

b).  Browse to the .ovf or .ova file and click Open and Import.

 

I get the below error.  Anyone who could help me with this?

workstation.jpg

Linux OVFTOOL 3.5.0 - Errored with "Lost Connection"

$
0
0


Greetings

We have developed a perl script in Linux that uses ovftools to deploy our VMs onto a vCenter installation.  We recently tried this on a new customers lab and ran into a weird error not seen before.  The issue is when ovftool is called to deploy the VM it starts fine and a see the VM created in vCenter but after a period of time I have seen a couple different errors:


One time the error was:


mtc@orchestrator-vm-pristine:~$ ovftool --noSSLVerify --net:'data=data' --net:'ipc=ipc' --net:'mgmt=mgmt' --datastore='datastore1 (4)' --name='vmme01-mgmt-1' --machineOutput "/usr/local/epc/data/working/b98d9334-c966-4ff8-a2d3-ab8bcff6a3d8/epc-os-mgmt-vm/epc-os-mgmt-vm.ovf" vi://Administrator%40vSphere.local:WaffleMan5000%21@10.30.0.130/MTS-MME-LAB/host/side-1/10.30.0.79
MANIFEST
+ <ManifestValidate valid="true"/>
PROGRESS
ERROR
+ <Errors>
+ <Error>
+ <Type>ovftool.abort</Type>
+ <LocalizedMsg>
+ Execution aborted
+ </LocalizedMsg>
+ </Error>
+ </Errors>
/usr/bin/ovftool: line 23: 2288 Segmentation fault (core dumped) "$OVFTOOL_BIN" "$@"
mtc@orchestrator-vm-pristine:~$ ovftool -v
VMware ovftool 3.5.0 (build-1274719)



After trying a couple different times I started seeing a different error, <Type> Lost connection </Type>.  This all works fine in other installations so there is something unique to this install.  Is there a document that describes the packet flow and setup for ovftools pushing the ovf/ova's out to the host?  Were are logs stored to be able to track down the issue?


 


Thanks


Eric Wolf


 

 

OVF Specification 1.0 Annex D

$
0
0

 

The VMWare ovf-tool includes a few schema files in ovftool/schemas/vmware that include the header:

 

"Remark: The OVF Specification 1.0 Annex D defines a set of relaxations on how the this XML Schema 1.0 definition is to be interpreted."

 

The latest version of the OVF specification available on dmtf.org, 1.0.0, ends at Annex C - there is no Annex D.

 

 

Any idea where this may be obtained?

 

 

Thanks!

 

 

Mike

 

 

 

 

 

Viewing all 34499 articles
Browse latest View live


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