VirtualBox - Chapter 6
Chapter 6: Mount the FreeDOS image to transfer files
Mounting a VHD image on the host
If you like to exchange files between guest and host, mounting the guest image is an easy way to do it. You just open the FreeDOS disk image in VHD format in your host and drag’n drop files with Windows Explorer, Macs Finder or Gnomes Nautilus.
Take care: Don't mount an image while it is still running in VirtualBox. And for the worst case: Make sure you have backups.
(I wrote this HowTo for FreeDOS 1.1. But it works the same with FreeDOS 1.2.)
Windows 7 and later is able to connect VHD images. If your FreeDOS image is in VDI instead, you can convert it to VHD.
To connect the VHD image, click into the search bar.
If you are done, please take care to eject the image before you startup the FreeDOS guest in VirtualBox.
Mounting the volume is much easier on the Mac.
Get the program “Paragon VMDK Mounter” (free after registration). It can mount various image files like VDI or VHD. Find the image file you like to mount.
Double-click it. The FreeDOS volume is mounted and you can access it with the Finder.
macOS will add files and folders like
Please take care to eject the volume before starting the FreeDOS guest in VirtualBox.
GNU/Linux: Ubuntu 16.04 LTS
This section explains mounting a VHD image in Ubuntu 16.04 LTS. Please take care and do a backup first. Never mount a VHD while the virtual machine is running in VirtualBox.
You need to have
sudo apt-get install libguestfs-tools
I assume the VHD-file is named
It is mounted with user-rights, so the mount point should be in the home-directory. I assume
Now all you have to do, is to mount it with
guestmount -a FreeDOS_1.2.vhd -m /dev/sda1 /home/username/vhd
If you are not sure about the
virt-filesystems --long --filesystems -a FreeDOS_1.2.vhd
Don't forget to unmount the VHD file again before you start your FreeDOS guest in VirtualBox.
Continue with Chapter 7