8) build your custom kernel, 3 MB md area should be enough:
# Enable the hooks used for initializing the root memory-disk.
options MEMORY_DISK_HOOKS
options MEMORY_DISK_IS_ROOT # force root on memory disk
options MEMORY_DISK_SERVER=0 # no userspace memory disk support
options MEMORY_DISK_ROOT_SIZE=6000 # size of memory disk, in blocks
options MEMORY_RBFLAGS=0
# Kernel root file system and dump configuration.
config netbsd root on md0a type ffs