真正免费的VMware
本文参考了这篇文章。
VMware是一个简单易用而且十分稳定的虚拟机软件。VMware公司最近公布了免费的 VMware Player, 它能够运行 VMware 制作的虚拟机,但是制作虚拟机就需要花费数千元购买 VMware Workstation。 (当然,破解不在本文讨论范围之内。)好在我们可以运用另一款免费的软件 QEmu 来制作虚拟机, 这样就能够做到完全免费了。
- 首先下载 VMware Player并安装。
- 下载 QEmu for Windows,并将其解压。
-
运行命令行,进入 QEmu 所在的目录,执行以下命令。
qemu-img create -f vmdk image.vmdk 10G
create 建立虚拟硬盘 -f vmdk 指定虚拟硬盘的格式为VMware image.vmdk 虚拟硬盘的文件名 10G 虚拟硬盘的大小 -
制作配置文件。用文本编辑器编辑一个 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"
-
guestOS的值可按以下方法来配置。
Windows Server 2003 Standard Edition winnetstandard Windows XP Professional winxppro Windows 2000 Professional win2000Pro Red Hat Linux (generic) redhat SuSE Linux (generic) suse Netware 5 netware5 Netware 6 netware6 Solaris 9 solaris9 Solaris 10 (experimental) solaris10 FreeBSD (generic) freebsd Other Linux otherlinux Other Linux 2.4x kernel other24xlinux Other Linux 2.6x kernel other26xlinux - 双击建立好的 image.vmx 即可启动虚拟机。