Andrew Scull | 2304204 | 2018-08-22 17:44:56 +0100 | [diff] [blame] | 1 | # Hafnium RAM disk |
| 2 | |
| 3 | Hafnium expects to find the following files in the root directory of its RAM |
| 4 | disk: |
| 5 | |
Andrew Walbran | 6f8fd4c | 2019-08-05 13:28:17 +0100 | [diff] [blame] | 6 | * `vmlinuz` -- the kernel of the primary VM. |
| 7 | * `initrd.img` -- the initial ramdisk of the primary VM. |
David Brazdil | 7a462ec | 2019-08-15 12:27:47 +0100 | [diff] [blame] | 8 | * kernels for the secondary VMs, whose names are described in the manifest. |
Andrew Scull | 2304204 | 2018-08-22 17:44:56 +0100 | [diff] [blame] | 9 | |
| 10 | Follow the [preparing Linux](PreparingLinux.md) instructions to produce |
| 11 | `vmlinuz` and `initrd.img` for a basic Linux primary VM. |
| 12 | |
Andrew Scull | 2304204 | 2018-08-22 17:44:56 +0100 | [diff] [blame] | 13 | ## Create a RAM disk for Hafnium |
| 14 | |
| 15 | Assuming that a subdirectory called `initrd` contains the files listed in the |
| 16 | previous section, we can build `initrd.img` with the following command: |
| 17 | |
| 18 | ```shell |
| 19 | cd initrd; find . | cpio -o > ../initrd.img; cd - |
| 20 | ``` |