文章目录

  • esxtop
  • vmware host的内核是自己build
  • vSPhere 5.5.0
  • ESXi 6.7 版本信息 Hypervisor
  • host上抓包
  • manual
  • 兼容性
    • VMware 和 RHEL
  • vmware 支持的guest vm 操作系统类型
  • ovf 定义
  • 怎么判断当前的vm是否是VMware的
  • 串口
  • mount vmdk 文件
  • 如果抓取console log
  • vmware 日志文件列表
    • vmkernel.log
  • 登录console server?
  • 命令行方式
  • 错误总结
    • GuestInfoAddNicEntry: NIC limit (16) reached, skipping overflow.
    • RecordRoutingInfoIPv6: route limit (100) reached, skipping overflow
  • 名词解释
    • vCloud Director
    • VDC Virtual data center
      • Provider VDC, provider virtual data center
    • vSphere 系列 (别名:Cloud Resources)
      • CPU资源
      • 磁盘资源,vSphere datastores
      • 网络,vSphere distributed switches
      • vSphere port groups
    • NSX Data Center
    • NSX-T Data Center
  • 虚拟的硬件类型
    • 主板
  • 危机事件
    • 奇怪的主机无响应事件
    • 同事评价:出现问题容易抓虾
  • 个人感觉

esxtop

https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.monitoring.doc/GUID-D89E8267-C74A-496F-B58E-19672CAB5A53.html
https://docs.vmware.com/en/VMware-vSphere/7.0/vsphere-esxi-vcenter-server-70-monitoring-performance-guide.pdf?hWord=N4IghgNiBcILIBk4BUAiIC+Q

vmware host的内核是自己build

https://www.parallels.com/blogs/ras/vmware-host/
这里有一个连接,简单介绍了这个vmkernel的功能。
使用到的开源软件连接;
https://download3.vmware.com/software/vsphere67/open-source/67u3p/open_source_license_ESXi670-202111001_GA.txt
https://kb.vmware.com/s/article/2143832 // build version 列表

vSPhere 5.5.0

snapshot for the VMware Tools

ESXi 6.7 版本信息 Hypervisor

VMware ESXi 6.7, Patch Release ESXi670-201912001 — build 15160138
VMware ESXi 6.7, Patch Release ESXi670-202011002 — build 17167734
中间差了有多少个版本:7个小版本;
https://docs.vmware.com/en/VMware-vSphere/6.7/rn/esxi670-202111001.html

host上抓包

http://www.vmwarearena.com/how-to-capture-network-trafficpacket-on-esxi-hosts/
pktcap-uw –switchport switchportnumber

manual

https://docs.vmware.com/en/VMware-vSphere/6.0/vsphere-esxi-vcenter-server-60-client-administration-guide.pdf

兼容性

兼容性的正确配置问题:https://kb.vmware.com/s/article/1003746
如果配置不兼容可能导致guest层的异常行为。

https://blogs.vmware.com/guestosguide/2019/05/red-hat-enterprise-linux-8.html
支持redhat8的版本:
ESXi 6.5, ESXi 6.5 Update 1 and ESXi 6.5 Update 2
ESXi 6.7, ESXi 6.7 Update 1 and ESXi 6.7 Update 2

VMware 和 RHEL

这里有提到所支持的redhat版本,版本信息一定要对应,否则除了问题VMware 都不支持。
https://docs.vmware.com/en/VMware-Cloud-Director/10.3/rn/VMware-Cloud-Director-103-Release-Notes.html
Supported VMware Cloud Director Server Operating Systems
CentOS 7
CentOS 8
Red Hat Enterprise Linux 7
Red Hat Enterprise Linux 8

vmware 支持的guest vm 操作系统类型

https://developer.vmware.com/apis/358/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html

ovf 定义

https://www.dmtf.org/sites/default/files/standards/documents/DSP0243_2.1.1.pdf

怎么判断当前的vm是否是VMware的

<localhost:root>/storage/cloud/discover/config_drive:
# rpm -qf /usr/sbin/virt-what
virt-what-1.18-9.el8_4.x86_64
<localhost:root>/storage/cloud/discover/config_drive:
# /usr/sbin/virt-what
vmware

串口

ttyS0 是系统的第一个串口,在 vmware中就是硬件的第一个串口;
在vmware ESXi网页管理界面出来的console 串口是tty1.
在commandline里可以指定console的输出,输出到哪一个tty。

shift + pageup, 可以回看 web 版console 口的log
alt+F2, 如果login 窗口没有出来,可以用这个命令尝试。

mount vmdk 文件

