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

OVFtool error - Line 38: Unsupported value '16' for element 'VirtualQuantity'.

$
0
0

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?


Validations on OVF Properties

$
0
0


Hi,

 

I am customizing an OVF template XML by adding OVF properties.  I have a few questions related to validating the properties.

 

1) If a property doesn't succeed the validation test (say, it falls short of a MinLength check), then I see a red warning right below the field (while deploying the OVF in a vCenter). But the user is still able to proceed and click Submit. Is there a way to stop the user from proceeding when any validation criteria is not met?

 

2) One of my OVF properties is an FQDN and I am looking for a way to validate the format of the FQDN. I want it to be of the format (hostprefix + domain name). Is there is a way to do so?

 

Thanks,

Sabareeswar

How to alter "Power on after deployment" checkbox's default behavior?

$
0
0

Hi All,

I want to alter the "Power on after deployment" checkbox's default behavior, which is part of the last page of deployment. By default this box is not checked, is there a setting I can include in the OVF file to toggle its behavior? Is it even possible? I tried to google it but hard luck!

Poweron.JPG

Thanks in Advance!

- Punit

Does anyone know how to sign ova with timestamp?

$
0
0

I am creating ova file using VMware OVF tool .

And I want to use public Code Signing Certificate like published by Globalsign or Verisign.

But current OVF tool doucment is not introduce how to sign with timestamp.

So, when public cert is expired, just ova file is also expired.

This is problem.

Ex: Using vsphere client call deploying OVF Template, then display signing is expired.

 

Document

https://www.vmware.com/support/developer/ovf/ovf350/ovftool-350-userguide.pdf

 

Deploy an OVF Template

http://pubs.vmware.com/vsphere-4-esx-vcenter/index.jsp?topic=/com.vmware.vsphere.vmadmin.doc_41/vsp_vm_guide/working_with_ovf_templates/t_import_a_virtual_appliance.html

 

Will signed code still be valid after the Code Signing Certificate expires?

 

The digital signature on code will not expire, when a timestamping service is used. A time stamp shows the validity of the certificate at the time the code was signed. Unless you’re adding additional code to your application, a new signature will not need to be applied even if the certificate used to initially sign the code expires. GlobalSign Code Signing Certificates include a time stamp feature.

https://www.globalsign.com/support/faq/objectfaq.php

Unable To convert .vmx to .ovf

$
0
0

HI

 

I got Workstation 7.1.5

I want to migrate my VM on to Esxi5.5

I tried to convert .vmx to .ovf with Command (ovftool E:\VM\VM4\VM4.vmx E:\OVF\OVF4\VM4.ovf)

But its failing with error :

C:\Program Files\VMware\VMware OVF Tool>ovftool E:\VM\VM4\VM4.vmx E:\OVF\OVF4\VM

4.ovf

Opening VMX source: E:\VM\VM4\VM4.vmx

Error: Failed to open disk: Windows Server 2008 x64-cl2.vmdk

Completed with errors

Unable to deploy an ovf to datacenter folder

$
0
0



We have a specific folder used for certain vm's that I need to deploy to.


As an example I can view the current list of vm's with:


ovftool vi://myadmin:mypass@ourvcenter/DATACENTER/vm/myvms

Error: Found wrong kind of object (Folder). Possible completions are:
vmname1
vmname2
vmname3
 


Now let’s say I want to import an ovf to myvms/vmname4 I get a "Locator does not refer to an object" error.


ovftool --datastore=mydatastore --network=mynetwork vi://myadmin:mypass@ourvcenter/DATACENTER/vm/myvms/vmname4 newvm.ovf

Opening VI source: vi://myadmin:mypass@ourvcenter/DATACENTER/vm/myvms/vmname4
Error: Locator does not refer to an object: vi://myadmin:mypass@ourvcenter/DATACENTER/vm/myvms/vmname4
Completed with errors


I have tried variations of using —name and —vmfolder and changing the vi: path without success.


I can import directly to esxi and to host through vcenter but we are then having to go back into vcenter to move these vms to the correct folder.


Is there a way to get this into the "right" place up front?

Assign static IP address to a VM using esxCLI

$
0
0

Hi,

 

        I want to assign  a static IP address to an already deployed VM on a ESXi host using esxcli as I want this step to be automated, but I can't seem to find a way to do this. All that i found was to configure the management network of the ESX host using the esxcli. Can somebody help me out with this?

 

 

Thanks,

Abhinav

