Solved

importing image in to esxi server

Posted on 2008-10-15
22
5,917 Views
Last Modified: 2008-10-17
Hi All,

OK I have an 3.5 ESXi server installed and running perfectly.  I also have vmware converted installed on my laptop and I have just coverted a server.  The file extension for that image is vmdk.

I would now like to import this image in to my esxi server.  When I click import it looks for an OVF file so I selected all files and choose the vmdk image and I get an error

an error occured while parsing the OVF descriptor:
Exception of type 'system.outofmemoryexception' was thrown.

can anyone assist me with this process please?
0
Comment
Question by:tdvit
  • 12
  • 10
22 Comments
 
LVL 15

Expert Comment

by:GreatVargas
ID: 22719671
Using the vi client, you should go to the Inventory tab, than choose virtual machines and templates and then choose "add to inventory". This should prompt you for your vmdk file and problem will be solved. virtual machine will be added :)

hope it helps
regards

António Vargas
0
 
LVL 15

Expert Comment

by:GreatVargas
ID: 22719701
Sorry, just one correction... you should enter the vi client, select the datastore browser to enter the datastore were you have all your vm files, and then you should right click on the .vmx file of your virtual machine and select add to inventory. the vmdk file is for the virtual disk and it's not that file that you should use to add a vm to your inventory.

this helps for sure :)

regards
António Vargas
0
 

Author Comment

by:tdvit
ID: 22729133
HI Antonio,

thanks for the reply.  when I do this and then look at the machine in the inventory it has (invalid) after the machine and I can not start the image.  any ideas?
0
 
LVL 15

Expert Comment

by:GreatVargas
ID: 22729188
Which version of vmware converter do you used to convert the machine? and which version of vi client are you using? also, which version os esx server do you have on your box?
where are the files? on a shared san?
0
 

Author Comment

by:tdvit
ID: 22729300
ESXi 3.5 server so the free version
VI Client version 2.5.0 build 103682
Converter 3.0.3 build-89816

I copied the file up to the data store on the ESXi server and thats where I added them to inventory from.
0
 
LVL 15

Expert Comment

by:GreatVargas
ID: 22729371
Ok, let me see if i understand. You converted the machine with windows vmware converter, on a windows machine, then you have copied it into a ESX box with esx server operating system installed. right?
0
 

Author Comment

by:tdvit
ID: 22729458
yes I converted a windows XP machine and I copied 2 files, .vdmk and vmx file to the esxi server and they reside in a folder in the data store on the esxi server.  does that make sense to you?
0
 
LVL 15

Expert Comment

by:GreatVargas
ID: 22729476
yes, you must copy all files the converter generates. Now do something. go to the directory where the files are in the esx box and show me the output off:

ls -ltr

do it as root
0
 

Author Comment

by:tdvit
ID: 22729498
login as: root
root@10.5.164.45's password:

Tech Support Mode successfully accessed.
The time and date of this access have been sent to the system logs.

WARNING - Tech Support Mode is not supported unless used in
consultation with VMware Tech Support.

~ # cd /vmfs/volumes/datastore1/WindowsXP
/vmfs/volumes/48e63b9c-a67b0372-7dda-0015c55f07b2/WindowsXP # ls -ltr
-rw-r--r--    1 root     root          904 Oct 16 10:47 laptoptest.vmx
-rw-r--r--    1 root     root    2415001600 Oct 16 11:15 laptoptest.vmdk
/vmfs/volumes/48e63b9c-a67b0372-7dda-0015c55f07b2/WindowsXP #
0
 
LVL 15

Expert Comment

by:GreatVargas
ID: 22729504
Root user must have read and write privileges over the files. it must also be the owner of the files. with ls -ltr you can check the permissions. if needed you must change that permissions and try to add the machine again
0
 
LVL 15

Expert Comment

by:GreatVargas
ID: 22729545
Strange. file permissions could be an issue but it's not. I got something wrong, the invalid virtual machine appears after you add the machine to the inventory and when you try to boot it.. right?
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:tdvit
ID: 22729554
correct
0
 
LVL 15

Expert Comment

by:GreatVargas
ID: 22729581
do you have more vm's on that datastore?
0
 

Author Comment