https://www.nakivo.com/blog/extract-content-vmdk-files-step-step-guide/

If you prefer using the console interface, you can mount VMDK disk images with this command:

vmware-mount /media/user1/vms/vm_name/vm_disk_name-000002.vmdk /mnt/vmdk

vm_name 是虚拟机的名字

vm_disk_name 虚拟磁盘的名字
vm_disk_name-000001.vmdk is the name of the first delta (differencing) disk created after taking the first VM snapshot (WinXP-test-000001.vmdk in this case)

vm_disk_name-000002.vmdk is the name of the second delta disk created after taking the second VM snapshot accordingly (WinXP-test-000002.vmdk in this case)

Mount a virtual disk. By default, the virtual disk is mounted in the read/write mode. You can use the -r key in the command line to mount a disk in read-only mode.

vmware-mount /media/user1/vms/vm_name/vm_disk_name-000002.vmdk /mnt/vmdk

列出所有的mount 磁盘
vmware-mount -L

unmount所有的虚拟磁盘
vmware-mount -x

如果抓取console log

参考:https://kb.vmware.com/s/article/2009269

1. Right-click the virtual machine or virtual appliance and click Edit Settings.
2. Click the Hardware tab and then click Add.
3. Select Serial Port and click Next.
4. Select Output to file and click Next.
5. Click Browse and navigate to the virtual machine for which you want to add a serial port.
6. In File Name, type SerialOutput and click OK.
7. Under Device Status, select Connect at power on and click Next > Finish.
8. Click the Options tab.
9. Click Boot Options and enter 10,000 in Power On Boot Delay.
10. Click OK.
11. Power on the virtual machine. The virtual machine waits for 10 seconds before it begins to load the operating system.
12. After the operating system loads (a blue background loads), you see this line on top of the screen:
13. Press any key to enter the Boot menu
14. Press the Space Bar to enter into the GNU GRUB.
15. Select the operating system, such as CentOS (2.6.18-164.9.1.el5), and press e to modify the grub options.
16. Use the down arrow key to select the line:
17. kernel /vmlinuz-2.6.78-164.9.1.el5 ro root=LABEL=10 console
18. Press e to append this line:
19. console=tty0 console=ttyS0,115200
20. Press Enter to commit the changes.
21. Press b to boot into the grub.

vmware 日志文件列表

https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.monitoring.doc/GUID-832A2618-6B11-4A28-9672-93296DA931D0.html

vmkernel.log

记录了虚拟机与ESXi的活动信息。
/var/run/log
https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vsphere.monitoring.doc/GUID-832A2618-6B11-4A28-9672-93296DA931D0.html

登录console server?

https://kb.vmware.com/s/article/387?lang=en_US

命令行方式

https://www.vmware.com/support/ws55/doc/ws_learning_cli_vmrun.html

错误总结

GuestInfoAddNicEntry: NIC limit (16) reached, skipping overflow.

https://github.com/vmware/open-vm-tools/issues/128
https://williamlam.com/2017/12/vmware-tools-10-2-0-enables-virtual-machine-vnic-exclusion-and-priority-re-ordering.html
https://kb.vmware.com/s/article/81054
是:open-vm-tools包做的校验错误。
引发的原因是,interface 列表他多,不管是docker/calico/neutron创建的虚拟的interface,还是在物理interface上创建的vlan NIC,都被count了,实际这条log complain的是实际物理网卡数量。
这个问题没有完全被fix,需要在在配置文件里添加排除的网卡模式
配置文件:/etc/vmware-tools/tools.conf file does not exist by default and you have to create it first time. // 这个文件语法格式要求比较严格,修改时要多加小心。VMware tools 服务,会每5秒自动加载一次该文件。
修改方式:

[guestinfo]
exclude-nics=[INTERFACE NAME]Example configuration:
[guestinfo]
primary-nics=eth0
exclude-nics=docker*,???????????????Note: The above example configuration excludes interfaces that have the prefix docker in their name or have 15 character long names (This is the typical length for container interface names created by Docker). For specific guest environments, these patterns need to be adjusted to match the appropriate interface names, to exclude only the intended set of interfaces from guestInfo. exclude-nics accepts multiple patterns and an interface gets excluded from guestInfo reporting if the interface name matches with any one of the patterns.

RecordRoutingInfoIPv6: route limit (100) reached, skipping overflow

这个看看是否需要提一个issue;
https://github.com/vmware/open-vm-tools/issues/63

#wc -l /proc/net/ipv6_route
187 /proc/net/ipv6_route

