VMware ESXi 6.7:部署
如题所示,本文呈现部署VMware ESXi 6.7的技术细节;
开始本文前,请准备好ESXi 6.7的相关软件介质:
- VMware-VMvisor-Installer-6.7.0.update01-10302608.x86_64.iso(for ESXi)
本文为实验环境,因[……]
Adamhuan's Data Center - 【逻辑驱动数据】
数据玩物、代码屋、1/0游戏:(零和博弈)/ 禅宗意志 / 规则战争 / 解放数据力量 / 技术的飞速发展并没有改变这个世界,因为,这个世界从没有变,它只是越来越趋近于它本来的模样。
如题所示,本文呈现部署VMware ESXi 6.7的技术细节;
开始本文前,请准备好ESXi 6.7的相关软件介质:
本文为实验环境,因[……]
在使用VMware vSphere的web client的时候,你可能会遇到如题所示的问题。
具体如下:
有很多方法可以解决乱码问题。
一、
其中一个方法是这样的:
修改URL中的【locale】的指向就可以:
英语:/?locale=en_US
中文:/?loca[……]
首先,图形化挂载VMware Tools:
然后,命令行安装:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 |
[root@redis1 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_redis1-lv_root 48G 5.4G 41G 12% / tmpfs 3.9G 68K 3.9G 1% /dev/shm /dev/sda1 477M 41M 411M 10% /boot /dev/mapper/vg_redis1-lv_home 4.6G 9.6M 4.4G 1% /home [root@redis1 ~]# [root@redis1 ~]# mkdir /iso_me [root@redis1 ~]# [root@redis1 ~]# mount /dev/sr0 /iso_me/ mount: block device /dev/sr0 is write-protected, mounting read-only [root@redis1 ~]# [root@redis1 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_redis1-lv_root 48G 5.4G 41G 12% / tmpfs 3.9G 68K 3.9G 1% /dev/shm /dev/sda1 477M 41M 411M 10% /boot /dev/mapper/vg_redis1-lv_home 4.6G 9.6M 4.4G 1% /home /dev/sr0 71M 71M 0 100% /iso_me [root@redis1 ~]# [root@redis1 ~]# ls -ltr /iso_me/ total 71888 -r-xr-xr-x 1 root root 1850 Feb 17 2016 run_upgrader.sh -r-xr-xr-x 1 root root 687524 Feb 17 2016 vmware-tools-upgrader-32 -r-xr-xr-x 1 root root 757944 Feb 17 2016 vmware-tools-upgrader-64 -r-xr-xr-x 1 root root 2012 Feb 17 2016 manifest.txt -r--r--r-- 1 root root 72162730 Feb 17 2016 VMwareTools-10.0.6-3560309.tar.gz [root@redis1 ~]# [root@redis1 ~]# cd /software/ [root@redis1 software]# cp /iso_me/VMwareTools-10.0.6-3560309.tar.gz . [root@redis1 software]# [root@redis1 software]# tar -xzf VMwareTools-10.0.6-3560309.tar.gz [root@redis1 software]# cd vmware-tools-distrib/ [root@redis1 vmware-tools-distrib]# ls -ltr total 516 -rwxr-xr-x 1 root root 243 Feb 17 2016 vmware-install.pl drwxr-xr-x 3 root root 4096 Feb 17 2016 vgauth drwxr-xr-x 14 root root 4096 Feb 17 2016 lib drwxr-xr-x 5 root root 4096 Feb 17 2016 caf -rwxr-xr-x 1 root root 205571 Feb 17 2016 vmware-install.real.pl drwxr-xr-x 2 root root 4096 Feb 17 2016 installer -rw-r--r-- 1 root root 2538 Feb 17 2016 INSTALL drwxr-xr-x 5 root root 4096 Feb 17 2016 etc drwxr-xr-x 2 root root 4096 Feb 17 2016 doc drwxr-xr-x 2 root root 4096 Feb 17 2016 bin -rw-r--r-- 1 root root 282475 Feb 17 2016 FILES [root@redis1 vmware-tools-distrib]# [root@redis1 vmware-tools-distrib]# ./vmware-install.pl Creating a new VMware Tools installer database using the tar4 format. Installing VMware Tools. In which directory do you want to install the binary files? [/usr/bin] What is the directory that contains the init directories (rc0.d/ to rc6.d/)? [/etc/rc.d] What is the directory that contains the init scripts? [/etc/rc.d/init.d] In which directory do you want to install the daemon files? [/usr/sbin] In which directory do you want to install the library files? [/usr/lib/vmware-tools] The path "/usr/lib/vmware-tools" does not exist currently. This program is going to create it, including needed parent directories. Is this what you want? [yes] In which directory do you want to install the common agent library files? [/usr/lib] In which directory do you want to install the common agent transient files? [/var/lib] In which directory do you want to install the documentation files? [/usr/share/doc/vmware-tools] The path "/usr/share/doc/vmware-tools" does not exist currently. This program is going to create it, including needed parent directories. Is this what you want? [yes] The installation of VMware Tools 10.0.6 build-3560309 for Linux completed successfully. You can decide to remove this software from your system at any time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl". Before running VMware Tools for the first time, you need to configure it by invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want this program to invoke the command for you now? [yes] Initializing... Making sure services for VMware Tools are stopped. Found a compatible pre-built module for vmci. Installing it... Found a compatible pre-built module for vsock. Installing it... The module vmxnet3 has already been installed on this system by another installer or package and will not be modified by this installer. The module pvscsi has already been installed on this system by another installer or package and will not be modified by this installer. The module vmmemctl has already been installed on this system by another installer or package and will not be modified by this installer. The VMware Host-Guest Filesystem allows for shared folders between the host OS and the guest OS in a Fusion or Workstation virtual environment. Do you wish to enable this feature? [no] Found a compatible pre-built module for vmxnet. Installing it... The vmblock enables dragging or copying files between host and guest in a Fusion or Workstation virtual environment. Do you wish to enable this feature? [no] VMware automatic kernel modules enables automatic building and installation of VMware kernel modules at boot that are not already present. This feature can be enabled/disabled by re-running vmware-config-tools.pl. Would you like to enable VMware automatic kernel modules? [no] Disabling timer-based audio scheduling in pulseaudio. Do you want to enable Guest Authentication (vgauth)? Enabling vgauth is needed if you want to enable Common Agent (caf). [yes] Do you want to enable Common Agent (caf)? [yes] Detected X server version 1.17.4 Distribution provided drivers for Xorg X server are used. Skipping X configuration because X drivers are not included. Creating a new initrd boot image for the kernel. Generating the key and certificate files. Successfully generated the key and certificate files. vmware-tools start/running The configuration of VMware Tools 10.0.6 build-3560309 for Linux for this running kernel completed successfully. You must restart your X session before any mouse or graphics changes take effect. You can now run VMware Tools by invoking "/usr/bin/vmware-toolbox-cmd" from the command line. To enable advanced X features (e.g., guest resolution fit, drag and drop, and file and text copy/paste), you will need to do one (or more) of the following: 1. Manually start /usr/bin/vmware-user 2. Log out and log back into your desktop session; and, 3. Restart your X session. Enjoy, --the VMware team Found VMware Tools CDROM mounted at /iso_me. Ejecting device /dev/sr0 ... [root@redis1 vmware-tools-distrib]# |
安装完成后,查看一下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
[root@redis1 ~]# ls -ltr /etc/vmware-tools/ total 548 -rw-r--r-- 1 root root 2012 May 18 17:25 manifest.txt.shipped -rw-r--r-- 1 root root 1107 May 18 17:25 vmware-user.Xresources -rw-r--r-- 1 root root 826 May 18 17:25 statechange.subr -rwxr-xr-x 1 root root 3712 May 18 17:25 poweron-vm-default -rwxr-xr-x 1 root root 3712 May 18 17:25 poweroff-vm-default -rw-r--r-- 1 root root 1711 May 18 17:25 xsession-xdm.pl -rw-r--r-- 1 root root 107 May 18 17:25 vmware-tools-prelink.conf -rw-r--r-- 1 root root 210 May 18 17:25 vmware-tools-libraries.conf drwxr-xr-x 2 root root 4096 May 18 17:25 vmware-tools -rwxr-xr-x 1 root root 3712 May 18 17:25 suspend-vm-default -rwxr-xr-x 1 root root 3712 May 18 17:25 resume-vm-default -rwxr-xr-x 1 root root 32021 May 18 17:25 installer.sh -rwxr-xr-x 1 root root 6442 May 18 17:25 xsession-xdm.sh -rwxr-xr-x 1 root root 510 May 18 17:25 xsession-gdm.sh drwxr-xr-x 3 root root 4096 May 18 17:25 scripts drwxr-xr-x 11 root root 4096 May 18 17:25 messages -rwxr-xr-x 1 root root 44153 May 18 17:25 services.sh -rwxr-xr-x 1 root root 453 May 18 17:26 guestproxy-ssl.conf -rwxr-xr-x 1 root root 58 May 18 17:26 vgauth.conf -rw-r--r-- 1 root root 207 May 18 17:26 vmware-user.desktop lrwxrwxrwx 1 root root 29 May 18 17:26 plugins -> /usr/lib/vmware-tools/plugins lrwxrwxrwx 1 root root 25 May 18 17:26 icu -> /usr/lib/vmware-tools/icu -rw-r--r-- 1 root root 33 May 18 17:26 config drwxr-xr-x 4 root root 4096 May 18 17:29 GuestProxyData -rw-r--r-- 1 root root 3833 May 18 17:30 manifest.txt -rw-r--r-- 1 root root 393214 May 18 17:30 locations [root@redis1 ~]# 0 |
查看当前VMware tools服务的运行情况:[……]
在使用vmware vsphere web client的时候,如果第一次打开控制台的时候选择了,那么后面都会记住选择。
这个配置其实是可以更改的,具体如下:
——————————————
Done。[……]
在前面,我在VMware vSphere上的RHEL 6中搭建了一个RHCS集群。
接下来,我们需要为该集群配置Fencing Device。
在VMware vSphere中配置Fence的时候,如果采用【VMware Fencing】,那么首要的,需要保证集群的两台机器运行在同一个E[……]