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

VM to OVF w/ OVFTOOLS Error

$
0
0

Hi,

 

Using ESXi 6.0.0, ovftool 4.2

 

I am trying to export a VM in a standalone ESXi to OVF using the following sintaxys:

 

C:\Program Files\VMware\VMware OVF Tool>ovftool "vi://root:pass@esxiip/ha-datacenter?ds=\[SSD Datastore\] nubodb_gima/nubodb.vmx" c:\nubodb-ovf\

But it is showing: Error: Locator does not refer to an object: vi://root@esxiip/ha-datacenter?ds=\[SSD%20Datastore\]%20nubodb_gima/nubodb.vmx

VM is located in:  [SSD Datastore] nubodb_gima/nubodb.vmx

 

I looked at the documentation and also the examples provided by ovftool but it is not working. I'll apreciate any help.

 

Gracias,


CD-ROM can not be connected

$
0
0

Hi all,

 

I am trying to convert a iso to ova file through VMWare XML (SDK/API) which is working fine with ESXI 5.0 and ovftool 2.0.0 but not working with ESXI 6.5 and ovftool 4.3.0 , we have tried with ovftool 2.0.0 on esxi 6.5 and it has failed.

 

Note :

 

We are getting error as CD-ROM not able to connect

 

Warning: Failed to connect remote device (CDROM and Floppy)

 

Failure: Encountered a fatal build error!

Basically it is failing when it is trying to install guest OS on a transit VM , I believe it is looking to mount the iso file but is failing

 

Can anyone please help me resolve this issue.

 

Thanks in advance

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

Create OVF with flat vmdk

$
0
0

Hey,

 

I'm trying to build a utility that builds an OVF, given a flat.vmdk and a .vmdk with the descriptor. But I've found that only streamOptimized disks will export properly, however they only take embedded descriptors. I'm using VSphere 4 to deploy an ovf.

 

In the ovf, I have the disk format to be ovf:format="http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized". This works perfectly fine until VSphere gets to reading the vmdk file where it gives the error message "Error uploading file C:\path\to\scsi0_0.vmdk to server. I/O exception while reading VMDK header", where the header is,

 

# Disk DescriptorFile
version=1
CID=fffffffe
parentCID=ffffffff
createType=streamOptimized
# Extend description
RW 16777216 FLAT "scsi0_0-flat.vmdk"
# The Disk Data Base
#DDB
ddb.virtualHWVersion = "7"
ddb.adapterType = "lsilogic"
ddb.geometry.heads = "64"
ddb.geometry.sectors = "32"
ddb.geometry.cylinders = "8192"

 

 

I guess my question is, does deploying ovfs support any other format other than streamOptimized where I can use a flat.vmdk and a .vmdk?

 

Thank you,

Kyle

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

Deployment from OVA format.

$
0
0

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.

Could not look up host [username]. Proper password, but will not convert

$
0
0

Hey all. I know I am using proper syntax, but it seems like there's a missing service running on my esx cluster. I am able to log in with vSphere, but cannot use ovftool to export a stopped server in my ESX 4.0 cluster environment.

 

command I am using:

 

ovftool vi://[username]:[password]@vi://192.168.77.111/[serverid] d:\[serveridoutput].ovf

 

the error I am receiving is as follows:

 

Error: Could not lookup host: [username]

Completed with errors

 

 

Now it's interesting because the server does seem to know that I am using a proper user/pass because if I make a mistake on the password, I am given another chance to log in, until I miss three tries. If I enter the correct password, it seems to almost connect, then fails out with the above error. I would *REALLY* appreciate some help with this guys.

 

Thanks in advance!

Is it possible to deploy the OVF in Workstation?

$
0
0

Hi,

 

I would like to deploy an ovf into my workstation for testing purposes. Is there any way to do that? When I try to import it, I get this:

 

The import failed because ... ova did not pass OVF specification conformance or virtual hardware compliance checks.

Click Retry to relax OVF specification and virtual hardware compliance checks and try the import again, or click Cancel to cancel the import. If you retry the import, you might not be able to use the virtual machine in VMware Workstation.

 

