Monday, February 4, 2013

Importing Oracle VM Tempate in OVM Manager 3.1.1

Hello there... lately I have been trying to import the files to into Oracle VM Manager 3.1.1 but had multiple failures. I would like to share the issues what I have faced.

Oracle VM 3x is really different in many ways that its previous 2x versions. At least I can say in terms of Creating Server Pool, storage and importing Oracle VM Template files to OVM Manager 3.1.1.

If we just talk about importing the files, in 2x version of Oracle VM we generally do 
  • unzip the downloaded files (# unzip TemplateName1of2.zip, TemplateName2of2.zip). This will give us TemplateName1of2.tgz, TemplateName2of2.tgz files.
  • Concatinate the the unzipped files (# cat TemplateName1of2.tgz, TemplateName2of2.tgz > TemplateName.tgz) -- If there is just a singles file we don't need this step.
  • Decompress the file (# tar -xz TemplateName.tgz). This will give us 1 or 2 .img files and a .cfg file.
  • Place the decompressed files to Oracle VM Server, location /OVS/seed_pool. Later we can import the file from Oracle VM Manager.
This concept does not works in Oracle VM 3x. In 3x even if we put the files under /OVS/seed_pool folder its not read by Oracle VM Manager.

Process to import Oracle VM template files in Oracle VM 3x
  • unzip the downloaded files (# unzip TemplateName1of2.zip, TemplateName2of2.zip). This will give us TemplateName1of2.tgz, TemplateName2of2.tgz files.
  • Concatinate the the unzipped files (# cat TemplateName1of2.tgz, TemplateName2of2.tgz > TemplateName.tgz). With Oracle VM 3x we don't need to further decompress the files to create .img files. (If there is just a singles file we don't need this step.)
  • Create a web-server (either FTP / HTTP) as the only way to access / import template files in Oracle VM Manager 3x is using FTP / HTTP or HTTPS.
  • Place the files to your web-server.
  • Make sure its accessible from your Oracle VM Manager. Just test it by opening the URL in VM Manager.
  • Import the files in Oracle VM Manager and provide the full path where the files are located in your FTP/HTTP server.
Lets see what errors we can face and possible solution.
Errors
Async operation failed on server: ovserver.invincibleapps.com.
  • Server error message: Template import error: [Errno 14] curl#7 - "couldn't connect to host"
  • Server error message: Template import error: No VM configure file found.
  • Server error message: Template import error: invalid syntax (vm.cfg, line 1)
Solutions
The above errors could happen due to many reasons. Please check the following -
  • Please make sure the web-server is accessible and showing up the files.
  • Ping the web-server from your Host as well as your guest OS and make sure its responding. 
  • If you are using an alias instead of IP address in your web-server address then make sure there is an entry in  /etc/hosts and c:\windows\system32\drivers\etc\hosts
  • Don't import split .tgz files, this may create problems as Oracle VM Manager will not be able to concatenate them.
  • Try to decompress the files separately and make sure it decompresses successfully. There are cases above errors may come because of bad compressed files.
  • Don't decompress the files and try to import VM template by importing .img files generated by decompressing.
  • Please cross check the Repository where you want to import files, it needs to be accessible. 

No comments :

Post a Comment

SeachBox