Closed humphd closed 6 years ago
Let's use buildroot to create a stripped down Linux Kernel and BusyBox command set. Ideally we'd get rid of everything we can't/won't use to save space.
I will need the following Kernel Modules for 9Pfs sharing:
CONFIG_NET_9P=y CONFIG_NET_9P_VIRTIO=y CONFIG_NET_9P_DEBUG=y CONFIG_VIRTIO=y CONFIG_VIRTIO_PCI=y CONFIG_9P_FS=y CONFIG_9P_FSCACHE=y CONFIG_9P_FS_POSIX_ACL=y
There's another example Dockerfile you can look at, from someone who did a similar thing:
https://github.com/ysangkok/build-v86-9p-linux
See also https://github.com/copy/v86/blob/master/docs/linux-9p-image.md
http://mgalgs.github.io/2015/05/16/how-to-build-a-custom-linux-kernel-for-qemu-2015-edition.html is useful info.
Another thing we'll need, is terminal access on the first serial port, ttyS0, perhaps this in inittab:
ttyS0
inittab
ttyS0::respawn:/sbin/rungetty ttyS0 --autologin root
I've done this now, and it's landed.
Let's use buildroot to create a stripped down Linux Kernel and BusyBox command set. Ideally we'd get rid of everything we can't/won't use to save space.
I will need the following Kernel Modules for 9Pfs sharing:
There's another example Dockerfile you can look at, from someone who did a similar thing:
https://github.com/ysangkok/build-v86-9p-linux