VirtualBox - Chapter 7
Chapter 7: FTP between host and guest
FTP between host and guest
FreeDOS comes with mTCP FTPSRV, a fast and reliable FTP server, so that's also a good way to exchange files with the host.
Configure VirtualBox for networking
By default, VirtualBox configures all virtual machines to use "NAT" (Network Address Translation") in their network. This means FreeDOS will not communicate directly with the rest of your network. Instead everything is routed through your host machine. While this is most secure, it might not be the easiest way to set up your FreeDOS network.
Most people have a WiFi and a router at home, so the easiest way here is to connect the FreeDOS machine directly to the network. To do that, you have to change the VirtualBox network setting from "NAT" to "Bridged Adapter":
In this description I assume you use the "Bridged Adapter".
Using NAT has different advantages. If you want to learn more about it, look here.
Install the FTP server
If you haven't already, please install the mTCP programs. If the network is already up, you can do a simple
FDNPKG install MTCP
If you prefer to install it from the FreeDOS CD you can connect the CD to your virtual machine, start FDIMPLES and choose MTCP. Follow the steps described here.
Configure the FTP server
mTCPs configuration file in
copy C:\FDOS\DOC\MTCP\SAMPLE.CFG C:\FDOS\MTCP.CFG edit C:\fdos\mtcp.cfg
ftpsrv_password_file c:\fdos\ftppass.txt ftpsrv_log_file c:\fdos\ftpsrv.log FTPSRV_FILEBUFFER_SIZE 16 FTPSRV_TCPBUFFER_SIZE 16 FTPSRV_PACKETS_PER_POLL 2
user password [none] [any] all
This means the FTP server gives the user "user" with the password "password" complete access to all files.
Change it according to your needs. Learn more about password options in
Attention: The password will transferred unencrypted over the network.
Start the FTP server
Connect to the server
Connect to your FreeDOS virtual machine.
Recommendation: Some FTP-programs needs to be configured to handle the connection as “active“.
Connect from Windows
Connect from a Mac
Connect from GNU/Linux