Using OVF tool - Need command line to run with ovftool.exe to Upgrade SSO on LINUX VM from 5.5 to 6.0

$
0
0


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&gt;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/



OVF tool fails to convert .vmx to ova

$
0
0

Hello, new to here and couldnt find a solution to my issuue.

Downloaded VMware OVF Tool 4.1.0

I am trying to convert GNS3 WorkBench 12.3a into an OVA to install as a guest on ESXi 5.5

GNS3WB123.vmx is the file that I'm trying to convert to OVA

 

I have tried following the directions from https://www.vmware.com/support/developer/ovf/ovf10/ovftool_10_userguide.pdf

 

I continue to get failed messages. Is there anyone here that can assist with the OVF tool so I can run GNS3 as a guest, instead of installing on a guest Windows or Linux program?

 

Thanks

Failed to deploy VM with eagerZeroed disk provision with ovftool

$
0
0


 


Hi, I tried to deploy a VM with -dm=eagerZeroedThick by using ovftool, but I got following error: Error: Unsupported disk mode specified


Does anyone know why or give me some hints about debugging this issue?


 


Thanks

ovftool.http.openCould not open URL ftp://xxx.ova (response code: 350)

$
0
0

Sometimes I got the error message when using ovftool command to deploy VM on ESXi host:

 

+ <Errors>

+ <Error>

+ <Type>ovftool.http.open</Type>

+ <LocalizedMsg>

+ Could not open URL ftp://xxx.ova (response code: 350)

+ </LocalizedMsg>

+ <Arg>

+ ftp://xxx.ova

+ </Arg>

+ <Arg>

+ 350

+ </Arg>

+ </Error>

+ </Errors>

 

Please help, thanks.

Error exploit ova to vmx

$
0
0

hi,

i'm very newbie on terminal and i get this error when i tried to convert ova file to vmx. It says completed with errors but I can't locate any file, anywhere, and also the whole process is to fast for OVF Tolls to do anything.

What am i missing? Thanks

Miguel

MCR:~ mcr$ /Applications/VMware\ OVF\ Tool/ovftool --lax /Users/mcr/Downloads/untitled\ folder/Ubuntu\ FEUP/Ubuntu\ FEUP.ova exploit.vmx

Opening OVA source: /Users/mcr/Downloads/untitled folder/Ubuntu FEUP/Ubuntu FEUP.ova

Opening VMX target: exploit.vmx

Error: OVF Package is not supported by target:

 - Line 92: Unsupported element 'StorageItem'

 - Line 101: Unsupported element 'StorageItem'

 - Line 110: Unsupported element 'EthernetPortItem'

Completed with errors

OVF property keys for vCC Node 2.7

$
0
0

Anyone could point me to information about OVF property keys for vCC Node 2.7?

 

I have tried automatic deployment :

 

--allowExtraConfig --acceptAllEulas --powerOn --name=VCCMT --numberOfCpus:VCCMT=1 --coresPerSocket:VCCMT=1 --diskMode=thick --datastore="DatastoreC" --network="Simple" --prop:vami.DNS.VMware_vCloud_Connector_Node="10.10.10.60" --prop:vami.netmask0.VMware_vCloud_Connector_Node="255.255.255.192" --prop:vami.ip0.VMware_vCloud_Connector_Node="10.10.10.120" --prop:vami.gateway.VMware_vCloud_Connector_Node="10.10.10.1" "C:\ovf\vCCNode-2.7.1.0-2651441_OVF10.ovf" " vi://root:password@vC"

 

But I see returned:


C:\Program Files\VMware\VMware OVF Tool>.\ovftool.exe  --allowExtraConfig --acce

ptAllEulas --powerOn --name=VCCMT --numberOfCpus:VCCMT=1 --coresPerSocket:VCCMT=

1 --diskMode=thick --datastore="DatastoreC" --network="Simple" --prop:vami.DNS.V

Mware_vCloud_Connector_Node="10.10.10.60" --prop:vami.netmask0.VMware_vCloud_Con

nector_Node="255.255.255.192" --prop:vami.ip0.VMware_vCloud_Connector_Node="10.1

0.10.120" --prop:vami.gateway.VMware_vCloud_Connector_Node="10.10.10.1" "C:\ovf\vC

CNode-2.7.1.0-2651441_OVF10.ovf" " vi://root:XXXX"

Opening OVF source: C:\ovf\vCCNode-2.7.1.0-2651441_OVF10.ovf

