cd mkdkr temp cd temp [root@Nodetemp]# mount /dev/cdrom /mnt mount: block device /dev/sr0 is write-protected, mounting read-only [root@Nodetemp]# cp /mnt/VMwareTools-10.0.5-3228253.tar.gz ./ [root@Nodetemp]# umount /mnt [root@Nodetemp]# tar -xzf VMwareTools-10.0.5-3228253.tar.gz [root@Nodetemp]# cd vmware-tools-distrib/ [root@Nodevmware-tools-distrib]# ./vmware-install.pl
一路回车, 看见如下内容, 表示安装成功.
1 2 3 4 5 6 7 8 9
To enable advanced X features (e.g., guest resolution fit, drag and drop, and fileandtext copy/paste), you will need todo one (or more) of the following: 1. Manually start /usr/bin/vmware-user 2.Logoutandlog back into your desktop session; and, 3. Restart your X session.
Enjoy,
--the VMware team
克隆
将基础实例命名为M_BAK.
选中实例(右键) → 管理 → 克隆 → … → 创建完整克隆
虚拟机名称: M1
位置: D:\VM\M1
查看网卡信息
克隆产生的实例网卡信息会产生变化, 需要进行修改.
查看所有网卡信息: ifconfig
1 2 3 4 5 6 7 8 9
[root@Node ~]# ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:12 errors:0 dropped:0 overruns:0 frame:0 TX packets:12 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:904 (904.0 b) TX bytes:904 (904.0 b)
此时看不到eth0网卡的信息
编辑网卡设备信息
1
vim /etc/udev/rules.d/70-persistent-net.rules
1 2 3 4 5 6 7 8 9
# This file was automatically generated by the /lib/udev/write_net_rules # program, run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single # line, and change only the value of the NAME= key. # PCI device 0x8086:0x100f (e1000) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:a9:16:dc", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x8086:0x100f (e1000) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:de:b1:fa", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
Shutting down loopback insterface: [ OK ] Bringing up loopback insterface: [ OK ] Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization. [FAILED]