Jump to content


Photo

Not able to import VM from ova format

Started by Venkat Rao , 30 October 2009 - 04:55 PM

Venkat Rao Members

Venkat Rao
  • 20 posts

Posted 30 October 2009 - 04:55 PM

I used XenConvert 2.0 and converted a MS Virtual Server 2005 VM in to XenServer Virtual Appliance (.ova) format and it went through successfully by creating .ova file and hda folder with # of chunk files. Then tried import this .ova into XenServer v5.5 through the import vm option within XenCenter 5.5 and the import is not working. The XenCenter logs show that it's importing but nothing happens. During the Import wizard couple of strange behaviours noticed, in the Select a storage repository where Virtual disks for the new vm be stored screen, I selected the local repository and click import, immediately see a message that preparing to import and then importing vm message shows up and the wizard sits idle with all the buttons disabled. If I select the local storage again, now I see the next button enabled and if I click next I come across a blank network screen and continue with next & finish. After which, nothing happens. See below the XenCenter logs within the GUI interface and also the detail log from xencenter.log.

10/27/2009 12:59:15 PM Action: Importing VM from 'D:\Citrix VM\xp-laptop-xenconvert2\ova.xml' to 's-xensvr' - Importing VM...

NOTE: Tried CLI option as well and the log is at bottom.

--------------------------------------------------------------------------------
XenCenter log with details

--------------------------------------------------------------------------------
2009-10-27 12:59:15,252 DEBUG XenAdmin.Actions.Action Main program thread - Preparing to Import VM
2009-10-27 12:59:15,346 INFO Audit Main program thread - Operation started: ImportVmAction: s-xensvr: Pool 554310a0-235c-6e80-8bb7-568a04516544 (): Host 5dbaf375-85cc-428a-9fd6-638620c063d1 (s-xensvr): Preparing to Import VM
2009-10-27 12:59:15,955 DEBUG XenAdmin.Actions.Action 1588 - Importing VM...
2009-10-27 12:59:16,080 DEBUG XenAdmin.Actions.ImportVmAction 1588 - Importing Geneva-style XVA from D:\Citrix VM\xp-laptop-xenconvert2\ to SR Local storage using vm-import
sr-uuid=e3e495e6-33fa-0e78-80d1-7cb319ab4fd9
filename=D:\Citrix VM\xp-laptop-xenconvert2\
task_id=OpaqueRef:b58568c6-ca90-f3ca-0d50-5c733524685c

2009-10-27 12:59:16,096 DEBUG XenAdmin.Actions.ImportVmAction 1588 - Remote host has version 0.1
2009-10-27 12:59:16,096 DEBUG XenAdmin.Actions.ImportVmAction 1588 - Client has version 0.1
2009-10-27 12:59:16,143 DEBUG XenAdmin.Actions.ImportVmAction 1588 - Read: Load D:\Citrix VM\xp-laptop-xenconvert2\/ova.xml
2009-10-27 12:59:16,205 DEBUG XenAdmin.Actions.ImportVmAction 1588 - Read: Debug: Caught exception: Failure("int_of_string")
2009-10-27 12:59:16,205 DEBUG XenAdmin.Actions.ImportVmAction 1588 - Caught exception: Failure("int_of_string")
2009-10-27 12:59:16,205 DEBUG XenAdmin.Actions.ImportVmAction 1588 - Read: PrintStderr: Failed to import directory-format XVA
2009-10-27 12:59:16,205 DEBUG XenAdmin.Actions.ImportVmAction 1588 - Failed to import directory-format XVA
2009-10-27 12:59:16,205 DEBUG XenAdmin.Actions.ImportVmAction 1588 - Read: Command Exit 2
2009-10-27 12:59:16,330 INFO Audit 1588 - Operation success: ImportVmAction: s-xensvr: Pool 554310a0-235c-6e80-8bb7-568a04516544 (): Host 5dbaf375-85cc-428a-9fd6-638620c063d1 (s-xensvr): Importing VM...
2009-10-27 12:59:16,361 DEBUG XenAdmin.Network.XenConnection Logging out session OpaqueRef:a6be4a8e-b34e-70aa-4dd4-567fafff7c57 - Trying Session.logout() on background thread
2009-10-27 12:59:16,393 DEBUG XenAdmin.Network.XenConnection Logging out session OpaqueRef:a6be4a8e-b34e-70aa-4dd4-567fafff7c57 - Session.logout() succeeded

--------------------------------------------------------------------------------
CLI Option log

--------------------------------------------------------------------------------

Following is the log of attempting to import vm through the CLI with different flavors of filename delimiters and shows an internal error (1st error is interesting).

C:\Program Files\Citrix\XenCenter5.5>xe -s 192.1.1.1 -u root -pw xxxxxxxxxxxxxxx
vm-import filename=D:\Citrix VM\xl-laptop-xenconvert2\ova.xml
The server failed to handle your request, due to an internal error. The given message may give details useful for debugging the problem.
message: Failure: tl

C:\Program Files\Citrix\XenCenter5.5>xe -s 192.1.1.1 -u root -pw xxxxxxxxxxxxxxx
vm-import filename='d:\citrix vm\xl-laptop-xenconvert2\ova.xml'
Error: Caught exception: The given path's format is not supported.

C:\Program Files\Citrix\XenCenter5.5>xe -s 192.1.1.1 -u root -pw xxxxxxxxxxxxxxx
vm-import filename="d:\citrix vm\xl-laptop-xenconvert2\ova.xml"
Caught exception: Failure("int_of_string")
Failed to import directory-format XVA

C:\Program Files\Citrix\XenCenter5.5>xe -s 192.1.1.1 -u root -pw xxxxxxxxxxxxxxx
vm-import filename=`d:\citrix vm\xl-laptop-xenconvert2\ova.xml`
Error: Caught exception: The given path's format is not supported.

C:\Program Files\Citrix\XenCenter5.5>xe -s 192.1.1.1 -u root -pw xxxxxxxxxxxxxxx
vm-import filename=d:\xl-laptop-xenconvert2\ova.xml
Caught exception: Failure("int_of_string")
Failed to import directory-format XVA

C:\Program Files\Citrix\XenCenter5.5>xe -s 192.1.1.1 -u root -pw xxxxxxxxxxxxxxx
vm-import filename=d:/xl-laptop-xenconvert2/ova.xml
Caught exception: Failure("int_of_string")
Failed to import directory-format XVA

C:\Program Files\Citrix\XenCenter5.5>



Give Us feedback