没有VMWare Workstation版本的软件怎么创建一个虚拟机来跑gentoo linux?
在网上一搜索,还是有很多办法的。以下是其中之一:
1. 用qemu软件包中的qemu-img.exe创建一个适合gentoo linux的虚拟磁盘文件。QEMU是个模拟各种CPU的软件包。从
http://bellard.org/qemu/可以下载到个软件。创建虚拟磁盘用以下命令:
qemu-img.exe create -f vmdk ../vms/gentoo.vmdk 10G
2. 编辑类似如下的一个虚拟机配置文件:
- config.version = "8"
- virtualHW.version = "4"
- memsize = "256"
- ide0:0.present = "TRUE"
- ide0:0.fileName = gentoo.vmdk
- ide1:0.present = "TRUE"
- ide1:0.fileName = "../install-x86-minimal-2008.0.iso"
- ide1:0.deviceType = "cdrom-image"
- ethernet0.present = "TRUE"
- ethernet0.connectionType = "nat"
- usb.present = "TRUE"
- sound.present = "TRUE"
- sound.virtualDev = "es1371"
- displayName = "Gentoo Linux"
- guestOS = "other26xlinux"
- nvram = "gentoo.nvram"
- scsi0:0.redo = ""
- ethernet0.addressType = "generated"
- uuid.location = "56 4d 55 24 1a 1b cb 55-80 60 5e 2b 90 c0 69 53"
- uuid.bios = "56 4d 55 24 1a 1b cb 55-80 60 5e 2b 90 c0 69 53"
- ide1:0.autodetect = "TRUE"
- ethernet0.generatedAddress = "00:0c:29:c0:69:53"
- ethernet0.generatedAddressOffset = "0"
- checkpoint.vmState = "gentoo.vmss"
- tools.remindInstall = "TRUE"
- ide0:0.redo = ""
- floppy0.fileName = "A:"
- extendedConfigFile = "gentoo.vmxf"
- virtualHW.productCompatibility = "hosted"
- tools.upgrade.policy = "manual"
只要把其中虚拟磁盘文件和gentoo安装ISO文件指定到合适的位置即可。
关于.vmx文件的具体格式可以参考这篇文章
http://www.petri.co.il/virtual_vmware_vmx_configuration_files.htm