The manifest validates

Source is signed and the certificate validates

Opening VI target: vi://root@X

Deploying to VI: vi://root@X

Transfer Completed

Powering on VM: VCCMT

Warning:

- OVF property with key: 'vami.DNS.VMware_vCloud_Connector_Node' does not exist

s.

- OVF property with key: 'vami.gateway.VMware_vCloud_Connector_Node' does not e

xists.

- OVF property with key: 'vami.ip0.VMware_vCloud_Connector_Node' does not exist

s.

- OVF property with key: 'vami.netmask0.VMware_vCloud_Connector_Node' does not

exists.

Completed successfully

 

Thanks,

Error deploying ovf file created with OVFTOOL 1.0 VMware converter 4.0.1. Please help

$
0
0

I converted a Virtual Machine installed on a ESX 3.5 server to a virtual

appliance (*.ovf ) file using the OVFTOOL1.0.Now I am trying to

 

convert this virtual appliance to deploy as a virtual machine on a

different ESX server using same converter 4.0.1 and it is not working.

 

 

 

I get following error

 

 

 

 

 

 

 

 

 

Error: Failed to clone disk C:\Documents and

Settings\*\Desktop\*\viso.vmdk on the virtual machine 'viso'.

 

 

If I try

importing the same virtual appliance viso.ovf file with VMware Infrastructure client 2.5 I get

the following error "An

 

 

error occured while parsing the OVF descriptor: Unable to parse xml element 'Envelop'"

 

 

 

Please suggest what might be wrong. I am stuck and need help. I will need to make the VM from OVF file with Any UI Deployer

 

 

 

 

 

Thanks,

 

 

Lachi

 

 

ovftool download problem

$
0
0

 

Having problems installing  VMware-ovftool-2.0.1-260188-lin.i386.sh on a linux host.

 

 

When I try to install I get

 

VMware OVF Tool 2.0 installer script

Copyright VMware 2010

.........extracting archive........

 

Checksum validation failed for archive.

(If you use FTP, make sure to set it to binary mode)

The MD5 checksum is d14f14ab14f994131cf0d2fad2b318e3 not ff672047cbf2caf725bc1d295c7bbdc0

 

 

Am I downloading the wrong file?

 

 


run ovftool error , anyone helps?

$
0
0

i am using ovftool (verisn 2.01), and i have got some error  as below, anyone ever met these? SOS

 

(1)

command:"C:\Program Files\VMware\VMware OVF Tool\ovftool.exe" --X:logToConsole "e:\shared\Windowns2003EServerSp2\Win2003.vmx" "e:\shared\1\Win2003_0.vof"
error information:

[2011-03-08 14:51:19.640 03480 verbose 'ovftool'] Subscribing to signal: 2 (SIGINT)

 

[2011-03-08 14:51:19.640 03480 verbose 'ovftool'] Subscribing to signal: 4 (SIGILL)

 

[2011-03-08 14:51:19.640 03480 verbose 'ovftool'] Subscribing to signal: 22 (SIGABRT)

 

[2011-03-08 14:51:19.640 03480 verbose 'ovftool'] Subscribing to signal: 8 (SIGFPE)

 

[2011-03-08 14:51:19.640 03480 verbose 'ovftool'] Subscribing to signal: 15 (SIGTERM)

 

[2011-03-08 14:51:19.640 03480 verbose 'ovftool'] [ovfTool.cpp] Using home directory C:\Documents and Settings\tom\Application Data\VMware\ovftool.cfg

 

[2011-03-08 14:51:19.640 03480 verbose 'ovftool'] [ovfTool.cpp] OvfTool Environment:

/X:fencedMode = "bridged"

/X:imageReadSize = "262144"

/X:logToConsole = "true"

/X:maxNumberOfTermSignals = "5"

/X:maxRedirects = "256"

/X:maximalDeltaConfSize = "8"

/X:maximalDeltaTreeSize = "6"

/X:progressSmoothing = "60"

/X:vimSessionTimeout = "600"

/authdPortSource = "902"

/authdPortTarget = "902"

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

/source = "e:\shared\Windowns2003EServerSp2\Win2003.vmx"

/target = "e:\shared\1\Win2003_0.vof"

 

 

[2011-03-08 14:51:19.656 03480 verbose 'ovftool'] [ovfTool.cpp] Done initializing libs

 

[2011-03-08 14:51:19.656 03480 verbose 'ovftool'] [ovfTool.cpp] Determining source

 

