作者:黑马理财投资 | 来源:互联网 | 2014-05-27 20:35
VMware虚拟机配置文件为*.vmx,以下具体是在VMwareWorkstation6下安装的SlackwareGNU/Linux12.0操作系统一例,其初始配置文件的名称为slackware.vmx,具体内容如下:.encodingGBKconfig.version8virtualHW.version6memsiz
VMware 虚拟机配置文件为 *.vmx,以下具体是在VMware Workstation 6 下安装的Slackware
GNU/Linux 12.0 操作系统一例,其初始配置文件的名称为slackware.vmx,具体内容如下:
.encoding = "GBK"
config.version = "8"
virtualHW.version = "6"
memsize = "256"
scsi0.present = "TRUE"
scsi0.virtualDev = "lsilogic"
scsi0:0.present = "TRUE"
scsi0:0.fileName = "slackware.vmdk"
ide1:0.present = "TRUE"
ide1:0.autodetect = "TRUE"
ide1:0.deviceType = "cdrom-image"
ide1:0.fileName = "slackware-12.0-install-dvd.iso"
floppy0.present = "FALSE"
ethernet0.present = "TRUE"
ethernet0.virtualDev = "e1000"
ethernet0.wakeOnPcktRcv= "FALSE"
ethernet0.addressType = "generated"
ehci.present = "TRUE"
pciBridge0.present = "TRUE"
sound.present = "FALSE"
usb.present = "FALSE"
vmci0.present = "TRUE"
roamingVM.exitBehavior = "go"
displayName = "slackware"
extendedCOnfigFile= "slackware.vmxf"
guestOS = "other26xlinux"
nvram = "slackware.nvram"
virtualHW.productCompatibility = "hosted"
Virtual Device
SCSI
"buslogic" BusLogic SCSI
"lsilogic" LSI Logic SCSI
"lsisas1068" LSI Logic SAS
Ethernet
"e1000" Intel(R) PRO/1000 MT Network Connection
"pcnet32" 设备为:AMD PCNet AM79C970A,
"vmxnet" VMware PCI Ethernet Adapter
宿主操作系统列表
guestOS = "other26xlinux"
Windows
"winxphome" Windows XP Home Edition
"winxppro" Windows XP Professional
"winxppro-64" Windows XP Professional x64 Edition
"winnetenterprise" Windows Server 2003 Enterprise Edition
"winnetenterprise-64" Windows Server 2003 Enterprise x64
Edition
Linux
"rhel3" Red Hat Enterprise Linux 3
"rhel3-64" Red Hat Enterprise Linux 3 64-bit
"rhel4" Red Hat Enterprise Linux 4
"rhel4-64" Red Hat Enterprise Linux 4 64-bit
"rhel5" Red Hat Enterprise Linux 5
"rhel5-64" Red Hat Enterprise Linux 5 64-bit
"sles11" SUSE Linux Enterprise 11
Netware
"netware6" Novell Netware 6
Other
freebsd FreeBSD
freebsd-64 FreeBSD 64-bit
dos MS-DOS
other Other
other-64 Other 64-bit
VMware 修改磁盘
disk.locking = "false"
VMware 修改网卡类型、网卡连接方式和网卡MAC地址的方法
一、修改网卡类型:
vmware默认使用是虚拟的AMD PCNet AM79C970A网卡,但是也可以改变网卡配置,虚拟出Intel
PRO/1000和VMware PCI Ethernet Adapter网卡。
方法是在虚拟机的.vmx文件中用添加或者修改如下语句指定网卡类型:
ethernet0.virtualDev = "e1000"
其值为e1000指定网卡类型为Intel(R) PRO/1000 MT Network Connection
其值为vmxnet指定网卡类型为VMware PCI Ethernet Adapter
其值为vlance指定网卡类型为AMD PCNet AM79C970A(默认为此项),现实的连接信息为:VMware
Accelerated AMD PCNet Adapter;未安装VMware Tools之前显示为:AMD PCNET Family
PCI Ethernet Adapter
二、修改网卡连接方式:
VMware 网卡连接方式有桥接方式、网络地址转换NAT方式、
ethernet0.cOnnectionType= "nat"
"nat"
"custom"
三、修改网卡MAC地址 修改VMware中网卡MAC地址的几种方法:
1、修改虚拟机的*.vmx文件.
这种方法最值得推荐,因为这样就类似于重新改写VMware虚拟机的"物理网卡ROM”。方法是:
分两种情况:
第一种:
ethernet0.addressType = "static"
ethernet0.Address = "00:50:56:C7:9B:36"
"static”说明vmware"物理网卡"的MAC是静态设定的,你可以修改成以005056开头的另外一个MAC即可。改完启动vmware时如果问你SSID的话,选择"Keep
Always”。注: 机器位址必须跟随这样式00:50:56:XX:XX:XX
第二种方法:
ethernet0.addressType = "generated"
uuid.location = "56 4d 31 44 c7 9b 76 01-ab aa b9 1b e2 6d d2
03"
uuid.bios = "56 4d 31 44 c7 9b 76 01-ab aa b9 1b e2 6d d2 03"
ethernet0.generatedAddress = "00:0c:29:6d:d2:03"
"generated"说明vmware"物理网卡"的MAC是系统随机动态设定的,你可以通过将uuid.bios后六位及ethernet0.generatedAddress后六位改成你想要改成的以000c29开头的MAC即可。
2、就是在Windows或者Linux等系统里面通过系统的软修改方式进行修改,关于这种方式的资料很多地方有提供就不再陈述了。