Hi,
trying to convert a "SUSEstudio" generated vmdk/vmx to our VI.
I have:
SLE_11.1JeOSPHR.x86_64-0.0.3.vmdk
SLE_11.1JeOSPHR.x86_64-0.0.3.vmx
christian@chrisw:/srv/ISO/JeOS/SLE_11.1JeOSPHR-0.0.3> ovftool SLE_11.1JeOSPHR.x86_64-0.0.3.vmx
Opening VMX source: SLE_11.1JeOSPHR.x86_64-0.0.3.vmx
OVF version: 1.0
Name: SLE_11.1JeOSPHR.x86_64-0.0.3
Download Size: Unknown
Deployment Sizes:
Flat disks: 4.04 GB
Sparse disks: Unknown
Networks:
Name: bridged
Description: The bridged network
Virtual Hardware:
Family: vmx-04
Disk Types: SCSI-lsilogic
Completed successfully
#####
When I try to convert it to vi (to correct datastore) I'm getting the mentioned error:
so what is the correct syntax ??
christian@chrisw:~/srv/ISO/JeOS/SLE_11.1JeOSPHR-0.0.3> ovftool -ds=CX300-OTC-02 -dm=thick SLE_11.1JeOSPHR.x86_64-0.0.3.vmx vi://i000156@vc.icw.int/DC%20OTC
Opening VMX source: SLE_11.1JeOSPHR.x86_64-0.0.3.vmx
Please enter login information for target vi://vc.icw.int/
Username: i000156
Password: ********
Error: Locator does not refer to an object: vi://i000156@vc.icw.int/DC%20OTC
DataCenter="DC OTC"
DataSource="CX300-OTC-2"
THX
Chris
looks like we have some problem with urldecode the input locator. I hope we can get that into next version. until then this should work:
ovftool -ds=CX300-OTC-02 -dm=thick SLE_11.1JeOSPHR.x86_64-0.0.3.vmx "vi://i000156@vc.icw.int/DC OTC"
you can also try to probe the server by doing
ovftool "vi://i000156@vc.icw.int/DC OTC"
hope it helps.
eske
Hi eske,
no it doesn't work
Do you think it is a problem with "SPACE" in DataCenter name ?
Would it help to remove "SPACE" from name?
Chris
Normaly there should be no problems with spaces in names. I will have to look into why it dont work with datacenter until then could you try it with no spaces.
eske
Hi Eske,
removed "SPACE" in DataCenter name, but same result.
still getting: Locator does not refer to an object: vi://i000156@vc.icw.int/KarlsruheOTC
what is the expected result of:
ovftool vi://i000156@vc.icw.int/DataCenter
perhaps I have a permission problem ?
you should get something like:
ovftool vi://i000156@vc.icw.int/DataCenter
Error: Found wrong kind of object (Datacenter)
Possible completions are:
vm/
host/
I just tried ovftool.exe "vi://root:XXX@localhost/d c" and got:
Opening VI source: vi://root:XXX@localhost/d c
Error: Found wrong kind of object (Datacenter)
Possible completions are:
vm/
host/
(using %20 do not work for)
eske
Hi Eske,
thank you. now I am 1 step forward
I get correct objects:
ovftool "vi://i000156@vc.icw.int/Germany/Karlsruhe/KarlsruheOTC/vm"
Please enter login information for source vi://vc.icw.int/
Username: i000156
Password: ********
Opening VI source: vi://i000156@vc.icw.int/Germany/Karlsruhe/KarlsruheOTC/vm
Error: Found wrong kind of object (Folder)
Possible completions are:
Archive/
BAM/
BAS/
LCM_AT/
LCM_CH/
LCM_Cockpit/
LCM_DE/
LCM_US/
OTC/
PHR_AT/
PHR_CH/
PHR_DE/
PHR_US/
PRG/
T2-Development/
T2-Maintenance/
T2-Test/
Templates/
Testing/
but now when I try to convert I'm getting IO error:
ovftool -ds=CX300-OTC-02 -nw=VLAN_32 SLE_11.1JeOSPHR.x86_64-0.0.3.vmx "vi://i000156@vc.icw.int/Germany/Karlsruhe/KarlsruheOTC/host/Cluster_OTC_Nr. 4/"
Opening VMX source: SLE_11.1JeOSPHR.x86_64-0.0.3.vmx
Please enter login information for target vi://vc.icw.int/
Username: i000156
Password: ********
Opening VI target: vi://i000156@vc.icw.int/Germany/Karlsruhe/KarlsruheOTC/host/Cluster_OTC_Nr. 4/
Deploying to VI: vi://i000156@vc.icw.int/Germany/Karlsruhe/KarlsruheOTC/host/Cluster_OTC_Nr. 4/
Disk Transfer Failed
Error: IO error
permission problem ?
Chris
Even I am also facing a similiar Issue ..I am using it on a widows 2008 Server so a bit lost between forward and reverse slash...tries all combination But no use..it suggests me compilations as well...but again those slashes ..
Thanks for this!
I had the same error when deploying a View Access Gateway, could not figure it out, but you pointed me and I see I was missing my servers Cluster name before the /host/ part.
I'm good to go now!
Oh my goodness. Thank you, Eske, for mentioning probing.
I was getting the same completely unhelpful "Locator does not refer to an object" error and had to probe both the source and target hosts to register their SSL certificate fingerprints before I could move a guest between them, e.g.:
>ovftool.exe vi://root@192.168.0.4/
Accept SSL fingerprint (**:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**) for host 192.168.0.4 as source type.
Fingerprint will be added to the known host file
Write 'yes' or 'no'
yes
Enter login information for source vi://192.168.0.4/
Username: root
Password: *********
Error: Found wrong kind of object (ResourcePool). Possible completions are:
Default Resource Pool/