[2011-03-08 14:51:19.671 03480 verbose 'ovftool'] [ovfTool.cpp] Determining target

 

Opening VMX source: e:\shared\Windowns2003EServerSp2\Win2003.vmx

[2011-03-08 14:51:19.750 03480 error 'ovftool'] CoreDump: ExternalCoreMaster was not setup

 

[2011-03-08 14:51:19.750 03480 error 'ovftool'] CoreDump: ExternalCoreMaster was not setup

 

[2011-03-08 14:51:19.765 03480 info 'ovftool'] CoreDump: Writing minidump

 

[2011-03-08 14:51:19.843 03480 panic 'ovftool']

 

Panic: Win32 exception: Access Violation (0xc0000005)

   Read (0) at address 00000000

   rip: 7855b9f0 rsp: 0012fb14 rbp: 0012fb20

   rax: 00000000 rbx: 0012fc78 rcx: 00000000

   rdx: 00000004 rdi: 029a3d38 rsi: 0012fc78

 

Backtrace:

backtrace[00] rip 01b9936d (no symbol)

backtrace[01] rip 01b06fa4 (no symbol)

backtrace[02] rip 01b07517 (no symbol)

backtrace[03] rip 01bb2d49 (no symbol)

backtrace[04] rip 01bb2e6d (no symbol)

backtrace[05] rip 01ba72f4 (no symbol)

backtrace[06] rip 7857dca0 (no symbol)

backtrace[07] rip 7857d4eb (no symbol)

backtrace[08] rip 7857d8b6 (no symbol)

backtrace[09] rip 7857d9d3 (no symbol)

backtrace[10] rip 7857db8a (no symbol)

backtrace[11] rip 7c9232a8 (no symbol)

backtrace[12] rip 7c92327a (no symbol)

backtrace[13] rip 7c92e48a (no symbol)

backtrace[14] rip 78487155 (no symbol)

backtrace[15] rip 0044661f (no symbol)

backtrace[16] rip 0044aedf (no symbol)

backtrace[17] rip 0040cfba (no symbol)

backtrace[18] rip 0058799b (no symbol)

backtrace[19] rip 7c817077 (no symbol)

 

 

Section for VMware Workstation, pid=3292, version=e.x.p, build=build-260188, option=Release

 

[2011-03-08 14:51:19.843 03480 panic 'ovftool'] Win32 exception: Access Violation (0xc0000005)

 

   Read (0) at address 00000000

 

   rip: 7855b9f0 rsp: 0012fb14 rbp: 0012fb20

 

   rax: 00000000 rbx: 0012fc78 rcx: 00000000

 

   rdx: 00000004 rdi: 029a3d38 rsi: 0012fc78

 

(2)

command:"C:\Program Files\VMware\VMware OVF Tool\ovftool.exe" --X:logToConsole "e:\shared\Windows2003EESp2\Clone of Windows Server 2003 Enterprise Edition.vmx" "e:\shared\1\Clone of Windows Server 2003 Enterprise Edition_0.vof"
error information:

[2011-03-08 14:51:21.281 01468 verbose 'ovftool'] Subscribing to signal: 2 (SIGINT)

 

[2011-03-08 14:51:21.281 01468 verbose 'ovftool'] Subscribing to signal: 4 (SIGILL)

 

[2011-03-08 14:51:21.281 01468 verbose 'ovftool'] Subscribing to signal: 22 (SIGABRT)

 

[2011-03-08 14:51:21.281 01468 verbose 'ovftool'] Subscribing to signal: 8 (SIGFPE)

 

[2011-03-08 14:51:21.281 01468 verbose 'ovftool'] Subscribing to signal: 15 (SIGTERM)

 

[2011-03-08 14:51:21.281 01468 verbose 'ovftool'] [ovfTool.cpp] Using home directory C:\Documents and Settings\tom\Application Data\VMware\ovftool.cfg

 

[2011-03-08 14:51:21.281 01468 verbose 'ovftool'] [ovfTool.cpp] OvfTool Environment:
/X:fencedMode = "bridged"
/X:imageReadSize = "262144"
/X:logToConsole = "true"
/X:maxNumberOfTermSignals = "5"
/X:maxRedirects = "256"
/X:maximalDeltaConfSize = "8"
/X:maximalDeltaTreeSize = "6"
/X:progressSmoothing = "60"
/X:vimSessionTimeout = "600"
/authdPortSource = "902"
/authdPortTarget = "902"
/prgPath = "C:\Program Files\VMware\VMware OVF Tool"
/source = "e:\shared\Windows2003EESp2\Clone of Windows Server 2003 Enterprise Edition.vmx"
/target = "e:\shared\1\Clone of Windows Server 2003 Enterprise Edition_0.vof"

 


