Skip to content
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.

Latest commit

 

History

History
20 lines (14 loc) · 667 Bytes

HafniumRamDisk.md

File metadata and controls

20 lines (14 loc) · 667 Bytes

Hafnium RAM disk

Hafnium expects to find the following files in the root directory of its RAM disk:

  • vmlinuz -- the kernel of the primary VM.
  • initrd.img -- the initial ramdisk of the primary VM.
  • kernels for the secondary VMs, whose names are described in the manifest.

Follow the preparing Linux instructions to produce vmlinuz and initrd.img for a basic Linux primary VM.

Create a RAM disk for Hafnium

Assuming that a subdirectory called initrd contains the files listed in the previous section, we can build initrd.img with the following command:

cd initrd; find . | cpio -o > ../initrd.img; cd -