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
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
Hello
I have an old ESXi 3.5, so if I understand well it supports only OVF v0.9.
But with OVF tool I can only generate OVF v1...
Is there a way to generate OVF v0.9 ? or is my ESXi 3.5 just unusable ?
Valerie
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
Each search for my question leads me here; I found a similar issue, but have been getting consistent failures.
I have a server VM that is in ESXi 4.1.0 502767 that I have exported to OVF Template using vSphere 5.0, then either directly in VMware Workstation 8.0.1 528992 or using ovftool 2.1.0 (build-467744) I get failures. The first failure was "target does not support CPU validation".
Following a thread I found in this list, I attempted to comment out the CpuCompatibilitySection and deleting the .mf file. This resulted in a parse error.
My next attempt was to simply delete the CpuCompatibilitySection from the .ovf file, which it appeared to do something, created a .vmx file and reported successful completion, but when trying to open the .vmx file, I get an internal error.
I also tried to do an open of the ovf file with Workstation and it appears to complete, but fails on open with again an internal error.
I've restarted Workstation and tried to open the ovf file, which appeared to complete. Including the ovftool.log and what appears to be the session log.
I'm running VMware Workstation on an HP xw6600 workstation with 8G under Windows 7 Enterprise x64.
The goal is to export a copy of a production VM server to workstation to test a software upgrade locally as I have in the past.
If there is a better way to get a copy to my workstation, please direct me to the appropriate how-to references.
Thanks!
--alan
Hello, I'm trying to export a VM as an OVA from an ESXi 4.0 host through our vCenter Server again version 4.0. At present my command looks like this:
ovftool.exe vi://<IP Address>/< Datacenter>/vm/<Folder Name>/<Folder Name>/<Folder Name> C:/<Path To OVA Store>/<VM Name.OVA>
The final folder name given above is the location of the VMX / VMDK files for the VM. I'm using version 2.1.0-467744-win-i386 of the ovftool from a Windows XP VM running SP3.
Issuing the above command appears to kick off the ova export process but it quickly dies and returns my prompt. The only output after issuing the command is a request for a username and password which I supply followed by the words "Opening VI source".
Any ideas where I'm going wrong?
Right now I'm trying to sign an OVF Package and I receive these sets of errors when I do:
C:\Program Files\VMware\VMware OVF Tool>ovftool.exe --privateKey= "C:\Documents
and Settings\jhamilto\My Documents\Downloads\bin\myself.pem" C:\tmp\test2.ovf
Opening OVF source: C:\Documents and Settings\jhamilto\My Documents\Downloads\bi
n\myself.pem
Warning: No manifest file
Error:
- Line 1: Could not parse the document: 'syntax error'.
Completed with errors
C:\Program Files\VMware\VMware OVF Tool>ovftool.exe --privateKey= "C:\Documents
and Settings\jhamilto\My Documents\Downloads\bin\myself.pem" \C:\tmp\test2.ovf \
C:\tmp\SignedTest.ovf
Error: Unexpected option: \C:\tmp\SignedTest.ovf
Completed with errors
C:\Program Files\VMware\VMware OVF Tool>ovftool.exe --privateKey="C:\Documents a
nd Settings\jhamilto\My Documents\Downloads\bin\myself.pem" \C:\tmp\test2.ovf \C
:\tmp\SignedTest.ovf
Error: Failed to open file:
Completed with errors
Do I have a syntax error or is there something else that I am missing?
Hello:
I am working in a Windows environment with ovftool 3.01.
When running the ovftool in a directory that contains an ovf and a .ovftool file, the ovftool does not seem to pick up the local configuration file.
> ovftool --help config
This will show as "Currently no local configuration options in .ovftool"
I have tried a number of permutations: ".ovftool", "<name>.ovftool", even "ovftool.cfg" on the off chance it is looking for the global name.
But none of these options work.
When I move the file to C:\Documents and Settings\$USERNAME\VMware\ovftool.cfg, which makes it global, it works just fine. So, I know the file is working.
But I am managing dozens of unique OVAs, and so having the local configuration option would be most helpful.
Am I misnaming the local config? Or is this a known bug or linux-only feature?
Thanks,
Andrew
I am trying to deploy OVAs using ovftool 3.0.1 to an ESXi 5.1 host. When deploying VCSA 5.1.0b it works as expected with the following command:
I have confirmed that I can deploy the OVA manually. I have also confirmed the MD5SUM and tried the --disableVerification flag on ovftool. Any idea what I am missing?
Hi Guys,
I'm trying to use the below command using ovftool and have not been successful
ovftool vi://user:pass@localhost?moref=vim.vm.VirtualMachine:<VM GuestName>.
every time I receive the message "vmodl.fault.ManagedObjectNotFound". How to query using moref using VM Guest name.
like when I do "ovftool vi://user:pass@localhost" - I receive the details about the VM Guests.
-Mahesh
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.
Hi i've an OVF virtual appliance with hardware version 4 how can i upgrade it to hardware version 7 and convert to OVA as well? it seems ovftools does not have the ability to upgrade to a higher hardware version.
Any suggestions how i can perform such a task?
Thanks for any info
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.
Hello,
I been working on the setting properties in the ovf template and this is working fine so far.
Basically, I add property in the product section under property tag and read its value during deployment time using
/usr/sbin/vmtoolsd --cmd 'info-get guestinfo.ovfEnv'
<ProductSection ovf:class="com.palm.product" ovf:instance="1">
<Info>info section</Info>
<Product>LimeLite</Product>
<Vendor>Palm</Vendor>
<Property ovf:key="UserName" ovf:type="string" ovf:userConfigurable="true" ovf:value="Admin" ovf:qualifiers="MinLen(0),MaxLen(65535)">
<Label>UserName</Label>
<Description>Creates an user account with the Name provided</Description>
</Property>
</ProductSection>
Now, I need get password for the user account which we create during deployment. I looked into property data types and I couldn't figure out
the password type that masks the password entered in the dailog during deployment time.
Is password functionality avaialbe in the ovf template already ? If yes, please point me to the location from where I can make use of this.
The property type which are avaialbe in the settings is:
String, StringChoice, Integer, Real, Boolean, External IP Address, vApp IP Address.
I coudn't find password type in here.
Not sure if this is possible but is there a way if I were to chunk an OVF export into 2GB chunks so I can burn the files to a DVD, I can then import the OVF from the dvd's withouth having to copy all the chunks into a common location? I am thinking something along the lines of a ghost image across mutliple dvd's? Anyone have any luck with this? Perhaps is it possible to package the ovf tool on the first disc of the media, have it boot into an environment ask for a virtual center IP and credentials and then start the import and prompt for the next disc?
Thanks in advance.
Hello There,
OvfTool: 3.0.1
vCloud Director(VCD): 5.1
I use ovftool 3.0.1 to upload an ovf file to VCD and the server return error after upload completely.
It works previously while use ovftool 2.1 with VCD 1.5
I use ovftool 3.0.1 command line to upload template like this:
ovftool --X:logFile=upload.log --machineOutput --powerOn --acceptAllEulas --ipAllocationPolicy=transientPolicy "--net:mynetwork01=mynetwork01" --name=test88t "/tmp/ova/vwin1/vwin1.ovf" "vcloud://xxx:xxx@mynetwork/?org=zhongnan&vappTemplate=test88t&vdc=zhongnan-ALLOC-02&catalog=ISO%20Library" | while read x ; do echo $x; done
The ovf uploaded to VCD is complete, however I got an error result:
<?xml version="1.0" encoding="UTF-8"?>
<InstantiateVAppTemplateParams name="test88t" deploy="false" powerOn="false" xmlns="http://www.vmware.com/vcloud/v1.5"
xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1">
<InstantiationParams>
<NetworkConfigSection>
<ovf:Info>Configuration parameters for logical networks</ovf:Info>
<NetworkConfig networkName="mynetwork">
<Configuration>
<ParentNetwork href="https://mynetwork/api/network/xxx-xxx-xxx-xxx"
type="application/vnd.vmware.vcloud.network+xml" name="mynetwork-01"/>
<FenceMode>bridged</FenceMode>
<AddressingMode>POOL</AddressingMode>
</Configuration>
<IsDeployed>true</IsDeployed>
</NetworkConfig>
</NetworkConfigSection>
</InstantiationParams>
<Source href="https://mynetwork/api/vAppTemplate/vappTemplate-aaa-bbb-ccc-ddd"/>
<AllEULAsAccepted>true</AllEULAsAccepted>
</InstantiateVAppTemplateParams>
2013-06-11T04:33:17.786-07:00 [7FA9BA208720 verbose 'Default'] VCloud response body:
--> <?xml version="1.0" encoding="UTF-8"?>
--> <Error xmlns="http://www.vmware.com/vcloud/v1.5" minorErrorCode="BAD_REQUEST" message="Bad request
--> - Unexpected JAXB Exception
--> - cvc-complex-type.2.4.a: Invalid content was found starting with element 'AddressingMode'. One of '{"http://www.vmware.com/vcloud/v1.5":RetainNetInfoAcrossDeployments,
"http://www.vmware.com/vcloud/v1.5":Features, "http://www.vmware.com/vcloud/v1.5":d, "http://www.vmware.com/vcloud/v1.5":RouterInfo}' is expected."
majorErrorCode="400" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5http://sd1.aiscloud.net/api/v1.5/schema/master.xsd"></Error>
-->
2013-06-11T04:33:17.788-07:00 [7FA9BA208720 verbose 'Default'] Backtrace:
--> backtrace[00] rip 00007fa9b42a0f44 Vmacore::System::Stacktrace::CaptureWork(unsigned int)
--> backtrace[01] rip 00007fa9b406bca4 Vmacore::System::SystemFactoryImpl::CreateQuickBacktrace(Vmacore::Ref<Vmacore::System::Backtrace>&)
--> backtrace[02] rip 00007fa9b4001ef8 Vmacore::Throwable::Throwable(std::string const&)
--> backtrace[03] rip 000000000061e7c1 /usr/lib/vmware-ovftool/ovftool.bin() [0x61e7c1]
--> backtrace[04] rip 000000000060fca8 /usr/lib/vmware-ovftool/ovftool.bin() [0x60fca8]
--> backtrace[05] rip 000000000064eb65 /usr/lib/vmware-ovftool/ovftool.bin() [0x64eb65]
--> backtrace[06] rip 000000000064fd7a /usr/lib/vmware-ovftool/ovftool.bin() [0x64fd7a]
--> backtrace[07] rip 0000000000569c84 /usr/lib/vmware-ovftool/ovftool.bin() [0x569c84]
--> backtrace[08] rip 00000000004c4b6e /usr/lib/vmware-ovftool/ovftool.bin() [0x4c4b6e]
--> backtrace[09] rip 00000000004c7be4 /usr/lib/vmware-ovftool/ovftool.bin() [0x4c7be4]
--> backtrace[10] rip 00007fa9b1cb1c4d /lib/libc.so.6(__libc_start_main+0xfd) [0x7fa9b1cb1c4d]
--> backtrace[11] rip 00000000004a2f79 std::basic_streambuf<char, std::char_traits<char>>::xsgetn(char*, long)
Please let me if this is a bug in ovftool to integrate VCD 5.1.
Thanks,
Jeff
We are working on a project that analyzes datacenter utilization and decides how to optimize VMs. We just released our VMware data collector. The data collectors continuously gets utilization data from your VMs and sends the data to our server. The data you provide will help improve our modeling and optimization engine. We only collect block box VM utilization metrics and we have no idea what is running in your datacenter. If you would like to participate, our data collector can be found here:
Hello people,
Just wondering if OVF Export tool supports exporting Windows 2000 VM's?
I have downloaded and installed the OVF tool but when i try and copy/deploy the OVF to the server i get a message below.
Error: Failed to open OVF descriptor
Completed with errors
Any help you guys can give would be great. thanks
I've downloaded the recent version of ovftool (VMware-OvfTool-1.0.0-117388.i386.tar.gz) to use it on VMWare ESX 3.5 server
It shows the following error in CLI:
[root@vmserver ovftool]# ./ovftool ./ovftool: line 29: ./ovftool.bin: cannot execute binary file [root@vmserver ovftool]# uname -a Linux vmserver.local 2.4.21-57.ELvmnix #1 Wed Oct 15 19:00:05 PDT 2008 i686 i686 i386 GNU/Linux
Unfortunately we can not use version for windows.
Has someone any solution?
I have a problem with converting ovf or importing it to esx server.
ovftool starts, detects ovf and after progress of 99%, I am getting: