I downloaded MS-DOS 6.22 and I installed it on my qemu. Now I want to transfer files from host to my DOS QEMU C drive.
Edit: My host operating system is 64-bit Linux (Debian).
I downloaded MS-DOS 6.22 and I installed it on my qemu. Now I want to transfer files from host to my DOS QEMU C drive.
Edit: My host operating system is 64-bit Linux (Debian).
QEMU can automatically create a virtual FAT disk image from a directory tree. To use it, create dir on host system, for example "share".
mkdir share
Copy required files to 'share' directory. Start QEMU with additional virtual drive 'd:' created from '/share':
qemu-system-x86_64 msdos.img -hdb fat:./share/
If you need to write to disk 'd:' add rw
:
qemu-system-x86_64 msdos.img -hdb fat:rw:./share/
To access files, type in MS-DOS command line:
d:
dir
Note. You should never write to the FAT directory on the host system while accessing it with the guest system. If want to add new files to 'share', shutdown the virtual machine before.
For move info see "Virtual FAT disk images" in QEMU documentation