Please check 065f09b We have made changes to how the SlashProcNet_GetRoute[4|6] function(s) works. Only routes with RTF_UP bit set are captured. Try out the latest version of open-vm-ttools and see if the issue still happens.

名词解释

vCloud Director

这个是一个整体的网管系统。负责创建配置团体,管理资源和团体,监控系统。网页版的系统。
https://docs.vmware.com/en/VMware-Cloud-Director/9.7/com.vmware.vcloud.admin.doc/GUID-3A4FBE1E-6BDB-4AE4-93F8-D23A8DCBD1F1.html

利用vCloud Director,可以创建安全的,多租户的云。可以将虚拟基础架构资源放到VCD里作为一个资源池,然后通过网页入口或者可编程接口,供用户使用。
从9.7开始,vCloud Director可以作为HTTP代理,通过这个代理,团体/组织就可以直接访问vSphere的资源环境。

VDC Virtual data center

虚数据中心,是一个数据中心,实际提供虚拟机服务的一个中心,一个vCloud Director,可以根据配置的资源创建多个VDC。

Provider VDC, provider virtual data center

供应商VDC
在组织、团体、企业用户,部署虚拟机或者创建分区之前,系统管理员必须创建PVDC,供应商VDC及团体VDC,也就是最终用户的VDC。The relationship of Provider VDCs to the organization VDCs they support is an administrative decision that can be based on the scope of your service offerings, the capacity and geographical distribution of your vSphere infrastructure, and similar considerations. Because a Provider VDC constrains the vSphere capacity and services available to tenants, system administrators commonly create Provider VDCs that furnish different classes of service, as measured by performance, capacity, and features. Tenants can then be provisioned with organization VDCs that deliver specific classes of service defined by the configuration of the backing Provider VDC.

vSphere 系列 (别名:Cloud Resources)

为vCloud Director服务的虚拟机及vApps,提供了计算和内存资源。A vApp is a virtual system that contains one or more individual virtual machines with parameters that define operational details. 同时也提供了存储和网络连接的资源。

CPU资源

磁盘资源,vSphere datastores

网络,vSphere distributed switches

vSphere port groups

NSX Data Center

NSX-T Data Center

虚拟的硬件类型

主板

https://docs.vmware.com/en/VMware-Workstation-Pro/16.0/com.vmware.ws.using.doc/GUID-723863F8-26BC-471B-B5FE-081ABDCAA4B2.html
https://en.wiki.hancel.org/wiki/Intel_440BX
是:Intel 440BX 类型主板,为什么选用这个主板类型?
原因就是这个主板是非常流行的一款。性能佳的一款。

# dmidecode 3.2
Getting SMBIOS data from sysfs.
SMBIOS 2.4 present.
Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
Manufacturer: Intel Corporation
Product Name: 440BX Desktop Reference Platform
Version: None
Serial Number: None
Asset Tag: Not Specified
Features: None
Location In Chassis: Not Specified
Chassis Handle: 0x0000
Type: Unknown
Contained Object Handles: 0Handle 0x00DF, DMI type 10, 8 bytes
On Board Device 1 Information
Type: Video
Status: Disabled
Description: VMware SVGA II
On Board Device 2 Information
Type: Sound
Status: Disabled
Description: ES1371

危机事件

奇怪的主机无响应事件

https://communities.vmware.com/t5/VMware-vSphere-Discussions/Strange-Host-Responsiveness-Issues/td-p/957993/page/2
这个问题绵延一年多,升级到6.7就会出现问题。
提到过的解决方法是要做降级。不要轻易给客户建议降级,从心理上是抵触的,而且对下次升级充满敌意。
根据这个网页显示,有两三个用户说要抛弃VMware转向其他的虚拟厂商。

同事评价:出现问题容易抓虾

主要是性能巨烂,有问题 support也是一坨;太差劲了,还是cloud 鼻祖呢,真差劲;
因为VMware的support不及时耽误事;让我们每次遇到问题都很痛苦;获取不到及时有效的support啊;

个人感觉

VMWARE整个架构名词,模块太多。记都记不过来。
而且总是时不时提出一些花里胡哨的名词,让人感觉技术更新太快。
可能vmware就是在故意提出新概念,进行炒作。让客户感觉技术牛的不掉了,其实还是新瓶装旧酒。

如果让我选择虚拟产品,不选择VMware。
原因之一,没有源代码看,出现问题,只能依赖于VMware支持来。这个非常致命的一个确定,如果产品质量好,支持不行也就算了。如果产品质量不好,又不开源,而且支持还不给力,那就是一个麻烦。
可是openstack也有自己的缺点。如果不选择VMware,则需要自己公司成立一个专门做openstack研究的团队,不然会比较被动。

