Skip to content

Commit

Permalink
Fix formatting issue in MPA registration section (#294)
Browse files Browse the repository at this point in the history
Signed-off-by: Bun K Tan <[email protected]>
  • Loading branch information
bktan8 authored Dec 4, 2024
1 parent 369106e commit eaa6ae6
Showing 1 changed file with 51 additions and 47 deletions.
98 changes: 51 additions & 47 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -426,61 +426,65 @@ sudo ./check-production.sh

10. Register the platform.

NOTE 1: There are multiple alternatives to perform platform registration with different trade-offs and they are explained in detail in [Intel's Intel TDX Enabling Guide](https://cc-enabling.trustedservices.intel.com/intel-tdx-enabling-guide/02/infrastructure_setup/#platform-registration).
NOTE 1: There are multiple alternatives to perform platform registration with different trade-offs and they are
explained in detail in
[Intel's Intel TDX Enabling Guide](https://cc-enabling.trustedservices.intel.com/intel-tdx-enabling-guide/02/infrastructure_setup/#platform-registration).

NOTE 2: If you're behind a proxy, add your proxy URL in `/etc/mpa_registration.conf` like the following example:
```console
proxy type = manual
proxy url = http://<proxy-url>:<port>
```
NOTE 2: If you're behind a proxy, add your proxy URL in `/etc/mpa_registration.conf` like the following example:

In the following, we focus on the the direct registration variant that uses the Multi-package Registration Agent (MPA).
This agent is executed on system start up, registers the platform (if necessary), and gets deactivated.
Please check the following two logs to confirm successful registration:
```console
proxy type = manual
proxy url = http://<proxy-url>:<port>
```

1. Check the log of the MPA service:

```bash
sudo systemctl status mpa_registration_tool
```
In the following, we focus on the the direct registration variant that uses the Multi-package Registration Agent (MPA).
This agent is executed on system start up, registers the platform (if necessary), and gets deactivated.
Please check the following two logs to confirm successful registration:

Example output:
1. Check the log of the MPA service:

```console
mpa_registration_tool.service - Intel MPA Registration
Loaded: loaded (/usr/lib/systemd/system/mpa_registration_tool.service; enabled; preset: enabled)
Active: inactive (dead) since Tue 2024-04-09 22:54:50 UTC; 11h ago
Duration: 46ms
Main PID: 3409 (code=exited, status=0/SUCCESS)
CPU: 21ms
```bash
sudo systemctl status mpa_registration_tool
```

Apr 09 22:54:50 right-glider-515046 systemd[1]: Started mpa_registration_tool.service - Intel MPA Registratio>
Apr 09 22:54:50 right-glider-515046 systemd[1]: mpa_registration_tool.service: Deactivated successfully.
```
Example output:

2. Check the log file of the MPA:
```bash
cat /var/log/mpa_registration.log
```

An example output of successful registration:

```console
[04-06-2024 03:05:53] INFO: SGX Registration Agent version: 1.20.100.2
[04-06-2024 03:05:53] INFO: Starts Registration Agent Flow.
[04-06-2024 03:05:54] INFO: Registration Flow - PLATFORM_ESTABLISHMENT or TCB_RECOVERY passed successfully.
[04-06-2024 03:05:54] INFO: Finished Registration Agent Flow.
```
```console
mpa_registration_tool.service - Intel MPA Registration
Loaded: loaded (/usr/lib/systemd/system/mpa_registration_tool.service; enabled; preset: enabled)
Active: inactive (dead) since Tue 2024-04-09 22:54:50 UTC; 11h ago
Duration: 46ms
Main PID: 3409 (code=exited, status=0/SUCCESS)
CPU: 21ms

If an error is reported, re-do the registration from scratch with these steps:
1. Remove the MPA log file: `sudo rm /var/log/mpa_registration.log`.
2. Reboot.
3. Go into the BIOS.
4. Navigate to `Socket Configuration > Processor Configuration > Software Guard Extension (SGX)`.
5. Set these:
- `SGX Factory Reset` to `Enable`
- `SGX Auto MP Registration` to `Enable`
Apr 09 22:54:50 right-glider-515046 systemd[1]: Started mpa_registration_tool.service - Intel MPA Registratio>
Apr 09 22:54:50 right-glider-515046 systemd[1]: mpa_registration_tool.service: Deactivated successfully.
```

2. Check the log file of the MPA:
```bash
cat /var/log/mpa_registration.log
```

An example output of successful registration:

```console
[04-06-2024 03:05:53] INFO: SGX Registration Agent version: 1.20.100.2
[04-06-2024 03:05:53] INFO: Starts Registration Agent Flow.
[04-06-2024 03:05:54] INFO: Registration Flow - PLATFORM_ESTABLISHMENT or TCB_RECOVERY passed successfully.
[04-06-2024 03:05:54] INFO: Finished Registration Agent Flow.
```

If an error is reported, re-do the registration from scratch with these steps:

1. Remove the MPA log file: `sudo rm /var/log/mpa_registration.log`.
2. Reboot.
3. Go into the BIOS.
4. Navigate to `Socket Configuration > Processor Configuration > Software Guard Extension (SGX)`.
5. Set these:
- `SGX Factory Reset` to `Enable`
- `SGX Auto MP Registration` to `Enable`

### 8.3 Setup [Intel Tiber Trust Services CLI](https://github.com/intel/trustauthority-client-for-go) Inside TD

Expand Down

0 comments on commit eaa6ae6

Please sign in to comment.