Hi,
I am getting below error while depoying a OVF template. Please suggest.
Failed to Deploy:Unable to access file: server1.vmdk.
The process cannot access the file "fullpath of vmdkfile\server1.vmdk' because it is being used by another process.
Hi,
I am getting below error while depoying a OVF template. Please suggest.
Failed to Deploy:Unable to access file: server1.vmdk.
The process cannot access the file "fullpath of vmdkfile\server1.vmdk' because it is being used by another process.
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 am using a static OVF property of type 'password' in my virtual appliance.
Though we have an option to validate the password length using MinLength/Maxlength, I am not sure how to do more complex/custom validations.
For instance, is it possible to validate based on custom criteria such as following?
- Enforce at least one numeric or alphabet
- Allow certain special characters but not others
Are there any other ways this could be achieved?
Thanks
Sabareeswar
Installed ovftool 3.5 on CentOS 5.9. Install went without any errors, says Installation Successful.
Running ovftool yields about 5 errors similar to:
/usr/lib/vmware-ovftool/ovftool.bin: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /usr/lib/vmware-ovftool/libvmomi.so)
CentOS 5.9 doesn't support GLIBC 3.4.
The ovftool documentation says it supports CentOS 5 and 6.
What's the problem here?
Hi , there !
i got problem when i deploy a .ova file , when the process of deploying is around 98 99 % an error comes say u can't go any farther !!!
this is a complete log of what it says !!!
******************************************************************
C:\Documents and Settings\SOLMATE\Desktop>"C:\Program Files\VMware\VMware OVF Tool\ovftool.exe" --X:logToConsole "K:\Win 2008 X64 -Sharepoint 2 - IP_65.122 200G -8G(Ram).ova" k:\'
"C:\Program Files\VMware\VMware OVF Tool\ovftool.exe"' is not recognized as an internal or external command,operable program or batch file.
C:\Documents and Settings\SOLMATE\Desktop>"C:\Program Files\VMware\VMware OVF Tool\ovftool.exe" --X:logToConsole "K:\Win 2008 X64 -Sharepoint 2 - IP_65.122 200
G -8G(Ram).ova" k:\
2011-09-28T11:38:38.318+03:30 [05000 verbose 'Default'] Subscribing to signal: 2 (SIGINT)
2011-09-28T11:38:38.318+03:30 [05000 verbose 'Default'] Subscribing to signal: 4 (SIGILL)
2011-09-28T11:38:38.318+03:30 [05000 verbose 'Default'] Subscribing to signal: 22 (SIGABRT)
2011-09-28T11:38:38.318+03:30 [05000 verbose 'Default'] Subscribing to signal: 8 (SIGFPE)
2011-09-28T11:38:38.318+03:30 [05000 verbose 'Default'] Subscribing to signal: 15 (SIGTERM)
2011-09-28T11:38:38.318+03:30 [05000 verbose 'Default'] [ovfTool.cpp] Using home directory C:\Documents and Settings\SOLMATE\Application Data\VMware\ovftool.cfg
2011-09-28T11:38:38.318+03:30 [05000 verbose 'Default'] [ovfTool.cpp] OvfTool Environment:
--> /X:httpTimeout = "600"
--> /X:imageReadSize = "262144"
--> /X:logToConsole = "true"
--> /X:maxNumberOfTermSignals = "5"
--> /X:maxRedirects = "256"
--> /X:maximalDeltaConfSize = "8"
--> /X:maximalDeltaTreeSize = "6"
--> /X:progressSmoothing = "60"
--> /X:useMacNaming = "false"
--> /X:vCloudKeepTemplate = "true"
--> /X:vCloudTimeout = "3600"
--> /X:vimSessionTimeout = "600"
--> /authdPortSource = "902"
--> /authdPortTarget = "902"
--> /fencedMode = "bridged"
--> /prgPath = "C:\Program Files\VMware\VMware OVF Tool"
--> /source = "K:\Win 2008 X64 -Sharepoint 2 - IP_65.122 200G -8G(Ram).ova"
--> /target = "k:\"
-->
2011-09-28T11:38:38.396+03:30 [05000 verbose 'Default'] [ovfTool.cpp] Done initializing libs
2011-09-28T11:38:38.396+03:30 [05000 verbose 'Default'] [ovfTool.cpp] Determining source
2011-09-28T11:38:38.396+03:30 [05000 verbose 'Default'] [ovfTool.cpp] Determining target
Opening OVA source: K:\Win 2008 X64 -Sharepoint 2 - IP_65.122 200G -8G(Ram).ova
2011-09-28T11:38:38.490+03:30 [05000 verbose 'Default'] OVF Descriptor: <?xml version="1.0" encoding="UTF-8"?>
--> <!--Generated by VMware VirtualCenter Server, User: Administrator, UTC time: 2011-07-30T02:20:18.871093Z-->
--> <Envelope vmw:buildId="build-345043" 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="Win_2008_X64_-Sharepoint_2_-_IP_65.122__200G_-8G(Ram)-disk1.vmdk" ovf:id="file1" ovf:size="30856148480" />
--> <File ovf:href="Win_2008_X64_-Sharepoint_2_-_IP_65.122__200G_-8G(Ram)-file1.iso" ovf:id="file2" ovf:size="3735289856" />
--> </References>
--> <DiskSection>
--> <Info>Virtual disk information</Info>
--> <Disk ovf:capacity="200" ovf:capacityAllocationUnits="byte * 2^30" ovf:diskId="vmdisk1" ovf:fileRef="file1" ovf:format="http://www.vmware.com/interfaces
/specifications/vmdk.html#streamOptimized" ovf:populatedSize="45460160512" />
--> </DiskSection>
--> <NetworkSection>
--> <Info>The list of logical networks</Info>
--> <Network ovf:name="LAN">
--> <Description>The LAN network</Description>
--> </Network>
--> </NetworkSection>
--> <VirtualSystem ovf:id="Win 2008 X64 -Sharepoint 2 - IP:65.122 200G -8G(Ram)">
--> <Info>A virtual machine</Info>
--> <Name>Win 2008 X64 -Sharepoint 2 - IP:65.122 200G -8G(Ram)</Name>
--> <OperatingSystemSection ovf:id="1" vmw:osType="windows7Server64Guest">
--> <Info>The kind of installed guest operating system</Info>
--> <Description>Microsoft Windows Server 2008 R2 (64-bit)</Description>
--> </OperatingSystemSection>
--> <VirtualHardwareSection>
--> <Info>Virtual hardware requirements</Info>
--> <System>
--> <vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
--> <vssd:InstanceID>0</vssd:InstanceID>
--> <vssd:VirtualSystemIdentifier>Win 2008 X64 -Sharepoint 2 - IP:65.122 200G -8G(Ram)</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>4 virtual CPU(s)</rasd:ElementName>
--> <rasd:InstanceID>1</rasd:InstanceID>
--> <rasd:ResourceType>3</rasd:ResourceType>
--> <rasd:VirtualQuantity>4</rasd:VirtualQuantity>
--> </Item>
--> <Item>
--> <rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits>
--> <rasd:Description>Memory Size</rasd:Description>
--> <rasd:ElementName>8192MB of memory</rasd:ElementName>
--> <rasd:InstanceID>2</rasd:InstanceID>
--> <rasd:ResourceType>4</rasd:ResourceType>
--> <rasd:VirtualQuantity>8192</rasd:VirtualQuantity>
--> </Item>
--> <Item ovf:required="false">
--> <rasd:Address>0</rasd:Address>
--> <rasd:Description>USB Controller</rasd:Description>
--> <rasd:ElementName>USB controller</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>SCSI controller 0</rasd:ElementName>
--> <rasd:InstanceID>4</rasd:InstanceID>
--> <rasd:ResourceSubType>lsilogicsas</rasd:ResourceSubType>
--> <rasd:ResourceType>6</rasd:ResourceType>
--> </Item>
--> <Item>
--> <rasd:Address>1</rasd:Address>
--> <rasd:Description>IDE Controller</rasd:Description>
--> <rasd:ElementName>IDE 1</rasd:ElementName>
--> <rasd:InstanceID>5</rasd:InstanceID>
--> <rasd:ResourceType>5</rasd:ResourceType>
--> </Item>
--> <Item>
--> <rasd:Address>0</rasd:Address>
--> <rasd:Description>IDE Controller</rasd:Description>
--> <rasd:ElementName>IDE 0</rasd:ElementName>
--> <rasd:InstanceID>6</rasd:InstanceID>
--> <rasd:ResourceType>5</rasd:ResourceType>
--> </Item>
--> <Item>
--> <rasd:AddressOnParent>0</rasd:AddressOnParent>
--> <rasd:ElementName>Hard disk 1</rasd:ElementName>
--> <rasd:HostResource>ovf:/disk/vmdisk1</rasd:HostResource>
--> <rasd:InstanceID>7</rasd:InstanceID>
--> <rasd:Parent>4</rasd:Parent>
--> <rasd:ResourceType>17</rasd:ResourceType>
--> </Item>
--> <Item>
--> <rasd:AddressOnParent>0</rasd:AddressOnParent>
--> <rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
--> <rasd:ElementName>CD/DVD Drive 1</rasd:ElementName>
--> <rasd:HostResource>ovf:/file/file2</rasd:HostResource>
--> <rasd:InstanceID>8</rasd:InstanceID>
--> <rasd:Parent>5</rasd:Parent>
--> <rasd:ResourceType>15</rasd:ResourceType>
--> </Item>
--> <Item>
--> <rasd:AddressOnParent>7</rasd:AddressOnParent>
--> <rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
--> <rasd:Connection>LAN</rasd:Connection>
--> <rasd:Description>E1000 ethernet adapter on "LAN"</rasd:Description>
--> <rasd:ElementName>Network adapter 1</rasd:ElementName>
--> <rasd:InstanceID>9</rasd:InstanceID>
--> <rasd:ResourceSubType>E1000</rasd:ResourceSubType>
--> <rasd:ResourceType>10</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>Floppy drive 1</rasd:ElementName>
--> <rasd:InstanceID>10</rasd:InstanceID>
--> <rasd:ResourceType>14</rasd:ResourceType>
--> </Item>
--> </VirtualHardwareSection>
--> </VirtualSystem>
--> </Envelope>
Opening VMX target: k:\
2011-09-28T11:38:44.896+03:30 [05000 verbose 'Default'] Creating disk k:\Win 2008 X64 -Sharepoint 2 - IP_65.122 200G -8G(Ram)\Win 2008 X64 -Sharepoint 2 - IP_65.122 200G -8G(Ram)-disk1.vmdk, 419430400 sectors, lsilogicWriting VMX file: k:\Win 2008 X64 -Sharepoint 2 - IP_65.122 200G -8G(Ram)\Win 2008 X64 -Sharepoint 2 - IP_65.122 200G -8G(Ram).vmx
2011-09-28T11:38:46.802+03:30 [05000 verbose 'Default'] Using file size as progress measure Disk Transfer Failed Error: Invalid access to memory location.
2011-09-28T11:38:46.865+03:30 [05000 verbose 'Default'] Backtrace:
--> backtrace[00] rip 0175fd23 (no symbol)
--> backtrace[01] rip 0166eb5e (no symbol)
--> backtrace[02] rip 0166f801 (no symbol)
--> backtrace[03] rip 0162f99a (no symbol)
--> backtrace[04] rip 01626bc2 (no symbol)
--> backtrace[05] rip 0175f44b (no symbol)
--> backtrace[06] rip 01673622 (no symbol)
--> backtrace[07] rip 0176f018 (no symbol)
--> backtrace[08] rip 0041a76e (no symbol)
--> backtrace[09] rip 0047fb6a (no symbol)
--> backtrace[10] rip 00480c62 (no symbol)
--> backtrace[11] rip 0041e4d5 (no symbol)
--> backtrace[12] rip 0043de50 (no symbol)
--> backtrace[13] rip 00467136 (no symbol)
--> backtrace[14] rip 004674bd (no symbol)
--> backtrace[15] rip 00418474 (no symbol)
--> backtrace[16] rip 004186f4 (no symbol)
--> backtrace[17] rip 005e82ff (no symbol)
--> backtrace[18] rip 7c817067 (no symbol)
-->
2011-09-28T11:38:46.865+03:30 [05000 verbose 'Default'] Deleting file: k:\Win 2008 X64 -Sharepoint 2 - IP_65.122 200G -8G(Ram)\Win 2008 X64 -Sharepoint 2 - IP_65.122 200G -8G(Ram)-disk1.vmdk
Deleting directory: k:\Win 2008 X64 -Sharepoint 2 - IP_65.122 200G -8G(Ram)
Completed with errors
*************************************************************************************************
Ps : i can't deploy my ova file with deploy OVF Template... in Esx and neither with ovatool !!
any idea ?
We found ovftool fails to deploy a vApp instance, within which 12VMs are to be created, from an ova file, while it succeeds if the ova file contains a slimmer version ovf file (VMs' no is decreased to 8). The host where ovftool runs is in the same LAN with VCenter server so network is probably not a problem. Besides, it also succeeds to deploy the package.ova file using VSphere Client GUI.
ovftool --X:logToConsole --noSSLVerify --name=DBaaS-fail --vmFolder=BuildValidation --powerOffTarget --overwrite '--net:VMNetwork=VLAN138' --datastore=store1800-1 --diskMode=thin
--prop:BaseIP=ww.xx.yy.zz --prop:Netmask=255.255.255.128 --prop:Gateway=ww.xx.yy.253 '--prop:DNS_Servers=10.132.71.1 10.132.71.2' --acceptAllEulas --powerOn /mnt/DATA/release/XXXXX/ova-demo/package.ova vi://user:password@10.ab.cc.dd/vCHS-DBaaS/host/ALMA/Resources/BuildValidation
The progress bar indicating complete percentage never shows up for the 12VM-version's deployment. The verbose log shows that the upload never starts. Has anybody encountered this issue? And you'll be appreciated if you can give us a hand. And we are willing to provide our ova file to troubleshooting this issue.
Background
We generate an OVA file which contains multiple VMs. Every VM specified in the ovf file refers to either a Linux vmdk or a Win vmdk within the OVA file. With two vmdk files contained in the ova file, the file size is almost 3G. We used the above command to deploy an vApp instance, but it always fail.
The following are what we have tried.
- The machine to run ovftool always keeps in the same LAN as VCenter server. This ensures network low latency.
- We tried ovftool both with its linux's version and windows's version. Deploying the ova containing 12VMs, always fail; deploying the slimmer version with 8VMs, it works;
- The difference between 12VM and 8VM ovafiles are very simple: both has two vmdk files, file-size are almost the same(~3G). It's just the latter ovf file choose to generate small number of homogenous VMs.
The verbose logs are attached below.
ovftool --X:logToConsole --noSSLVerify --name=DBaaS-fail --vmFolder=BuildValidation --powerOffTarget --overwrite '--net:VMNetwork=VLAN138' --datastore=store1800-1 --diskMode=thin
--prop:BaseIP=ww.xx.yy.zz --prop:Netmask=255.255.255.128 --prop:Gateway=ww.xx.yy.253 '--prop:DNS_Servers=10.132.71.1 10.132.71.2' --acceptAllEulas --powerOn /mnt/DATA/release/XXXXX/ova-demo/package.ova vi://user:password@10.ab.cc.dd/vCHS-DBaaS/host/ALMA/Resources/BuildValidation
ŠŠŠŠŠŠŠŠ.
-->
Opening VI target:
vi://root@10.146.25.129:443/vCHS-DBaaS/host/ALMA/Resources/BuildValidation
2014-01-17T08:15:55.791Z [7FCDED7D2740 verbose 'Default'] Hostsystem used
as deploy target: vim.HostSystem:host-16
Deploying to VI:
vi://root@10.146.25.129:443/vCHS-DBaaS/host/ALMA/Resources/BuildValidation
2014-01-17T08:16:24.172Z [7FCDED7D2740 verbose 'Default'] Using file size
as progress measure
2014-01-17T08:16:24.189Z [7FCDE4FB0700 verbose 'Default'] CURL: header
data removed
2014-01-17T08:16:24.190Z [7FCDE416F700 verbose 'Default'] CURL: header
data removed
2014-01-17T08:16:24.190Z [7FCDE412E700 verbose 'Default'] CURL: header
data removed
2014-01-17T08:16:24.190Z [7FCDE40ED700 verbose 'Default'] CURL: header
data removed
2014-01-17T08:16:24.191Z [7FCDE40AC700 verbose 'Default'] CURL: header
data removed
2014-01-17T08:16:24.192Z [7FCDE406B700 verbose 'Default'] CURL: header
data removed
2014-01-17T08:16:24.192Z [7FCDBFFFF700 verbose 'Default'] CURL: header
data removed
2014-01-17T08:16:24.195Z [7FCDE4FB0700 verbose 'Default'] CURL: header
data removed
2014-01-17T08:16:24.197Z [7FCDE416F700 verbose 'Default'] CURL: header
data removed
2014-01-17T08:16:24.197Z [7FCDE412E700 verbose 'Default'] CURL: header
data removed
2014-01-17T08:16:24.197Z [7FCDE40ED700 verbose 'Default'] CURL: header
data removed
2014-01-17T08:16:24.198Z [7FCDE40AC700 verbose 'Default'] CURL: header
data removed
2014-01-17T08:16:24.199Z [7FCDE406B700 verbose 'Default'] CURL: header
data removed
2014-01-17T08:16:24.199Z [7FCDBFFFF700 verbose 'Default'] CURL: header
data removed
2014-01-17T08:16:42.512Z [7FCDBFF7D700 verbose
'HttpConnectionPool-000001'] [RemoveConnection] Connection removed; cnx:
<SSL(<io_obj p:0x00007fcde0014b00, h:-1, <TCP '0.0.0.0:0'>, <TCP
'10.146.25.129:443'>>)>; pooled: 0
work@boxbuilder:~$ lsof -i TCP
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
ovftool.b 31731 work 7u IPv4 574157 0t0 TCP
10.146.25.131:33750->10.146.25.129:https (ESTABLISHED)
ovftool.b 31731 work 9u IPv4 575678 0t0 TCP
10.146.25.131:33752->10.146.25.129:https (ESTABLISHED)
ovftool.b 31731 work 10u IPv4 574954 0t0 TCP
10.146.25.131:57555->w2-tempest-ucs001-30.eng.vmware.com:https (CLOSE_WAIT)
ovftool.b 31731 work 11u IPv4 574159 0t0 TCP
10.146.25.131:57556->w2-tempest-ucs001-30.eng.vmware.com:https (CLOSE_WAIT)
ovftool.b 31731 work 12u IPv4 576636 0t0 TCP
10.146.25.131:57557->w2-tempest-ucs001-30.eng.vmware.com:https (CLOSE_WAIT)
ovftool.b 31731 work 13u IPv4 574955 0t0 TCP
10.146.25.131:57558->w2-tempest-ucs001-30.eng.vmware.com:https (CLOSE_WAIT)
ovftool.b 31731 work 14u IPv4 574160 0t0 TCP
10.146.25.131:57559->w2-tempest-ucs001-30.eng.vmware.com:https (CLOSE_WAIT)
ovftool.b 31731 work 15u IPv4 576637 0t0 TCP
10.146.25.131:57560->w2-tempest-ucs001-30.eng.vmware.com:https (CLOSE_WAIT)
ovftool.b 31731 work 16u IPv4 574956 0t0 TCP
10.146.25.131:57561->w2-tempest-ucs001-30.eng.vmware.com:https (CLOSE_WAIT)
Hello Friend,
I need to come up with Java script where all sort of events and alarms that get generated in vCenter can be tracked off.
Is there a powerful document or link , which describes in detail how to work out?
Thanks in Advance !!!
Thanks,
Asif
I have an esxi 4.1 server that we are decommissioning as part of a move. We've decided to archive some of the VMs that were part of a test bed, in case we need to revive them later. I've been copying the VMs directly to a USB hard drive on my Mac with ovftool, but I've found that about half of the testbed VMs cannot be copied. Here is an example of a failure:
wpeters$ ovftool vi://root@zeus.dvt.tachyon.net/Riverbed/VSH_markt /Volumes/Archive/VSH_markt.ova
Enter login information for source vi://zeus.dvt.tachyon.net/
Username: root
Password: *********
Opening VI source: vi://root@zeus.dvt.tachyon.net:443/Riverbed/VSH_markt
Error: vim.fault.FileNotFound
Completed with errors
And a success, on another VM:
wpeters$ ovftool vi://root@zeus.dvt.tachyon.net/Riverbed/VSH_250m /Volumes/Archive/VSH_250m.ova
Enter login information for source vi://zeus.dvt.tachyon.net/
Username: root
Password: *********
Opening VI source: vi://root@zeus.dvt.tachyon.net:443/Riverbed/VSH_250m
Opening OVA target: /Volumes/Archive/VSH_250m.ova
Writing OVA package: /Volumes/Archive/VSH_250m.ova
Transfer Completed
Completed successfully
Does anyone have any suggestions of what to look for? I've started and stopped these VMs from the console, so I'm certain the storage is still available, etc.
Thanks!
Using a seperate process (python-vm-builder), I am building an ESX/ESXi compliant image that I have confirmed can be uploaded, imported and started in Workstation, ESX 3.0, ESXi 3.5 and even Server 2.0+.
I'm trying to go into the next step now, and convert this ESXi Image into a single OVF archive for even easier deployments.
Using the latest OVF Tool I have successfully created the new .ovf and zipped it up inside a tar.gz'd. On my Windows box, I then extract it (using WinRAR), then using 'Import' in VIC try to import it. When I select the OVF and click next it then throws the below error:
An error occurred while parsing the OVF descriptor
Unable to parse XML element 'Envelope'
What am I doing wrong?
I have attached both the original VMX and the new OVF.
Please help!
Thank you.
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.
I give; I have spent too long attempting to find the magic decoder ring to get ovftool to do what I expect to be a very basic use case.
My vCenter server is win2k8 R2 node, my host node is RHEL6.3, and my guest in this case is CentOS6.3.
The vCenter server FQDN is vsphere2.foo.com.
The ESX host is las13.foo.com.
The guest is qavm1.foo.com
The Datacenter name is screwy, but appears to be passable with URI character replacements. The name is "Foo / Bar Network" so I have been using "Foo %2f Bar Network" and quoting any URL string to deal with the spaces.
Examining the Datacenter layout in vCenter client, the path to the vm from which I want to create an OVA is
Foo / Bar Network/QA Guy/las13.foo.com/qavm1
attempting to use ovftool from either the Win2k8 server or my RHEL6.4 development machine results in the same errors. I have perturbed the syntax of options and paths in so many ways I don't want to list them all here, but the end result is always an incorrect reference or missing object.
Might I grovel for the proper syntax to store a VM guest as an OVA?
Yes...I have devoured the manual mutiple times over...RTFM is my first tenet ![]()
Thank you all!
[root@qavm34 tmp]# ovftool --sourcetype=vmx "vi://administrator@vsphere2.foo.com/Foo %2f Bar Network/host/las13.foo.com"
Error: Unknown option: 'sourcetype'
Completed with errors
[root@qavm34 tmp]# ovftool --sourceType=vmx "vi://administrator@vsphere2.foo.com/Foo %2f Bar Network/host/las13.foo.com"
Error: Failed to open file: vi://administrator@vsphere2.foo.com/Foo %2f Bar Network/host/las13.foo.com
[root@qavm34 tmp]# ovftool --sourceType=vmx "vi://administrator@vsphere2.foo.com/Foo %2f Bar Network/host/las13.foo.com/qavm1"
Error: Failed to open file: vi://administrator@vsphere2.foo.com/Foo %2f Bar Network/host/las13.foo.com/qavm1
[root@qavm34 tmp]# ovftool --sourceType=VI "vi://administrator@vsphere2.foo.com/Foo %2f Bar Network/host/las13.foo.com/qavm1"
Please enter login information for source vi://vsphere2.foo.com/
Username: administrator
Password: **********
Error: Locator does not refer to an object: vi://administrator@vsphere2.foo.com:443/Foo / Bar Network/host/las13.foo.com/qavm1
[root@qavm34 tmp]# ovftool --sourceType=VI "vi://administrator@vsphere2.foo.com/Foo %2f Bar Network/host/las13.foo.com"
Please enter login information for source vi://vsphere2.foo.com/
Username: administrator
Password: *********
Error: Locator does not refer to an object: vi://administrator@vsphere2.foo.com:443/Foo / Bar Network/host/las13.foo.com
[root@qavm34 tmp]# ovftool --sourceType=VI "vi://Administrator@vsphere2.foo.com/Foo %2f Bar Network/host/"
Please enter login information for source vi://vsphere2.foo.com/
Username: Administrator
Password: **********
Error: Locator does not refer to an object: vi://Administrator@vsphere2.foo.com:443/Foo / Bar Network/host/
[root@qavm34 tmp]# ovftool --sourceType=VI "vi://Administrator@vsphere2.foo.com/Foo %2f Bar Network/host"
Please enter login information for source vi://vsphere2.foo.com/
Username: Administrator
Password: **********
Error: Locator does not refer to an object: vi://Administrator@vsphere2.foo.com:443/Foo / Bar Network/host
[root@qavm34 tmp]#
[root@qavm34 tmp]#
[root@qavm34 tmp]#
[root@qavm34 tmp]# ovftool --sourceType=VI "vi://Administrator@vsphere2.foo.com/Foo %2f Bar Network"
Please enter login information for source vi://vsphere2.foo.com/
Username: Administrator
Password: **********
Error: Found wrong kind of object (Datacenter). Possible completions are:
vm/
host/
[root@qavm34 tmp]# ovftool --sourceType=VI "vi://Administrator@vsphere2.foo.com/Foo %2f Bar Network/vm/qavm1"
Please enter login information for source vi://vsphere2.foo.com/
Username: Administrator
Password: **********
Error: Locator does not refer to an object: vi://Administrator@vsphere2.foo.com:443/Foo / Bar Network/vm/qavm1
[root@qavm34 tmp]# ovftool --sourceType=VI "vi://Administrator@vsphere2.foo.com/Foo %2f Bar Network/vm/QA Guy/qavm1"
Please enter login information for source vi://vsphere2.foo.com/
Username: Administrator
Password: **********
Error: Locator does not refer to an object: vi://Administrator@vsphere2.foo.com:443/Foo / Bar Network/vm/QA Guy/qavm1
[root@qavm34 tmp]# ovftool --sourceType=VI "vi://Administrator@vsphere2.foo.com?moref=vim.vm.VirtualMachine:qavm1"
Please enter login information for source vi://vsphere2.foo.com/
Username: Administrator
Password: **********
Error: Invalid object type specified (not a ManagedEntity subtype)
[root@qavm34 tmp]# ovftool "vi://Administrator@vsphere2.foo.com?moref=vim.vm.VirtualMachine:qavm1"
Please enter login information for source vi://vsphere2.foo.com/
Username: Administrator
Password: **********
Error: Invalid object type specified (not a ManagedEntity subtype)
[root@qavm34 tmp]# ovftool "vi://Administrator@vsphere2.foo.com/Foo %2f Bar Network/host/las13.foo.com"
Please enter login information for source vi://vsphere2.foo.com/
Username: Administrator
Password: **********
Error: Locator does not refer to an object: vi://Administrator@vsphere2.foo.com:443/Foo / Bar Network/host/las13.foo.com
[root@qavm34 tmp]# ovftool "vi://Administrator@vsphere2.foo.com/Foo %2f Bar Network?ds=[EqualLogic] qavm1/qavm1.vmx"
Please enter login information for source vi://vsphere2.foo.com/
Username: Administrator
Password: *********
Please enter login information for source vi://vsphere2.foo.com/
Username: Administrator
Password: **********
Error: Locator does not refer to an object: vi://Administrator@vsphere2.foo.com:443/Foo %2f Bar Network?ds=[EqualLogic]%20qavm1/qavm1.vmx
[root@qavm34 tmp]# ovftool --version
VMware ovftool 3.0.1 (build-801290)
[root@qavm34 tmp]#
(Easy) Question… Regarding the use of global configuration file (ovftool.cfg) and local configuration file with OVFTOOL.
Syntax is given only for comments and parameters which are name-value pairs, e.g. datastore=DATASTORE-NAME.
For a single parameter without a corresponding value, e.g. –acceptAllEulas, should these parameters be expressly set to TRUE?
Or can they simply be present (no equals sign)? Both styles seem to work properly for --acceptAllEulas option.
Example: which of the following CFG files shows the expected syntax? Or are both acceptable?
acceptAllEulas=true
disableVerification=true
quiet=true
datastore=S123D0001
ipAllocationPolicy=fixed
or
acceptAllEulas
disableVerification
quiet
datastore=S123D0001
ipAllocationPolicy=fixed
(Yeah, I know - this question probably is a gimme.
Just curious if there's anything to trip over here. )
=cjs
Message was edited by: cjstaples-emc -- sorry, original formatting garbage
Is there a document anywhere that outlines the format that the OVFTool expects the OVF file to be in?
Such as: elements that ovfTool expects?
I have some OVF sources that are .9 and 1.0 compliant however, ovfTool does not 'like' them because the OVF is not written the exact same way as an ovfTool produced OVF of the same VM. The VMware vmx setting, the resources subtypes are not there for example. As these are VMware specific and optional.
Any guidance is greatly helpful.
Thanks!
When I try to import an OVF vile created with ovftool 1.0 I get a compatibility error
an error occurred while parsing the ovf descriptor:
unable to parse xlm element ‘Envelope'
I made an ovf file using ovftool 1.0 from a virtual machine I was running on an ESX 3.5 server.
The tool created the file with no problems and when I run the following command I get no error:
ovftool --schemaValidate x:\OVF\clone.ovf
Opening OVF source: x:\OVF\clone.ovf
OVF version: 1.0
Name: clone (1)
Download Size: 5.14 GB
Deployment Sizes:
Flat disks: 32.00 GB
Sparse disks: 8.13 GB
Networks:
Name: VM Network
Description: The VM Network network
Virtual Hardware:
Family: vmx-04
Disk Types: SCSI-lsilogic
Completed successfully
What is the difference between OVF 1.0 and 0.9 version? I would be interested in knowing about the major enchancements made in the newer versions and thereby the advantages of the same.
Thanks in advance ![]()
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
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 followed the ovftool 1.0 user's guide to try to import an OVF 1.0 image into an ESX 3.5 server, the ovftool command I ran is like below:
C:\Program Files (x86)\VMware\VMware OVF Tool>ovftool.exe -ds="vitestbox3:storage1" "c:\temp\ovf\WebSphere_V7.ovf" "vi://root:xxxxxx@vitestbox3.rtp.raleigh
.ibm.com"
Opening OVF source: c:\temp\ovf\WebSphere_V7.ovf
Warning: No manifest file
Opening VI target: vi://root@vitestbox3.rtp.raleigh.ibm.com/
Warning:
- The operating system has been mapped to 'Other Linux (32-bit)' from '' (id: 84).
Error:
- Line 31: Unsupported hardware family 'vmx-04'.
Then I didn't change anything and ran the above command again in the same command line window, but this time, I got a different result:
C:\Program Files (x86)\VMware\VMware OVF Tool>ovftool.exe -ds="vitestbox3:storage1" "c:\temp\ovf\WebSphere_V7.ovf" "vi://root:xxxxxxt@vitestbox3.rtp.raleigh
.ibm.com"
Opening OVF source: c:\temp\ovf\WebSphere_V7.ovf
Warning: No manifest file
Opening VI target: vi://root@vitestbox3.rtp.raleigh.ibm.com/
Target: vi://vitestbox3.rtp.raleigh.ibm.com/
Disk Transfer Failed
Error: Target disk not found
Deleting VM: WebSphere_V7
On the ESX server side, I saw it tried to create a VM, but removed it immediately due to a failure. I am not sure if I need to specify other options in the command, or I need to change something in .ovf file. It would be appreciated if someone can give me some advices/suggestions. Thanks.
- Matt
Is there a way to map network devices that are both associated with "VM Network" in the ova to different networks on the target? The ova contains only "VM Network", but I would like to put one interface on "NET_A" and one on "NET_B".
[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
[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 "bridged"</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)'.