1、复制设置配置文件,一般如没有网卡eth0配置文件,可到网卡配置目/etc/sysconfig/network-scripts/下面都会有一个 ifcfg-lo 回环接口配置文件,拷贝一份;
2、编写配置文件,通过上述方法复制的文件不完整,可通过vi编辑输入补全,或直接手动输入设置,
3、重启网络服务,设置好网卡配置之后,需将网络服务重启一下,输入如下命令service network restar即可恢复正常。
步骤一:启动SSH功能1、修改ESXi配置文件,就需要在ESXi主机上启用SSH功能。2、使用vSphere Client登录VMware ESXi,依次选中“配置-安全配置文件-属性”,3、启用ssh服务,同时ssh服务开启服务器。步骤二:然后使用SSH客户端,登录到ESXi主机,修改以下配置文件1、使用vi编辑器,修改/etc/ntp.conf,在最后一行添加一行:tos maxdist 30,添加挖成后,按esc,输入:wq,存盘退出,2、修改/etc/likewise/lsassd.conf文件,去掉#sync-system-time的注释,并设置:sync-system-time = yes,3、执行./etc/init.d/lsassd restart,重启lsassd服务,4、执行/etc/init.d/ntpd restart,5、在ESXi中,指定ESXi与Active Directory服务器进行同步就可以,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等系统里面通过系统的软修改方式进行修改,关于这种方式的资料很多地方有提供就不再陈述了
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)