'How to add msdos os files io.sys and msdos.sys in bootloader or boot sector code?

I created a boot loader floppy image file myfloppy.flp for ms-dos operating system. When I run this floppy image in VM virtual box then I get the very famous error code lines:

Non-System disk or disk error
Replace and press any key when ready

Clearly these lines are appearing because I didn't added yet two msdos famous files "io.sys" and "msdos.sys" in my virtual floppy image. My problem is that how can I add these two files in my virtual floppy image?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source