and this (after clicking the "Retry" button):

 

Line 149: Unsupported element 'Property'.

 

That specific line contains this:

 

<Property ovf:key="vamitimezone"

 

The whole "property" is

 

<Property ovf:key="vamitimezone"

                ovf:type="string"

                ovf:userConfigurable="true"

                ovf:value="Etc/UTC"

                ovf:qualifiers="ValueMap{&quot;Pacific/Samoa&quot;, &quot;Pacific/Auckland&quot;, &quot;US/Hawaii&quot;, &quot;US/Alaska&quot;, &quot;US/Pacific&quot;, &quot;US/Mountain&quot;, &quot;US/Central&quot;, &quot;US/Eastern&quot;, &quot;America/Caracas&quot;, &quot;America/Argentina/Buenos_Aires&quot;, &quot;America/Recife&quot;, &quot;Etc/GMT-1&quot;, &quot;Etc/UTC&quot;, &quot;Europe/London&quot;, &quot;Europe/Paris&quot;, &quot;Africa/Cairo&quot;, &quot;Europe/Moscow&quot;, &quot;Asia/Baku&quot;, &quot;Asia/Karachi&quot;, &quot;Asia/Calcutta&quot;, &quot;Asia/Dacca&quot;, &quot;Asia/Bangkok&quot;, &quot;Asia/Hong_Kong&quot;, &quot;Asia/Tokyo&quot;, &quot;Australia/Sydney&quot;, &quot;Pacific/Noumea&quot;, &quot;Pacific/Fiji&quot;}">

        <Label ovf:msgid="application.timezone.label"/>

        <Description ovf:msgid="application.timezone.description"/>

      </Property>

 

It is a 2 VMs OVF (vcOPS). I tried creating the VM and adding the vmdks but there are so many OS errors during OS start-up that I think that maybe (hopefully) there's an easier way to do this.

 

Any help is more than welcome

 

Regards,

elgreco81


Specifying ?ip=[ip] in locator results in "Locator does not refer to an object" error

$
0
0

I have a setup where I am accessing vCenter and an ESXi host through a NAT layer. If I try to deploy directly to vCenter, ovftool automatically tries to connect to the ip address of the ESXi host behind the NAT layer, which fails.

 

It looks something like this:

 

[root@ovfimporter mnt]# date; ovftool --datastore="PayGo Storage" --net:"VLan 4=DedicatedPortGroup_NNNN" CUST/CUST.ovf vi://matthew.wallace@10.10.10.1/Customer\ Datacenter/host/PayGo\ Cluster/Resources/Paygo/NNNN\ \(abc44060-35dc-438a-8c79-6bc7586082ab\)/ ;date

Tue Oct  8 10:18:43 MDT 2013

Opening OVF source: CUST/CUST.ovf

The manifest validates

Enter login information for target vi://10.10.10.1/

Username: matthew.wallace

Password: *********

Opening VI target: vi://matthew.wallace@10.10.10.1:443/Customer%20Datacenter/host/PayGo%20Cluster/Resources/Paygo/NNNN%20(abc44060-35dc-438a-8c79-6bc7586082ab)/

Deploying to VI: vi://matthew.wallace@10.10.10.1:443/Customer%20Datacenter/host/PayGo%20Cluster/Resources/Paygo/NNNN%20(abc44060-35dc-438a-8c79-6bc7586082ab)/

Transfer Failed

Transfer Failed

Error: Lost connection to target

Completed with errors

Tue Oct  8 10:20:19 MDT 2013

 

Looking at netstat, I saw a hung connection to 443 of one of the ESX hosts in that PayGo Cluster:

 

tcp    1 192.168.0.105:46167     172.17.0.10:443        

SYN_SENT

In this case, 172.17.0.10 is the "real" IP of one of the esx hosts in the PayGo cluster managed by that vCenter, which I can reach from the client running the ovftool only by using the NAT ip of 10.10.10.100.

 

So, I tried to specify the external ip of that host. Per the ovftool 3.5 user guide:

 

 

