4

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).

6
  • What is your host operating system. DOS 6 is 16-bit and will not communicate with any 64-bit machine. You would have to attach a CD to the DOS machine and transfer files that way.
    – anon
    Commented Mar 2, 2021 at 17:58
  • @John I edited my question.
    – sbh
    Commented Mar 2, 2021 at 18:01
  • Modern Linux is also 64-bit. Did you install Debian 32-bit?
    – anon
    Commented Mar 2, 2021 at 18:02
  • @John I edited my question again.
    – sbh
    Commented Mar 2, 2021 at 18:03
  • Thanks. You will need to attach a CD to the DOS system and transfer files that way. You cannot network DOS to a 64-bit machine.
    – anon
    Commented Mar 2, 2021 at 18:04

1 Answer 1

1

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

1
  • Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Commented Feb 8, 2022 at 21:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .