Help Center/ Server Migration Service/ User Guide (Kuala Lumpur Region)/ FAQs/ Target Server Configuration and Launch/ How Do I Resolve Error "SELinux targeted" When I Start a Linux Target Server After the Migration Is Complete?
Updated on 2024-03-15 GMT+08:00

How Do I Resolve Error "SELinux targeted" When I Start a Linux Target Server After the Migration Is Complete?

Symptom

When you started a Linux target server after the migration succeeded, message "SELinux targeted" was displayed.

Possible Causes

The SELinux configuration is incorrect.

Solution

  1. Find another ECS that is in the same AZ as the target server and can access the Internet. Detach the system disk from the target server and attach the disk to the ECS.
  2. Mount the related disk partitions.
  3. Locate the SELinux configuration file in the disk and set SELinux to Disabled.

    Do not modify the SELinux configuration file of the temporary ECS.

  4. Mount the system disk and related partitions back to the target server and restart the target server.