This article applies to:
- OS: VMware 
- Product edition: Phoenix Cloud 
- Feature category: Restore 
Problem description
The restore performed during disaster recovery (DR) of a configured VM fails with an INTERNAL65535 error.
Cause
The name of the VMimport Role to access AWS is not set correctly.
Traceback
018-03-02 18:32:21,908] [ERROR] awsDRLib<initiate_import_image>: failed with error: An error occurred (InvalidParameter) when calling the ImportImage operation: The service role <vmimport> does not exist or does not have sufficient permissions for the service to continue [2018-03-02 18:32:21,908] [ERROR] Error <class 'botocore.exceptions.ClientError'>:An error occurred (InvalidParameter) when calling the ImportImage operation: The service role <vmimport> does not exist or does not have sufficient permissions for the service to continue. Traceback -Traceback (most recent call last): File "roboClientLib/boto/awsDRLib.py", line 853, in initiate_import_image UnboundLocalError: local variable 'response' referenced before assignment.
Resolution
You must create a role with the name specifically as vmimport while creating VMimport Role to access AWS. The steps involved to create the role are as follows:
- Create VMimport Policy to access data backup 
- Create VMimport Role to access AWS 
- Create IAM Policy to accessAWS resources 
- Create IAM Role for Phoenix AWS Proxy 
- Establish trust relationship for VM import Role 
See also
For the detailed procedure on role creation, see Create IAM policies and roles.