[2011-03-08 14:51:21.296 01468 verbose 'ovftool'] [ovfTool.cpp] Done initializing libs

 

[2011-03-08 14:51:21.296 01468 verbose 'ovftool'] [ovfTool.cpp] Determining source

 

[2011-03-08 14:51:21.296 01468 verbose 'ovftool'] [ovfTool.cpp] Determining target

 

Opening VMX source: e:\shared\Windows2003EESp2\Clone of Windows Server 2003 Enterprise Edition.vmx
[2011-03-08 14:51:21.359 01468 verbose 'ovftool'] OVF Descriptor: <?xml version="1.0" encoding="UTF-8"?>
<!--Generated by VMware ovftool 2.0.1 (build-260188), UTC time: 2011-03-08T06:51:21.359375Z-->
<Envelope vmw:buildId="build-260188" xmlns="http://schemas.dmtf.org/ovf/envelope/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/wscim/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/CIM_VirtualSystemSettingData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <References>
    <File ovf:href="e%3a%5cshared%5cWindows2003EESp2%5cWindows%20Server%202003%20Enterprise%20Edition-cl1-000005.vmdk" ovf:id="file1"/>
  </References>
  <DiskSection>
    <Info>Virtual disk information</Info>
    <Disk ovf:capacity="8" ovf:capacityAllocationUnits="byte * 2^30" ovf:diskId="vmdisk1" ovf:fileRef="file1" ovf:format="http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized"/>
  </DiskSection>
  <NetworkSection>
    <Info>The list of logical networks</Info>
    <Network ovf:name="bridged">
      <Description>The bridged network</Description>
    </Network>
  </NetworkSection>
  <VirtualSystem ovf:id="vm">
    <Info>A virtual machine</Info>
    <Name>Win 2003SP2 Vulnerrability</Name>
    <OperatingSystemSection ovf:id="69" vmw:osType="winNetEnterpriseGuest">
      <Info>The kind of installed guest operating system</Info>
    </OperatingSystemSection>
    <VirtualHardwareSection>
      <Info>Virtual hardware requirements</Info>
      <System>
        <vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
        <vssd:InstanceID>0</vssd:InstanceID>
        <vssd:VirtualSystemIdentifier>Win 2003SP2 Vulnerrability</vssd:VirtualSystemIdentifier>
        <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>1 virtual CPU(s)</rasd:ElementName>
        <rasd:InstanceID>1</rasd:InstanceID>
        <rasd:ResourceType>3</rasd:ResourceType>
        <rasd:VirtualQuantity>1</rasd:VirtualQuantity>
      </Item>
      <Item>
        <rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits>
        <rasd:Description>Memory Size</rasd:Description>
        <rasd:ElementName>384MB of memory</rasd:ElementName>
        <rasd:InstanceID>2</rasd:InstanceID>
        <rasd:ResourceType>4</rasd:ResourceType>
        <rasd:VirtualQuantity>384</rasd:VirtualQuantity>
      </Item>
      <Item ovf:required="false">
        <rasd:Address>0</rasd:Address>
        <rasd:Description>USB Controller</rasd:Description>
        <rasd:ElementName>usb</rasd:ElementName>
        <rasd:InstanceID>3</rasd:InstanceID>
        <rasd:ResourceType>23</rasd:ResourceType>
      </Item>
      <Item>
        <rasd:Address>0</rasd:Address>
        <rasd:Description>SCSI Controller</rasd:Description>
        <rasd:ElementName>scsiController0</rasd:ElementName>
        <rasd:InstanceID>4</rasd:InstanceID>
        <rasd:ResourceSubType>lsilogic</rasd:ResourceSubType>
        <rasd:ResourceType>6</rasd:ResourceType>
      </Item>
      <Item>
        <rasd:Address>1</rasd:Address>
        <rasd:Description>IDE Controller</rasd:Description>
        <rasd:ElementName>ideController1</rasd:ElementName>
        <rasd:InstanceID>5</rasd:InstanceID>
        <rasd:ResourceType>5</rasd:ResourceType>
      </Item>
      <Item ovf:required="false">
        <rasd:AddressOnParent>0</rasd:AddressOnParent>
        <rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
        <rasd:Description>Floppy Drive</rasd:Description>
        <rasd:ElementName>floppy0</rasd:ElementName>
        <rasd:InstanceID>6</rasd:InstanceID>
        <rasd:ResourceType>14</rasd:ResourceType>
      </Item>
      <Item ovf:required="false">
        <rasd:AddressOnParent>0</rasd:AddressOnParent>
        <rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
        <rasd:ElementName>cdrom1</rasd:ElementName>
        <rasd:InstanceID>7</rasd:InstanceID>
        <rasd:Parent>5</rasd:Parent>
        <rasd:ResourceType>15</rasd:ResourceType>
      </Item>
      <Item>
        <rasd:AddressOnParent>0</rasd:AddressOnParent>
        <rasd:ElementName>disk1</rasd:ElementName>
        <rasd:HostResource>ovf:/disk/vmdisk1</rasd:HostResource>
        <rasd:InstanceID>8</rasd:InstanceID>
        <rasd:Parent>4</rasd:Parent>
        <rasd:ResourceType>17</rasd:ResourceType>
      </Item>
      <Item>
        <rasd:AddressOnParent>2</rasd:AddressOnParent>
        <rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
        <rasd:Connection>bridged</rasd:Connection>
        <rasd:Description>E1000 ethernet adapter on &quot;bridged&quot;</rasd:Description>
        <rasd:ElementName>ethernet0</rasd:ElementName>
        <rasd:InstanceID>9</rasd:InstanceID>
        <rasd:ResourceSubType>E1000</rasd:ResourceSubType>
        <rasd:ResourceType>10</rasd:ResourceType>
      </Item>
    </VirtualHardwareSection>
    <AnnotationSection ovf:required="false">
      <Info>A human-readable annotation</Info>
      <Annotation>445端口漏洞服务,未做任何服务安装和修改。

 

