本文参考了这篇文章

VMware是一个简单易用而且十分稳定的虚拟机软件。VMware公司最近公布了免费的 VMware Player, 它能够运行 VMware 制作的虚拟机,但是制作虚拟机就需要花费数千元购买 VMware Workstation。 (当然,破解不在本文讨论范围之内。)好在我们可以运用另一款免费的软件 QEmu 来制作虚拟机, 这样就能够做到完全免费了。

  1. 首先下载 VMware Player并安装。
  2. 下载 QEmu for Windows,并将其解压。
  3. 运行命令行,进入 QEmu 所在的目录,执行以下命令。

     qemu-img create -f vmdk image.vmdk 10G
    
    create建立虚拟硬盘
    -f vmdk指定虚拟硬盘的格式为VMware
    image.vmdk虚拟硬盘的文件名
    10G虚拟硬盘的大小
  4. 制作配置文件。用文本编辑器编辑一个 image.vmx 文件,内容如下。

     config.version = "8"
     virtualHW.version = "3"
     memsize = "256"
     ide0:0.present = "true"
     ide0:0.fileName = "image.vmdk"
     ide1:0.present = "true"
        
     # CD-ROM配置
     ide1:0.fileName = "auto detect"
     ide1:0.deviceType = "atapi-cdrom"
     # 如果使用光盘镜像,则用以下两行代替上面的两行
     # ide1:0.fileName = "/path/to/foo.iso"
     # ide1:0.deviceType = "cdrom-image"
        
     # 网络配置
     ethernet0.present = "true"
     ethernet0.connectionType = "nat"
     guestOS = "otherlinux"
    
  5. guestOS的值可按以下方法来配置。

    Windows Server 2003 Standard Editionwinnetstandard
    Windows XP Professionalwinxppro
    Windows 2000 Professionalwin2000Pro
    Red Hat Linux (generic)redhat
    SuSE Linux (generic)suse
    Netware 5netware5
    Netware 6netware6
    Solaris 9solaris9
    Solaris 10 (experimental)solaris10
    FreeBSD (generic)freebsd
    Other Linuxotherlinux
    Other Linux 2.4x kernelother24xlinux
    Other Linux 2.6x kernelother26xlinux
  6. 双击建立好的 image.vmx 即可启动虚拟机。