Vmware相关技巧相关推荐

  1. VMware相关的缩略语和缩略语

    VMware相关的缩略语和缩略语 AAM Automated Availability Manager 自动化可用性管理器 ADM Application Discover Manager 应用发现管 ...

  2. vmware使用技巧

    vmware使用技巧: 1.右键虚拟机标签栏打开设置可以调节核心内存等 2.硬件设备可以添加移除到虚拟机里面 3.ctrl+alt 切换控制(从虚拟机界面切换到物理机界面) 4.init 0正常关机( ...

  3. php反序列化漏洞实验,PHP反序列化漏洞简介及相关技巧小结

    原标题:PHP反序列化漏洞简介及相关技巧小结 *严正声明:本文仅限于技术讨论与分享,严禁用于非法途径 要学习PHP反序列漏洞,先了解下PHP序列化和反序列化是什么东西. php程序为了保存和转储对象, ...

  4. iOS开发中使用UILabel设置字体的相关技巧小结

    这篇文章主要介绍了iOS开发中UILabel设置字体的相关技巧小结,代码基于传统的Objective-C,需要的朋友可以参考下 一.初始化 复制代码代码如下: UILabel *myLabel = [ ...

  5. 误差反向传播和深度学习相关技巧总结

    误差反向传播和深度学习相关技巧总结 文章目录 误差反向传播和深度学习相关技巧总结 一.误差反向传播法 1.几个问题 2.简单层(加法.乘法层).激活函数层.Affine/softmax层的实现 3.误 ...

  6. 小目标检测相关技巧总结

    点击上方"AI算法与图像处理",选择加"星标"或"置顶" 重磅干货,第一时间送达 转载自简书,仅用于学习交流,如有侵权请联系删除 编辑:Ch ...

  7. ps怎么一下选中多个图层_ps怎么一下选中多个图层_PS入门教程:学习怎么新建图层,创意图层的相关技巧知识......

    PS入门教程:学习怎么新建图层,创意图层的相关技巧知识.下面我们就一起来学习一下吧,单击"图层"面板底部的"创建新图层"按钮或者按ps新建图层快捷键:Ctrl+ ...

  8. php反序列化java_PHP反序列化漏洞简介及相关技巧小结

    *严正声明:本文仅限于技术讨论与分享,严禁用于非法途径 要学习PHP反序列漏洞,先了解下PHP序列化和反序列化是什么东西. php程序为了保存和转储对象,提供了序列化的方法,php序列化是为了在程序运 ...

  9. WPF TreeView 相关技巧

    WPF 中的 TreeView 相关实用技巧如下 响应 TreeViewItem 的双击事件 这是一个较怪异的问题,如果在 TreeView 的 MouseDoubleClick 中去处理 Selec ...

最新文章

  1. 给Jquery添加alert,prompt方法,类似系统的Alert,Prompt,可以响应键盘,支持拖动...
  2. 【6】Zookeeper脚本及API
  3. Linux国内源介绍
  4. php安全编程—sql注入攻击
  5. ELK三件套安装实践之路(1)
  6. u-boot懂你并不难
  7. linux开发需要学习什么,linux开发需要掌握哪些知识?
  8. java 责任链模式 链表_责任链模式的实现及源码中应用
  9. Google Guice 一个轻量级的依赖注入框架
  10. C语言学习笔记---typedef 简介
  11. JAVA必会算法--二分查找法
  12. Linux系统之备份与恢复
  13. 视频封装格式篇(TS)
  14. 牛客网项目——项目开发(三):开发登录模块
  15. 关于Nand Flash行地址和列地址的计算
  16. 现在到底要不要学Python
  17. 说说Teams里的Card
  18. 在有无缓冲层镊酸锏(LaNiO3,LNO)的 Pt/Ti/SiO-/Si(111)基片上沉积了单层BFO多晶薄膜
  19. css过渡-动画-变换
  20. 1人工智能概述------Azure机器学习模型搭建实验(完整体验-手把手教学-机器学习的过程)

热门文章

  1. abap学习笔记-SAP字段与表的对应关系
  2. 小程序 - 条形图画法
  3. atlas 阿里 android,AtlasDemo
  4. UE4 Unlua源码解析12 - Lua与UE4的混合GC
  5. 虚引用(PhantomReference)
  6. XSS Challenges
  7. java解析bt协议详解_BT下载原理分析
  8. HBase(6):HBase优化
  9. ibm服务器 t系列,IBMT
  10. 【搬运】SharpPcap的一些例子