I'm evaluating fresh clean install of XCP 1.6 beta, and trying to VMs from previously user XCP 1.5 beta.
If I use XVA format, import works perfectly. Bit when I try to export couple of VMs as OVA appliance import fails.
2012-10-04 15:18:05,697 INFO Audit [Main program thread] - Operation started: ImportApplianceAction:
xcp01.cpm.ru: Host 63613122-1246-43db-8942-78685b5ec7ca (
xcp01.cpm.ru):
2012-10-04 15:25:09,860 DEBUG XenAdmin.Actions.ActionBase [5904] - Importing VMs...
2012-10-04 15:25:09,861 INFO XenAPI.Session [5904] - Invoking XML-RPC method pool.get_all_records
2012-10-04 15:25:09,903 INFO XenAPI.Session [5904] - Invoking XML-RPC method VM_appliance.create
2012-10-04 15:25:09,973 INFO XenAPI.Session [5904] - Invoking XML-RPC method VM.create
2012-10-04 15:25:10,030 INFO XenAPI.Session [5904] - Invoking XML-RPC method VM.add_to_other_config
2012-10-04 15:25:10,079 INFO XenAPI.Session [5904] - Invoking XML-RPC method VM.get_name_label
2012-10-04 15:25:10,122 INFO XenAPI.Session [5904] - Invoking XML-RPC method VM.set_appliance
2012-10-04 15:25:10,181 INFO XenAPI.Session [5904] - Invoking XML-RPC method VM.set_start_delay
2012-10-04 15:25:10,245 INFO XenAPI.Session [5904] - Invoking XML-RPC method VM.set_shutdown_delay
2012-10-04 15:25:10,312 INFO XenAPI.Session [5904] - Invoking XML-RPC method VM.set_order
2012-10-04 15:25:10,364 INFO XenAPI.Session [5904] - Invoking XML-RPC method VM.get_VBDs
2012-10-04 15:25:10,411 INFO XenAPI.Session [5904] - Invoking XML-RPC method VM.get_name_label
2012-10-04 15:25:10,451 INFO XenAPI.Session [5904] - Invoking XML-RPC method VM.get_VBDs
2012-10-04 15:25:10,491 INFO XenAPI.Session [5904] - Invoking XML-RPC method VM.get_allowed_VBD_devices
2012-10-04 15:25:10,532 INFO XenAPI.Session [5904] - Invoking XML-RPC method VBD.create
2012-10-04 15:25:10,567 DEBUG XenAdmin.Actions.ActionBase [5904] - Attached CD/DVD Drive.
2012-10-04 15:25:10,573 INFO XenAPI.Session [5904] - Invoking XML-RPC method VM.get_name_label
2012-10-04 15:25:10,580 INFO XenAPI.Session [5904] - Invoking XML-RPC method SR.get_by_uuid
2012-10-04 15:25:10,637 INFO XenAPI.Session [5904] - Invoking XML-RPC method SR.get_by_uuid
2012-10-04 15:25:10,681 INFO XenAPI.Session [5904] - Invoking XML-RPC method SR.get_physical_size
2012-10-04 15:25:10,721 INFO XenAPI.Session [5904] - Invoking XML-RPC method SR.get_physical_utilisation
2012-10-04 15:25:10,758 INFO XenAPI.Session [5904] - Invoking XML-RPC method SR.get_content_type
2012-10-04 15:25:10,801 INFO XenAPI.Session [5904] - Invoking XML-RPC method SR.get_by_uuid
2012-10-04 15:25:10,842 INFO XenAPI.Session [5904] - Invoking XML-RPC method VDI.create
2012-10-04 15:25:12,661 DEBUG XenAdmin.Actions.ActionBase [5904] - Connecting virtual disk fc7320a2-28fa-45ce-a330-96694d7b02e9.vhd ...
2012-10-04 15:25:12,663 INFO XenAPI.Session [5904] - Invoking XML-RPC method VDI.get_uuid
2012-10-04 15:25:12,669 INFO XenAPI.Session [5904] - Invoking XML-RPC method session.get_this_host
2012-10-04 15:25:12,710 INFO XenAPI.Session [5904] - Invoking XML-RPC method host.call_plugin
2012-10-04 15:25:12,761 DEBUG XenAdmin.Actions.ActionBase [5904] - Disconnecting virtual disk fc7320a2-28fa-45ce-a330-96694d7b02e9.vhd ...
2012-10-04 15:25:12,764 INFO XenAPI.Session [5904] - Invoking XML-RPC method session.get_this_host
2012-10-04 15:25:12,810 INFO XenAPI.Session [5904] - Invoking XML-RPC method VM.destroy
2012-10-04 15:25:12,883 ERROR XenAdmin.Actions.AsyncAction [5904] - System.Exception: Failed to import. ---> System.IO.InvalidDataException: Failed to add resource Hard Disk Image. ---> System.Exception: Failed to import. ---> System.Exception: Failed to import virtual disk file. ---> System.Xml.XmlException: Отсутствует корневой элемент.
в System.Xml.XmlTextReaderImpl.Throw(Exception e)
в System.Xml.XmlTextReaderImpl.ParseDocumentContent()
в System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
в System.Xml.XmlDocument.Load(XmlReader reader)
в System.Xml.XmlDocument.LoadXml(String xml)
в XenOvfTransport.iSCSI.ParsePluginRecordFor(String name)
в XenOvfTransport.iSCSI.StopiScsiTarget(Session xenSession)
в XenOvfTransport.iSCSI.Disconnect(Session xenSession)
в XenOvfTransport.Import.UploadiSCSI(Session xenSession, String sruuid, String label, Stream filestream, Int64 capacity, String description)
в XenOvfTransport.Import.ImportFile(Session xenSession, String vmname, String pathToOvf, String filename, String compression, String version, String passcode, String sruuid, String description)
--- Конец трассировки внутреннего стека исключений ---
в XenOvfTransport.Import.ImportFile(Session xenSession, String vmname, String pathToOvf, String filename, String compression, String version, String passcode, String sruuid, String description)
в XenOvfTransport.Import.ImportFileProc(Object args)
--- Конец трассировки внутреннего стека исключений ---
в XenOvfTransport.Import.ImportFileProc(Object args)
в XenOvfTransport.Import.AddResourceSettingData(Session xenSession, XenRef`1 vmRef, RASD_Type rasd, String pathToOvf, String filename, String compression, String version, String passcode)
--- Конец трассировки внутреннего стека исключений ---
в XenOvfTransport.Import.AddResourceSettingData(Session xenSession, XenRef`1 vmRef, RASD_Type rasd, String pathToOvf, String filename, String compression, String version, String passcode)
в XenOvfTransport.Import.Process(Session xenSession, EnvelopeType ovfObj, String pathToOvf, String passcode)
--- Конец трассировки внутреннего стека исключений ---
в XenOvfTransport.Import.Process(Session xenSession, EnvelopeType ovfObj, String pathToOvf, String passcode)
в XenOvfTransport.Import.Process(EnvelopeType ovfObj, String pathToOvf, String passcode)
в XenAdmin.Actions.OVFActions.ImportApplianceAction.Run()
в XenAdmin.Actions.AsyncAction.RunWorkerThread(Object o)
2012-10-04 15:25:12,883 ERROR XenAdmin.Actions.AsyncAction [5904] - в XenOvfTransport.Import.Process(Session xenSession, EnvelopeType ovfObj, String pathToOvf, String passcode)
в XenOvfTransport.Import.Process(EnvelopeType ovfObj, String pathToOvf, String passcode)
в XenAdmin.Actions.OVFActions.ImportApplianceAction.Run()
в XenAdmin.Actions.AsyncAction.RunWorkerThread(Object o)
2012-10-04 15:25:12,883 WARN Audit [5904] - Operation failure: ImportApplianceAction:
xcp01.cpm.ru: Host 63613122-1246-43db-8942-78685b5ec7ca (
xcp01.cpm.ru): Disconnecting virtual disk fc7320a2-28fa-45ce-a330-96694d7b02e9.vhd ...
2012-10-04 15:25:12,883 DEBUG XenAdmin.Actions.ActionBase [5904] - System.Exception: Failed to import. ---> System.IO.InvalidDataException: Failed to add resource Hard Disk Image. ---> System.Exception: Failed to import. ---> System.Exception: Failed to import virtual disk file. ---> System.Xml.XmlException: Отсутствует корневой элемент.
в System.Xml.XmlTextReaderImpl.Throw(Exception e)
в System.Xml.XmlTextReaderImpl.ParseDocumentContent()
в System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
в System.Xml.XmlDocument.Load(XmlReader reader)
в System.Xml.XmlDocument.LoadXml(String xml)
в XenOvfTransport.iSCSI.ParsePluginRecordFor(String name)
в XenOvfTransport.iSCSI.StopiScsiTarget(Session xenSession)
в XenOvfTransport.iSCSI.Disconnect(Session xenSession)
в XenOvfTransport.Import.UploadiSCSI(Session xenSession, String sruuid, String label, Stream filestream, Int64 capacity, String description)
в XenOvfTransport.Import.ImportFile(Session xenSession, String vmname, String pathToOvf, String filename, String compression, String version, String passcode, String sruuid, String description)
--- Конец трассировки внутреннего стека исключений ---
в XenOvfTransport.Import.ImportFile(Session xenSession, String vmname, String pathToOvf, String filename, String compression, String version, String passcode, String sruuid, String description)
в XenOvfTransport.Import.ImportFileProc(Object args)
--- Конец трассировки внутреннего стека исключений ---
в XenOvfTransport.Import.ImportFileProc(Object args)
в XenOvfTransport.Import.AddResourceSettingData(Session xenSession, XenRef`1 vmRef, RASD_Type rasd, String pathToOvf, String filename, String compression, String version, String passcode)
--- Конец трассировки внутреннего стека исключений ---
в XenOvfTransport.Import.AddResourceSettingData(Session xenSession, XenRef`1 vmRef, RASD_Type rasd, String pathToOvf, String filename, String compression, String version, String passcode)
в XenOvfTransport.Import.Process(Session xenSession, EnvelopeType ovfObj, String pathToOvf, String passcode)
--- Конец трассировки внутреннего стека исключений ---
в XenOvfTransport.Import.Process(Session xenSession, EnvelopeType ovfObj, String pathToOvf, String passcode)
в XenOvfTransport.Import.Process(EnvelopeType ovfObj, String pathToOvf, String passcode)
в XenAdmin.Actions.OVFActions.ImportApplianceAction.Run()
в XenAdmin.Actions.AsyncAction.RunWorkerThread(Object o)
System.Exception: Failed to import. ---> System.IO.InvalidDataException: Failed to add resource Hard Disk Image. ---> System.Exception: Failed to import. ---> System.Exception: Failed to import virtual disk file. ---> System.Xml.XmlException: Отсутствует корневой элемент.
в System.Xml.XmlTextReaderImpl.Throw(Exception e)
в System.Xml.XmlTextReaderImpl.ParseDocumentContent()
в System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
в System.Xml.XmlDocument.Load(XmlReader reader)
в System.Xml.XmlDocument.LoadXml(String xml)
в XenOvfTransport.iSCSI.ParsePluginRecordFor(String name)
в XenOvfTransport.iSCSI.StopiScsiTarget(Session xenSession)
в XenOvfTransport.iSCSI.Disconnect(Session xenSession)
в XenOvfTransport.Import.UploadiSCSI(Session xenSession, String sruuid, String label, Stream filestream, Int64 capacity, String description)
в XenOvfTransport.Import.ImportFile(Session xenSession, String vmname, String pathToOvf, String filename, String compression, String version, String passcode, String sruuid, String description)
--- Конец трассировки внутреннего стека исключений ---
в XenOvfTransport.Import.ImportFile(Session xenSession, String vmname, String pathToOvf, String filename, String compression, String version, String passcode, String sruuid, String description)
в XenOvfTransport.Import.ImportFileProc(Object args)
--- Конец трассировки внутреннего стека исключений ---
в XenOvfTransport.Import.ImportFileProc(Object args)
в XenOvfTransport.Import.AddResourceSettingData(Session xenSession, XenRef`1 vmRef, RASD_Type rasd, String pathToOvf, String filename, String compression, String version, String passcode)
--- Конец трассировки внутреннего стека исключений ---
в XenOvfTransport.Import.AddResourceSettingData(Session xenSession, XenRef`1 vmRef, RASD_Type rasd, String pathToOvf, String filename, String compression, String version, String passcode)
в XenOvfTransport.Import.Process(Session xenSession, EnvelopeType ovfObj, String pathToOvf, String passcode)
--- Конец трассировки внутреннего стека исключений ---
в XenOvfTransport.Import.Process(Session xenSession, EnvelopeType ovfObj, String pathToOvf, String passcode)
в XenOvfTransport.Import.Process(EnvelopeType ovfObj, String pathToOvf, String passcode)
в XenAdmin.Actions.OVFActions.ImportApplianceAction.Run()
в XenAdmin.Actions.AsyncAction.RunWorkerThread(Object o)