Virtual 2004中安装DOS以及实现文件共享的方法
--- Next --- check "create a virtual machine"
--- Next --- specify e.g. "D:\Vdisk\MS-DOS 6.22" for "Name and Location"
--- Next --- choose operating system: MS-DOS
--- Next --- check "Adjusting the RAM", select 128MB if you have >=512MB memory
--- Next --- check "A new virtual hard disk"
--- Next --- check D:\Vdisk\MS-DOS 6.22 Hard Disk.vhd
--- Next
--- Finish
4. 在MS-DOS 6.22虚拟机上安装DOS 6.22系统:
(0) 从虚拟机控制台(Virtual PC Console)点"Start" 启动虚拟机,看到如下显示文字:
Reboot and Select proper Boot device
or Insert Boot Media in selected Boot device
(1) 在虚拟机窗口,点菜单CD ---- Capture ISO image, 找到DOS6.22_bootdisk.iso
(2) 在虚拟机窗口,点菜单---- Action ---- Ctrl+Alt+Del 重启虚拟机
得到DOS提示符A:\>
(3) A:\> fdisk????????????????? --- partition a disk space for DOS (要求会使用fdisk进行磁盘分区)
例如,选择 500 MB 磁盘空间给此DOS虚拟机。按提示完成,并重启。
(4) A:\>
A:\> format c:/s???????? --- format C:\ as the system disk (bootable disk)
(5) A:\> sys c:???????????????? --- transfer system
(6) A:\> copy *.* c:\?????????? --- DO NOT overwrite the existing file on C (e.g. command.com)
(7) 在虚拟机窗口,点菜单CD --- Release "DOS6.22_bootdisk.iso"
(8) 在虚拟机窗口,点菜单Action ---- Ctrl+Alt+Del 重启虚拟机, 得到DOS提示符C:\>
这就是刚安装在虚拟机上的MS-DOS 6.22系统。
5. 安装additions并设置共享文件夹 -- 这样才能在DOS下处理Win XP里的文件:
(1) 在虚拟机窗口,点菜单Action ---- Install or Update Virtual Machine Additions
这将把VMAdditions013040.iso (在MVirtualPC2004/Setup/Program File/Microsoft Virtual PC/Additions 目录下, 25,536 KB, 2003-10-22)自动挂到CD(虚拟机上的虚拟光驱)上
【(2) 点Action ---- Ctrl+Alt+Del 重启虚拟机】 --此步可以免去
(3) 转到R盘并运行fshare程序:
R:/> cd dos
R:/> fshare
注意: 我从下载的VPC 2004 SP1包里(或安装后)得到的VMAdditions.iso (sized 26,354 KB and dated on 2004-8-3) 不行:当装载后,执行fshare时出现:”Bad command or file name“,也就是不能设置文件夹共享。同样,VPC 2007(V.6.0.156.0)包里的VMAdditions.iso (sized 27,270 KB and dated on 2007-1-26) 也不行。因此,装完VPC 2004 SP1或者VPC 2007后,把VPC 2004包里的VMAdditions013040.iso拷过来用,就行了。支持文件夹共享的程序是fshare.exe,其在2004版里的大小是14,731 B (dated on 10-10-03), while in 2004 SP1 or 2007 it is sized 14,877 B (dated on 01-25-07 in 2007).
(4) 在虚拟机窗口,点Edit ---- Settings ---- Shared folders: then configure your shared folders
(5) C:\> dir z:?? --- check the shared folder
(6) 在虚拟机窗口,点Action ---- Close, 选择Save State(保存状态), 退出
(7) 从虚拟机控制台(Virtual PC Console), 点"Start" 重新启动虚拟机,设置完成。
注意: (1) 每次退出(by clicking Action --- Close)虚拟机时,最好选择Save State(保存状态)。
(2) 可以成功安装MS-DOS 7.10,但安装过程中有一项:要选"Don't load",不要选择前两项“Enable UMB”或"Load both UMB and EMS", 否则不能设置共享文件夹。VPC 2004 SP1 似乎已解决此问题。
(3) 进一步的问题: 在虚拟机的DOS里运行程序非常慢,有人说VPC 2004 SP1解决了VPC 2004执行速度慢的问题,我使用的情况似乎没有。准备试一试前一版本(Connectix VPC 5.2)。
(4) VMware Workstation 5.5.4 build 44386 不支持DOS;5.5.3 build 34685支持,但我装完MS-DOS 6.22后,尽管可以设置共享目录,但不知怎么用--没有地方设置指向目录的盘符,只是给目录指定名字,因此不知道怎么使用。要用MS-DOS 6.22就使用 VPC 2004就足够。
zay
2007.08.22
参考: http://cnchenjian.spaces.live.com/blog/cns!b3ac42eab4e41da3!223.entry