Windows2003 企业版 sp2</Annotation>
    </AnnotationSection>
  </VirtualSystem>
</Envelope>

 

Opening OVF target: e:\shared\1\Clone of Windows Server 2003 Enterprise Edition_0.vof
Error:

 

- Line 106: Could not parse the document: 'not well-formed (invalid token)'.

vCenter 5 virtual appliance configuration

$
0
0

Hello..

 

Is it possible to give vCenter appliance ip, gateway, netmask etc via ovftool? Same way as to Orchestrator.

 

--prop:vami.DNS.VMware_vCenter_Server_Appliance=10.0.0.69  --prop:vami.gateway.VMware_vCenter_Server_Appliance=10.0.0.1  --prop:vami.ip0.VMware_vCenter_Server_Appliance=10.0.0.96  --prop:vami.netmask0.VMware_vCenter_Server_Appliance=255.255.255.0

 

When running these commands with ovftool, it doesnt give any errors  or anything, but it doesnt pass the variables forward either. Clearly  vCenter appliance doesnt have any "intelligence" for such feature.

 

ovftool --acceptAllEulas --skipManifestCheck  --datastore=storage-1 --diskMode=thin --name=vcenter --prop:vami.DNS.VMware_vCenter_Server_Appliance=10.0.0.69   --prop:vami.gateway.VMware_vCenter_Server_Appliance=10.0.0.1   --prop:vami.ip0.VMware_vCenter_Server_Appliance=10.0.0.96   --prop:vami.netmask0.VMware_vCenter_Server_Appliance=255.255.255.0

/VMware-vCenter-Server-Appliance-5.0.0.3324-472350/VMware-vCenter-Server-Appliance-5.0.0.3324-472350_OVF10.ovf.backup  vi://10.0.0.10

 

So any tips? Do I need to create some external media and modify the appliance to add it in, which will pass the needed variables to appliance, and script which will run from init.d on start and read those?

 

-k-

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"

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

Best way to export a VM as an OVF/OVA ?

$
0
0

Hi All,

 

Everytime I manually export a VM using vsphere client, I am getting the resultant ovf of much larger size. ( i.e. size of .vmdk's are much larger, increases by 10% everytime )
I looked at various temporary files and log files and deleted them before taking the ovf, but it also doesnt reduces the size significantly.
My vm doesnt do any huge IO on the disks.

 

Is there a best practice for exporting an ovf .? ( Ex. SLES based vms. )


Thanks

Nikunj

Viewing all 34499 articles
Browse latest View live


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