by:tdvit
ID: 22729616
yes windows server and linux however they were installed via iso file on the esxi server.

i changed the permissions on the files and added the inventory again but still it says invalid.  strange thing is this  time it created 2 x 0 bytes files in the XP datastore folder.  

/vmfs/volumes/48e63b9c-a67b0372-7dda-0015c55f07b2/WindowsXP # ls -ltr
-rw-------    1 root     root          265 Oct 16 12:07 laptoptest.vmxf
-rwxrwxrwx    1 root     root          990 Oct 16 12:07 laptoptest.vmx
-rw-------    1 root     root            0 Oct 16 12:07 laptoptest.vmsd
-rwxrwxrwx    1 root     root    2415001600 Oct 16 12:07 laptoptest.vmdk

and ls -ltr in server folder shows me

/vmfs/volumes/48e63b9c-a67b0372-7dda-0015c55f07b2/Windows2003Enterprise # ls -ltr
-rw-------    1 root     root          278 Oct 16 12:15 Windows 2003 Enterprise.vmxf
-rw-------    1 root     root         2064 Oct 16 12:15 Windows 2003 Enterprise.vmx
-rw-------    1 root     root            0 Oct 16 12:15 Windows 2003 Enterprise.vmsd
-rw-------    1 root     root    530841600 Oct 16 12:15 Windows 2003 Enterprise-flat.vmdk
/vmfs/volumes/48e63b9c-a67b0372-7dda-0015c55f07b2/Windows2003Enterprise #
0
 
LVL 15

Expert Comment

by:GreatVargas
ID: 22729780
The virtual machine should have all 4 files. the vmxf file is a secondary config file and the vmsd is to store info about snapshots. is not strange to only have been created when added to the inventory, strange is why only on the second add.
do you have vmware server on windows to try and open the converted xp image and test? also you can try and convert again or change that image to another file system in esx box. copy it for example to /testxpvm and try to add it to inventory trought that path
0
 

Author Comment

by:tdvit
ID: 22729798
when I try open through vmware server it says

Unable to add virtual machine "\\lancelot\Clients\laptoptest\laptoptest.vmx" to the inventory:



Configuration file was created by a VMware product with more features than this version
0
 
LVL 15

Expert Comment

by:GreatVargas
ID: 22730349
Something must have hapenned when converting the machine. Try to change the filesystem location and if you cant start the vm convert it again
0
 

Author Comment

by:tdvit
ID: 22730604
OK I will let you know how I get on.

where do you suggest I change the filesystem location to?

thanks
0
 
LVL 15

Expert Comment

by:GreatVargas
ID: 22730691
copy it for exemple to the /
check for space in the / , create a folder named test and put the files inside

let me know

regards
António Vargas
0
 

Author Comment

by:tdvit
ID: 22739248
hi question for you.  just reconverting machine now.  what should I choose for destination

1. workstation 6.x, vmware fusion 1.x, player 2.x, ace 2.x
2. workstation 5.x, vmware fusion 1.x, player 1.x,
3. workstation 4.5.x, ace 1.x, GSX server 3.x

thanks


0
 
LVL 15

Accepted Solution

by:
GreatVargas earned 50 total points
ID: 22739335
None of that,
ou are using vmware converter free, right? to convert machines to ESX server you need to use vmware converter enterprise. se the link below.
http://www.vmware.com/products/converter/get.html

so if you are using vmware converter free the problem is identified.

regards,

António Vargas
0
 

Author Comment

by:tdvit
ID: 22739404
thanks Antonio.  have to hand it to vmware giving esxi server for free.  everytime I just about get to do something I want to do I need to pay for it!!!!  thanks for the help.

0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

It Is not possible to enable LLDP in vSwitch(at least is not supported by VMware), so in this article we will enable this, and also go trough how to enabled CDP and how to get this information in vSwitches and also in vDS.
David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
Teach the user how to delpoy the vCenter Server Appliance and how to configure its network settings Deploy OVF: Open VM console and configure networking:
Teach the user how to convert virtaul disk file formats and how to rename virtual machine files on datastores. Open vSphere Web Client: Review VM disk settings: Migrate VM to new datastore with a thick provisioned (lazy zeroed) disk format: Rename a…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now