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.
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.
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.
Is it possible to query what compression was run against an OVF when it was created?
What is the default compression level for ovftool?
Hi all,
I have a "little" question. I have installed a new vCenter 5.5 in my farm and I would like to migrate all clusters/hosts to it. In my old vcenter there are a lot of vApps. How can migrate all without problems?
Thank you very much.
Matrix
Hi fellows,
I had deployed a virtual ESXi host on a physical ESXi and then I created an OVA file of that virtual host and then was trying to deploy the OVA after changing the IP, subnet mask and gateway properties of the OVA file. But when i used the probe mode to have a look at the class ID and other properties, I found them to be missing.
C:\Users\abhinav.srivastava>ovftool test1.ovf
OVF version: 1.0
VirtualApp: false
Name: vhost1
Download Size: 283.32 MB
Deployment Sizes:
Flat disks: 25.00 GB
Sparse disks: 325.44 MB
Networks:
Name: VM Network
Description: The VM Network network
Virtual Machines:
Name: vhost1
Operating System: otherlinux64guest
Virtual Hardware:
Families: vmx-08
Number of CPUs: 2
Cores per socket: 1
Memory: 2.18 GB
Disks:
Index: 0
Instance ID: 8
Capacity: 25.00 GB
Disk Types: SCSI-lsilogic
NICs:
Adapter Type: E1000
Connection: VM Network
So right now I am not able to change the OVA properties and deploy the virtual host. I need to do this as I want this step automated. Does anybody know why am I not able to see the properties of the OVA file. Am I going wrong somewhere. Kindly help!!
Thanks,
Abhinav
HI, I am using ovf tool.exe to upgrade of SSO from 5.5 to 6.0 on linux guest machine using windows as ovftool host as but not able to get the proper command .
My current command looks like below -
ovftool X:logFile=C:\log.txt "X:logLevel=verbose" --acceptAllEulas -ds=upgrade-3 --powerOn --X:waitForIp C:\folder\VMware-vCenter-Server-Appliance-6.0._OVF10.ova vi://root:vmware11@10.110.xx.xxx/
Please let me know if anyone has tried this earlier or any way to pass the config file as json or similar.
Any pointers will be much appriciated. Thanks in advance.
The log is as
2015-03-11T00:09:02.524-07:00 verbose -[02872] Curl session torn down
2015-03-11T00:09:02.524-07:00 verbose -[02872] Using vim API version: 5.5
2015-03-11T00:09:02.619-07:00 verbose -[02872] Determine if server is a standalone host or vpxd
2015-03-11T00:09:02.619-07:00 verbose -[02872] Login to server based on username and password
2015-03-11T00:09:02.619-07:00 verbose -[02872] Setting VI connection message locale (via login) to:
2015-03-11T00:09:02.620-07:00 verbose -[02872] HttpConnectionPoolImpl created. maxPoolConnections = 1; idleTimeout = 900000000; maxOpenConnections = 1; maxConnectionAge = 0
2015-03-11T00:09:18.754-07:00 verbose -[02872] Setup nfcService, used to get a ticket for uploading/downloading a disk.
2015-03-11T00:09:18.826-07:00 verbose -[02872] Get host or vc sslthumpprint.
2015-03-11T00:09:18.826-07:00 verbose -[02872] Keeping VI session alive
2015-03-11T00:09:18.849-07:00 verbose -[02872] Backtrace:
F:\vcsa-cli-installer\win32\ovftool>ovftool X:logFile=C:\log.txt "X:logLevel
=verbose" --acceptAllEulas -ds=upgrade-3 --powerOn --X:waitForIp --prop:guest
info.cis.appliance.ssh.enabled=True C:\folder\VMware-vCenter-Server-Appliance-
6.0.0.5100-964349_OVF10.ova vi://root:vmware@10.110.49.97/
it is simple to export ONE vm in vsphere client to one OVA file (File ->Export->Export OVF template, and then select ova in dropbox). But is there a way to export multiple VM to ONE OVA files? Can use ovftool to do that?
Any comment or hint is highly appreciated!
Hobby
I recieve the following error "- Unsupported hardware version: 3". Please assist. Converting a vmx to a ovf. Recieve error when vmx file is opened.
Hi all,
I am trying to implement an OVF support for some virtualization software, which is using raw images for disks. I use qemu-img to convert raw images to vmdk format. Then I use ovftool to convert ovf file into vmware instance.
When the file I have is a simple ovf descriptor + manifest + disk - all is fine, it works even if I'm using qemu-img without "compat6" option
When the disk is compressed or the OVF package is packed into OVA - there are errors being thrown. Moreover when I create OVA package with no disk, the conversion works.
Here is the fragment of results for the OVA file:
Writing VMX file: test_ova.vmx [2011-10-03 16:34:35.685 7F097D2C1720 verbose 'ovftool'] Using file size as progress measure Disk progress: 0%[2011-10-03 16:34:35.685 7F097D2C1720 verbose 'ovftool'] Ovf::GetFileSource as StreamVmdk failed. Exception: Cannot open disk source: Not a supported disk format (sparse VMDK version too old) Disk Transfer Failed Error: Failed to open source disk: 3f66f54d-a9fa-4aa8-806d-d757d6f34a59.disk0.vmdk [2011-10-03 16:34:35.685 7F097D2C1720 verbose 'ovftool'] Backtrace: [00] rip 00007f09767453e4 [01] rip 00007f09765e99d4 [02] rip 00007f097658e038 [03] rip 00000000004fef51 [04] rip 000000000054aaa5 [05] rip 000000000054ae78 [06] rip 000000000049c41a [07] rip 00007f0974e62c4d [08] rip 000000000047ec7a [2011-10-03 16:34:35.685 7F097D2C1720 verbose 'ovftool'] Deleting file: ./test_ova-disk1.vmdk
Same fragment when I unpack OVA and then run ovftool on the .ovf file:
Writing VMX file: test_ovf.vmx [2011-10-03 16:35:53.934 7F7E899C4720 verbose 'ovftool'] Using file size as progress measure Disk progress: 0%[2011-10-03 16:35:53.935 7F7E899C4720 verbose 'ovftool'] Ovf::GetFileSource as StreamVmdk failed. Exception: Cannot open disk source: Not a supported disk format (sparse VMDK version too old) Disk progress: 99%[2011-10-03 16:35:54.106 7F7E899C4720 verbose 'ovftool'] Ovf::GetFileSource: Opened 3f66f54d-a9fa-4aa8-806d-d757d6f34a59.disk0.vmdk as diskLib source [2011-10-03 16:35:54.106 7F7E899C4720 verbose 'ovftool'] Opening disk target /xcinstall-1.corp.google.com/VirtualLsiLogicController0:0 Disk Transfer Completed Completed successfully
Thank you.
I am attempting to determine an easy method to deploy .OVA templates for quick provisioning/deployment of VM's.
I have built VM baselines using a development vSphere cluster and exported the VM to .OVA using vSphere client. Those .OVA files reside on a Linux fileserver with ovftool installed on the system and network access to future ESXi and/or vSphere clusters.
Is it possible to 'deploy' the .OVA template from the Linux fileserver directly to a remote ESXi host's datastore and/or vSphere cluster datastore? I cant get it to work.
My OVA file:
[root@centos_lab1 u0]# ls -lha
total 5.9G
drwxr-xr-x. 3 root root 4.0K Jun 28 08:48 .
dr-xr-xr-x. 24 root root 4.0K Jun 25 11:30 ..
-rw-r--r-- 1 root root 5.9G Jun 24 10:01 test.ova
Attempting to deploy to ESXi host:
[root@centos_lab1 u0]# ovftool test.ova vi://root:test123@172.16.16.81
Opening OVA source: test.ova
Opening VI target: vi://root@172.16.16.81:443/
Error: No target datastore specified. Possible completions:
iSCSI-Large
ESX1_local_datastore
iSCSI-Equallogic
fusionio
Super_ISO
Completed with errors
[root@centos_lab1 u0]# ovftool test.ova vi://root:test123@172.16.16.81/iSCSI-Equallogic/
Opening OVA source: test.ova
Error: Locator does not refer to an object: vi://root@172.16.16.81:443ha-datacenter/host/esx1.lab.q9.com/Resources/iSCSI-Equallogic/
Completed with errors
Any idea what I am doing wrong here? Is what I am trying to do even possible with ovftool?
Greetings! Question in regards to OVFtool and how storage file systems are handled in VMWare.
I am using the OVFTool version 2.1.0 (Tried 3.5.0 with not much avail) to export multiple VMDK files or disks in a Virtual Machine (versions 7 and 8) to a multiple OVA files for each - at moment tool allows for consolidation of disks in a partitioned state into ONE OVA - Does anyone know of a work around or undocumented switch which can be used to create X # of virtual disks to X # of OVAs for import into another system?
Copying VMDKs is not a viable option in this case as want to remain with OVA standards.
Thank you!
I used the ovf tool with the export of an ova created in VirtualBox. I am getting an error:
The OVF package requires unsupported hardware.
Details: Line 83: OVF hardware element 'Resource Type' with instance ID 7: No support for the virtual hardware device type '35'.
I am not sure where to go and what value to change it to. Thanks for any advice that you can provide.
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:
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.
Hi Everyone,
I was trying to deploy a VM using the ovftool, I thought I would use the properties which are thrown from a "probe" of the OVA file.
ovftool http://server/files/builds/vpas/6.0.0/latest/vPAS-installer.ova
Properties:
ClassId: vami
Key: gateway
InstanceId vPAS
Category: Networking Properties
Label: Default Gateway
Type: string
Description: The default gateway address for this VM. Leave blank if DHCP is
desired.
ClassId: vami
Key: DNS
InstanceId vPAS
Category: Networking Properties
Label: DNS
Type: string
Description: The domain name servers for this VM (comma separated). Leave
blank if DHCP is desired.
ClassId: vami
Key: ip0
InstanceId vPAS
Category: Networking Properties
Label: Network 1 IP Address
Type: string
Description: The IP address for this interface. Leave blank if DHCP is
desired.
ClassId: vami
Key: netmask0
InstanceId vPAS
Category: Networking Properties
Label: Network 1 Netmask
Type: string
After having made sure that such properties exists from the probe, I tried to use them to give the VM a static IP post deployment, automatically.
ovftool --datastore="31_datastore" --acceptAllEulas --ipAllocationPolicy=fixedPolicy --name="vPAS_31_1" --powerOn --prop:ip0="172.16.121.115" --prop:netmask0="255.255.0.0" --prop:DNS="172.16.1.10" --prop:gateway="172.16.1.1" http://server/vpas/6.0.0/latest/vPAS-installer.ova vi://root:password@172.16.121.31/
Opening OVA source: http://server/files/builds/vpas/6.0.0/latest/vPAS-installer.ova
The manifest validates
Opening VI target: vi://root@172.16.121.31:443/
Deploying to VI: vi://root@172.16.121.31:443/
Transfer Completed
Powering on VM: vPAS_31_1
Warning:
- OVF property with key: 'DNS' does not exists.
- OVF property with key: 'gateway' does not exists.
- OVF property with key: 'ip0' does not exists.
- OVF property with key: 'netmask0' does not exists.
Completed successfully
Can someone please explain me whether this is a common problem ( from VMware ) or something I am doing wrong?
Thanks,
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?
Ovftool need to download 2.0.1 but vmware's website when I go to the download page tells me that is not, someone can provide me the tool, thanks
Hi Guys,
I'm getting the below error when using the OVFtool to convert an OVA file to VMX.
Error:
- Line 38: Unsupported value '16' for element 'VirtualQuantity'.
- Virtual machine has 16 virtual CPUs, but the host only supports 8. The number of virtual CPUs may be limited by the guest OS selected for the virtual machine or by the licensing for the host.
I am trying to solve it using the syntax option --viCpuResource=<shares>:<reservation>:<limit>
However I don't know what to denote in the placeholder <shares>
I have also read the OVFtool user guide, but it does not give any info on the viCpuResource option.
Can anyone give me some guidance here?
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?