Install freedos for bochs, copy files for host and guest systems, install freedos for bochs, and download freedos images for copy files for host and guest systems (freedos. iso) install bochs (2.4.5) to create a disk image bximage-q-hd-mode = flat-size = 200Mfreedos. the sample file for img to edit the bochs configuration file is modified in the sample file under the/user/share/doc/bochs/sample directory, and then renamed to bochsrc-freedosmemory: guest = 32 M, host = 32 M # Do not floppya: Drawing 44 =/dev/fd0, status = inserted # optical drive, iso file path ata0-slave: type = cdrom, path =/xxx/freedos1.0.iso, status = inserted # Ata0-master: type = disk, mode = flat, path =/xxx/freedos. img # Do not use serial ports # com1: enabled = 1, mode = term, dev =/dev/ttyS0 # Do not use parallel ports # parport1: enabled = 1, file = "/dev/lp0" Start bochs, bochs-q-f. /bochsrc-freedos then enters the freedos installation interface and installs freedos. This is not detailed. The first entry is because it is a blank disk, so we need to partition it first. I only divided it into one partition, in The bochs manual, there is a sentence about the host and guest copy files: The hard disk image access doesn 'twork if the image contains more than one partition. then restart and select the first security item Install freedos (because it was just partition, now formally installed) after the installation is complete, modify bochsrc-freedos # installation is complete, no longer need to drive # ata0-slave: type = cdrom, path =/xxx/freedos1.0.iso, status = inserted # boot: cdrom # boot from the hard disk: Copy files from disk HOST and GUEST first stop bochs (it seems that when bochs is on, when the file is copied, the size value is 0) sudo losetup/dev/loop0/xxx/freedos. img-o 32256 is a hard drive image file, therefore, you must add-o 32256 sudo mkdir/mnt/loopsudo mount-o rw-t vfat/dev/loop0/mnt/loopcd/mnt/loop, you can see the files under freedos, and then you can copy the files, but copy the files. Sudo is required, because it is the root permission.) After the copy is completed, unmount sudo umount/mnt/loopsudo losetup-d/dev/loop0 and restart bochs to view the copied files.