| 1 | = Set up a DOS VM with networking (and shared folders). = |
| 2 | |
| 3 | == Overview == |
| 4 | |
| 5 | Below you find tips on how to set up host/guest networking. The guest is a DOS 6.22 VM. |
| 6 | My host system is a typical WinXP machine with 1280*1024 display. I used VirtualBox 1.4.0. |
| 7 | |
| 8 | == Prerequisites == |
| 9 | |
| 10 | What do you need (apart from having a basic DOS 6.22 VM): |
| 11 | * MS Client for networks (two self-extracting files DSK3-1.EXE, DSK3-2.EXE) |
| 12 | * wg1049.exe |
| 13 | * netshar.exe |
| 14 | * Microsoft KB 128800 - on how to add extra NDIS2 drivers to the client setup |
| 15 | * AMD NIC drivers |
| 16 | |
| 17 | All the above is available at the web; e.g. check contributions by Johannes Helmig on connecting DOS clients. |
| 18 | |
| 19 | I used these AMD drivers: "NDIS2 driver for Windows 3.1 - 166 KB" which results in a file wfw31.exe |
| 20 | |
| 21 | Important: create a host interface .e.g VM1 external, and select Host Interface networking for your DOS VM, connecting it to VM1 external. See the VirtualBox manual for additional explanation and details. |
| 22 | |
| 23 | === Add AMD NDIS driver to MS Client setup === |
| 24 | |
| 25 | With the AMD drivers available and the files dsk3-1.exe and dsk3-2.exe: |
| 26 | * run dsk3-1 and dsk3-2 in a temporary directory |
| 27 | * follow MS KB 128800 instructions on how to add the AMD NDIS drivers to the setup routine |
| 28 | |
| 29 | === MS Client setup === |
| 30 | |
| 31 | Run setup from the temporary directory above. Hints: |
| 32 | * give host and guest the same workgroup name |
| 33 | * select basic redirection (to save memory in the DOS VM) |
| 34 | * when done: set filesharing to yes in the \NET\SYSTEM.INI file. |
| 35 | |
| 36 | The default protocol is the NWlink one and that should do. No need to add e.g. NetBEUI. |
| 37 | |
| 38 | Additional steps: |
| 39 | * copy netshar.exe and wg1049.exe to the \NET directory |
| 40 | * run these two executables there, they'll add and/or overwirte some files. |
| 41 | |
| 42 | === Host preparations === |
| 43 | |
| 44 | Before creating the DOS VM I created a Host Interface (see VirtualBox manual). Using WinXP Network setup I modified TCPIP proterties to use this IP address: 192.168.0.1 (subnetmask 255 255 255 0). |
| 45 | |
| 46 | If you want to share your c:\ drive: allow c:\ to be shared (e.g. as C, and allow users to modify your files as well; this will give read/write access to your c:\ drive (note: not recommended for security reasons). |
| 47 | |
| 48 | Be sure to have the same workgroup for both machines - host and guest. |
| 49 | |
| 50 | === Client preparations === |
| 51 | |
| 52 | Once your VM reboots you can export and import drives. |
| 53 | |
| 54 | Assuming that the VM computer name is DOSCLNT: |
| 55 | {{{ |
| 56 | C:\> net share dosc c:\ |
| 57 | }}} |
| 58 | |
| 59 | and assuming that your host computer name is XPHOST: |
| 60 | {{{ |
| 61 | C:\> net use e: \xphost\c |
| 62 | }}} |
| 63 | |
| 64 | Results can be schecked by the follwng tow commands: |
| 65 | {{{ |
| 66 | C:\> net share |
| 67 | C:\> net use |
| 68 | }}} |
| 69 | |
| 70 | Now you should be able to read from and write to the host. |
| 71 | |
| 72 | == Final result == |
| 73 | |
| 74 | Now I can read from and write to my hosts drive from the VB DOS machine ! Internet access via the physical host IC is still possible including keeping the host firewall alive. |
| 75 | |
| 76 | I did not care much about optimisation, just wanted to get it up and running. |
| 77 | |
| 78 | Limitations: |
| 79 | * I was not able to read guest files from the host. |
| 80 | * for security reasons I would not recommend sharing your root drive with anyone. |