To convert an OVF package to a vCenter Server, use the following syntax:

> ovftool /ovfs/my_vapp.ovf vi://username:pass@my_vc_server/?ip=10.20.30.40

(Uses a managed ESXi host’s ip address.)


 

Given that, I tried using several syntaxes:

 

ovftool --datastore="PayGo Storage" --net:"VLan 4=DedicatedPortGroup_NNNN" CUST/CUST.ovf vi://matthew.wallace@10.10.10.1/Customer\ Datacenter/host/PayGo\ Cluster/Resources/Paygo/NNNN\ \(abc44060-35dc-438a-8c79-6bc7586082ab\)/?ip=10.10.10.100

 

or even just the simplest version to see if I can get a prompt for going further down in the locator tree:

 

ovftool --datastore="PayGo Storage" --net:"VLan 4=DedicatedPortGroup_NNNN" "vi://matthew.wallace@10.10.10.1/?ip=10.10.10.100"

 

I invariably get a result like this:

 

The manifest validates

Enter login information for target vi://10.10.10.1/

Username: matthew.wallace

Password: *********

Error: Locator does not refer to an object: vi://matthew.wallace@10.10.10.1:443/?ip=10.10.10.100

Completed with errors

 

Outside of the brief mention of the "ip=xxx" param mentioned in the ovftool userguide I've been unable to find any reference to someone successfully using this parameter so I'm uncertain if this is a bug, my not understanding the intention of the parameter as specified in the OVF tool guide, or me using bad syntax.

Static IP given during OVA deployment doesnt take effect post deployment

$
0
0

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,

ovftool VM->ova/f fails with SHA1 digest of file . . . disk.iso does not match manifest"

$
0
0

I'm trying to create an OVA file from an installed VM.  If I try creating it with ovftool 3.5, it downloads everything completely then gives me the following error:

SHA1 digest of file https://172.31.68.10:443/ha-nfc/52cca89a-6cde-c7a7-0810-25ff2197d3d6/disk-1.iso does not match manifest
and then deletes the file(s) it generated.

 

I am using compress=0 and --noImageFiles so i don't get the install iso.

 

If I manually go into Edit Settings and remove the cdrom, then 3.5 creates the ova correctly.

 

If I use ovftool 2.0, it succeeds even without manually removing the cdrom iso.

 

I've seen posts where users get the same error I do when they are going ova/f to vm and the answer is to delete the manifest.   Since all of the files are deleted after the error message, I don't have the option to delete the locally created manifest.

 

Is there a way to keep the files around even after a manifest error?

 

Does anyone know why ovftool 3.5 would fail in this case and 2.0 would word?  Has there been some deprecation between the two of them?

 

Thanks,
Mike

vmware convertor P2V question

$
0
0

Hi,

I would like to convert a physical server to an ovf file. my question is that my server have 2 nic cards and I have install in one of them a specific driver, I would like to know if the driver will convert it self to virtual with the server or will I need to install it again in the vm machine.

 

Regards,

 

Michel Vaillancourt

How to deploy Replication Server 6.1 with ovftool?

$
0
0

Hi,

 

Im trying to deploy Replication Server 6.1 using ovftool v4.1

I have figured out some properties but I'm getting this errors when trying to set them.


"Property vami.netmask0.vSphere_Replication.Appliance is not user configurable"


How can i do to be able to set IP and net mask without using an IP Pool ?

 

The OVF say:

    <ProductSection ovf:class="vami" ovf:instance="vSphere_Replication_Appliance" ovf:required="false">

      <Info>VAMI Properties</Info>

      <Category>Networking Properties</Category>

      <Property ovf:key="ip0" ovf:userConfigurable="true" ovf:type="string" vmw:qualifiers="Ip('Management Network')">

        <Label>Management Network IP Address</Label>

        <Description>The IP address for this interface.</Description>

      </Property>

      <Property ovf:key="netmask0" ovf:userConfigurable="true" ovf:type="string" vmw:qualifiers="Netmask('Management Network')">

        <Label>Management Network Netmask</Label>

        <Description>The netmask or prefix for this interface.</Description>

      </Property>

      <Property ovf:key="gateway0" ovf:userConfigurable="true" ovf:type="string" vmw:qualifiers="Gateway('Management Network')">

        <Label>Management Network Default Gateway</Label>

        <Description>The default gateway address for this VM.</Description>

      </Property>

 

