修改vmx文件|虚拟机vmx文件修改无法打开

A. 如何更改ESXI的虚拟机的.vmx配置文件

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.proctCompatibility = "hosted"Virtual DeviceSCSI"buslogic" BusLogic SCSI"lsilogic" LSI Logic SCSI"lsisas1068" LSI Logic SASEthernet"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 EditionLinux"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 11Netware"netware6" Novell Netware 6Otherfreebsd FreeBSDfreebsd-64 FreeBSD 64-bitdos MS-DOSother Otherother-64 Other 64-bitVMware 修改磁盘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等系统里面通过系统的软修改方式进行修改,关于这种方式的资料很多地方有提供就不再陈述了

B. 虚拟机vmx文件修改无法打开

Vmware是一款可以在一种操作系统平台上虚拟出其他一些操作系统的虚拟机软件,可以自由地对自己需要学习和试验的操作环境进行配置和修改,不用担心会导致系统崩溃,还可以让用户在单机上构造出一个虚拟网络来加强对网络知识的学习。下面我们就来了解一下Vmware的安装和设置方法吧。软件安装1。下载到相关linux的版本的iso。2。建立一个linux的虚拟机。3。设置好该虚拟机的光驱,指定为你的iso4。启动虚拟机,之后安装在新电脑上安装linux的方法进行安装. 网卡Bridged — If the host computer is on an Ethernet network, bridged networking is often the easiest way to give your virtual machine access to that network. With bridged networking, the virtual machine appears as an additional computer on the same physical Ethernet network as the host. A virtual machine with bridged networking may transparently use any of the services available on the network to which it is bridged, including file servers, printers, gateways and so on. Likewise, any physical host or other virtual machine configured with bridged networking can use resources of that virtual machine. NAT (Network Address Translation) — If you want to connect to the Internet or other TCP/IP network using the host computer's dial-up networking connection and you are not able to give your virtual machine an IP address on the external network, this is often the easiest way to give the virtual machine access to that network. The virtual machine does not have its own IP address on the external network. Instead, a separate private network is set up on the host computer. The virtual machine obtains an address on that network from the VMware virtual DHCP server. Host-only — When you use this type of network connection, the virtual machine is connected to the host operating system on a virtual private network, which normally is not visible outside the host. Multiple virtual machines configured with host-only networking on the same host are on the same network. Custom — If you want to set up a more complex networking configuration, select Custom for one or more of the virtual network adapters. After selecting Custom, choose a virtual switch (VMnet2-VMnet7or VMnet9) from the drop-down list. This connects your virtual machine's adapter to that switch. All virtual machines running on the same host computer and connected to the same virtual switch are on the same virtual network 创建新的虚拟机 双击桌面图标,即可启动软件,并创建新的虚拟机。具体步骤如下: 1.选择“File→New→New Virtual Machine”菜单选项,弹出创建虚拟机的向导(图1)。 图1虚拟机创建向导 2.在向导窗口中选择创建虚拟机的类型。“Typical”是默认的典型方式,此方式中包括了常用的“硬件”配置:显卡、声卡、网卡,要注意的是这些设备并不依赖于你真正的硬件设备,它们通常是凌驾于硬件之上的虚拟设备,这也正是它拷贝到任何机器上都可以运行的原因;另一种“Custom”方式则是自定义方式,可以自主选择虚拟机内需要哪些“硬件”设备,这种方式通常是留给“高手”使用的。 3.接着选择我们需要在虚拟机上运行的操作系统。从图2中可以看出该虚拟机软件可以支持的操作系统包括从MS-DOS到Windows 2003以及Unix、Linux、Netware等众多版本的操作系统。本文中我们以安装Linux操作系统的虚拟机为例,在图2中选择“Linux”选项。 图2虚拟机软件系统选择界面 4.输入该虚拟机的名字(任意的)以及该虚拟机文件将要存放的位置。 至此一个虚拟机系统的设置工作已经完成,下面我们来看看如何使用虚拟机。 创建虚拟机软件系统 单击图3中左边名为“Linux”的虚拟机,再单击工具栏中的绿色三角标志,启动该虚拟机(红色钮表示停止虚拟机运行,中间按钮表示暂停虚拟机运行)。 图3启动虚拟操作系统 首先启动的是虚拟机的自检过程,调用虚拟机的BIOS。因为我们安装“Linux”系统需要使用光盘引导,所以此时需要按F2键进入虚拟机的BIOS设置程序,设置为光盘启动。 接下来在光驱中放入Linux系统的安装光盘,重新启动虚拟机,然后就如同在实体计算机上一样安装Linux系统。提示:此时虚拟机的硬盘就如同刚刚买回的新硬盘一样,你只管放心大胆地分区格式化,对你的真实系统丝毫不会造成损坏,因为Vmware将计算机上的一个文件夹虚拟成一个硬盘,默认大小是4GB。系统安装完成后,重新启动虚拟机。 至此整个虚拟机的设置与安装工作全面完成(图4),这个虚拟的Linux系统就以文件的形式存放在你的硬盘中,将来如果不需要这个虚拟机系统了,直接将对应文件夹删除就可以了。除此以外,你还可以将该路径下的文件拷贝到其他装有Vmware软件的机器中。 图4虚拟操作系统启动界面 其他的虚拟机系统也以同样的方法进行安装。笔者的宿主机上运行的是Windows 2000 Server,在同一台宿主机上同时安装了Linux、Unix、Windows 98系统,没有发现任何冲突。 在vmware的LINUX中使用本地硬盘的FAT分区 将本地的FAT分区共享,然后在VMWARE中使用SMBFS挂上。可以将如下的行放到/etc/fstab中: //win_ip/D$ /mnt/d smbfs defaults,auto,username=win_name,password=win_pass,codepage=936,iocharest=gb2312 0 0 其中win_ip是你的windows的IP地址;D$是你的windows里面共享的D盘的共享名; /mnt/d是要将该分区mount到linux的目录; win_name和win_pass是你的WINDOWS里面可以读取该分区的用户,比如你的管理员名和密码。如果你运行了/etc/rc.d/init.d/netfs,那么在启动的时候就会自动挂载这个分区。


赞 (0)