You should use VMware Player for Windows 95, as it has officially support for that. Here's an alternative way to install it:
What you need:
- DOS on a floppy or on an image (.flp, .img)
- Windows 95 CD
- VMware player (it's free) or VirtualPC (I recommend VMware)
- MagicIso (the free trial version will do)
- a copy of MSCDEX.EXE and oakcdrom.sys (both can be found online)
Procedure:
- Create a new virtual machine (make sure to add a floppy image drive if you are using VMware)
- Put your DOS floppy/image in or mount it and install DOS
Download and install the free version of MagicIso. Run it and go to new -> floppy -> 1.44
- Find a copy of mscdex.exe and oakcdrom.sys (generic CD-Rom driver that works with DOS. (might have to try another if it doesn't work)
- Rename the oakcdrom.sys to cdrom.sys
- Drag both these files into MagicIso on the floppy disk we just created
- Save the file
- Close MagicIso
- Find the file we just saved in Explorer and change the extension from .ima to .flp (if you are using VMware) or .img (if you are using VirtualPC). (if you can't see the extensions you're going to need to change your folder options to show extensions)
Go back to your virtual machine and mount the floppy image we just created. run the following commands:
a:\
copy mscdex.exe c:\
copy cdrom.sys c:\
Find config.sys in your C drive. type:
edit config.sys
Add a line that says this:
device=c:\cdrom.sys /d:mscd001
Exit and save
Find autoexec.bat in your C drive. Type:
edit autoexec.bat
Now add a line that says this
c:\mscdex.exe /d:mscd001
Exit and save
Restart the computer or virtual machine
Now move to your C drive and type:
mscdex.exe: /d:mscd001 /M:5 /V /L:d /S /K
(this part /M:x refers to the amount of buffers your drive has.. it's either 4 or 5. usually 5)
Create a blank floppy image either in VMware or MagicIso, then mount that new one. Put your Windows 95 CD in the CD drive and type:
d:\
setup.exe
It should be booting Windows 95 now
You might run into troubles when it tries to install the other drivers as it might ask you for Windows floppies even if you're using the CD version. You can find all of these drivers on the windows 95b CD if you have it, as they are all in .cab files (you would need to extract them 1 by 1 and put them on floppy images to use them).
I actually just got it to load the drivers off the Windows 95 CD by just trying it over and over again until it worked. It might have been because I either did or didn't restart after putting in the Windows 95 CD.
Make sure you check to make sure Windows 95 is seeing your CD drive. If not, go to the Add New Hardware Wizard in the Control Panel and see if that detects it.
(Note: I initially tried doing it without installing DOS using fdisk and format and manually adding the autoexec.bat and config.sys files but I was running into similar issues until I installed DOS first)