Skip to content

Commit 4db4a34

Browse files
committed
docs: add readme for guest-kernel
1 parent fc7c267 commit 4db4a34

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

guest-kernel/ReadMe.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Guest Kernel
2+
3+
This folder contains the build scripts and configuration for building a TDX-enabled guest kernel.
4+
5+
## Building the Kernel
6+
7+
To build the kernel, execute the build script from the `guest-kernel` directory:
8+
9+
```bash
10+
cd tdx
11+
./build.sh
12+
```
13+
14+
The script will:
15+
1. Clone the Ubuntu HWE 6.17 kernel source (with RTMR extend built-in)
16+
2. Apply the TDX configuration
17+
3. Enable required kernel options (TDX guest, VSOCK, netfilter, dm-crypt, etc.)
18+
4. Compile the kernel
19+
20+
## Kernel Image Location
21+
22+
After a successful build, the kernel image can be found at:
23+
24+
```
25+
linux/arch/x86/boot/bzImage
26+
```
27+
28+
## Make the kernel image exploitable by Conker
29+
30+
```
31+
cp linux/arch/x86/boot/bzImage /opt/cvm/kernel
32+
cd /opt/cvm/kernel
33+
mv bzImage bzImage-hwe-6.17-next
34+
```

0 commit comments

Comments
 (0)