Must be a way to do this with ovftool.

ovftool 4.2.0 has a broken --allowAllExtraConfig

$
0
0

4.2.0 is bundled into the current build of Fusion10:

ovftool --version

VMware ovftool 4.2.0 (build-6230482)

 

This version has a busted --allowAllExtraConfig flag, so some VMs will not export to OVA, instead you get a slew of errors like this one:

- Line -1: Unsupported value 'disk.EnableUUID' for attribute 'key' on element 'ExtraConfig'.

Question Installing OVFtool in ESXi 5.5U1

$
0
0

So long story short I'm building a self deployment install using a Kickstart script that after the install uses wget to copyy the OVA files to the local data store and then deploys the OVAs, i have the script figured out however i can't seem to get ovftool installed on ESXi 5.5, everytime i try to run it i get the following error

 

env: can't execute 'bash': No such file or directory

 

this happens even after making the file executable, here's the whole command

 

~ # cd /tmp

 

 

 

/tmp # mkdir ovf

 

 

 

/tmp # cd ovf/

 

 

 

/tmp/ovf # wget http://10.10.10.4/OVA/VMware-ovftool-3.5.0-1274719-lin.x86_64.bundle

Connecting to 10.10.10.4 (10.10.10.4:80)

VMware-ovftool-3.5.0 100% |*******************************| 40125k  0:00:00 ETA

 

 

 

/tmp/ovf # chmod +x VMware-ovftool-3.5.0-1274719-lin.x86_64.bundle

 

 

 

/tmp/ovf # ./VMware-ovftool-3.5.0-1274719-lin.x86_64.bundle

env: can't execute 'bash': No such file or directory

 

 

 

/tmp/ovf # sh ./VMware-ovftool-3.5.0-1274719-lin.x86_64.bundle

env: can't execute 'bash': No such file or directory

 

 

 

/tmp/ovf # /bin/sh ./VMware-ovftool-3.5.0-1274719-lin.x86_64.bundle

env: can't execute 'bash': No such file or directory


OVF and BIOS Settings

$
0
0

Hi,

 

is it possible to include the nvram-file in the OVF-File oder how to tranport BIOS-Settings with OVF.

 

regards.

Hans-Peter

TAM, EMEA-Central

VMware

A quick note on using a domain login for ovftool

$
0
0

I didn't find this documented anywhere else, so I wanted to note that, if you want to use windows domain accounts in the authentication process for ovftool without specifying it interactively, you must specify the \ character using %5c, as in:

 

ovftool --acceptAllEulas --net:nat=mgmt-net --datastore=nfs-1 --name=Ubuntu-test Ubuntu.vmwarevm/Ubuntu.vmx vi://WINDOMAIN%5cAdministrator:password@10.10.10.100/dcName/host/cluster-name

Could not look up host [username]. Proper password, but will not convert

$
0
0

Hey all. I know I am using proper syntax, but it seems like there's a missing service running on my esx cluster. I am able to log in with vSphere, but cannot use ovftool to export a stopped server in my ESX 4.0 cluster environment.

 

command I am using:

 

ovftool vi://[username]:[password]@vi://192.168.77.111/[serverid] d:\[serveridoutput].ovf

 

the error I am receiving is as follows:

 

Error: Could not lookup host: [username]

Completed with errors

 

 

Now it's interesting because the server does seem to know that I am using a proper user/pass because if I make a mistake on the password, I am given another chance to log in, until I miss three tries. If I enter the correct password, it seems to almost connect, then fails out with the above error. I would *REALLY* appreciate some help with this guys.

 

Thanks in advance!

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.

How to use ovftool command line utility Video Tutorial

Viewing all 34499 articles
Browse latest View live


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