Categories
vmware

vmware虚拟机打开电源慢的排查思路

文章来源:Solved: Problems with slow Power-on

  1. Run esxtop on the host where you start it up and look for high ready times on cpu, disk latencies for storage, or memory limits. Or check these values on the performance tab in vCenter – I prefer esxtop – it samples 4x as often by default and you can adjust the sample rate. Check vm properties in vClient as well as .vmx to make sure you do not have any limits set for this vm.

  2. Are these hosts all part of the same cluster?

  3. Do you use resource pools?

  4. Have you checked the logs on your host (var/log/… vmkernel, vmkwarning, as well as the vmware.log in the vm directory) ?

  5. What about the VM’s swap file? If the creation of that is slow, then the VM may take a long time to boot as well. Check to see where that is stored.

  6. Compare all of this VM’s settings to another VM that is not experiencing the problem.

  7. Does this happen with only 1 VM, a specific group of VM’s, or all of them? Does the slow boot vary across different VM types (cpus, memory, storage location, OS)?

  8. How many disks does this VM have? To power on the VM, the host has to write a lock entry on each lun the VM has disks on. Normally this takes a (1-2) MS, but if there is contention for lun meta updates (VMotions, VM power on, VM creation, snapshots growing) then this could delay the boot as well.

  9. What is the VM hardware version?

  10. VMTools up to date?
  11. Does the HAL match # of CPU’s?
Categories
vmware

vmware 无法删除快照

vmware无法删除快照.

使用vcenter 6.0 测试,关机情况下备份,出现:创建快照层次过深.
尝试删除快照出现错误:

A general system error occurred: vim.fault.GenericVmConfigFault

解决方法

  1. 打开存储进入虚拟机所在目录.
  2. 创建临时目录,备份快照文件.
    mkdir ./tmp/
    mv *.vmsn ./tmp/
    mv *.vmsd ./tmp/
  3. 界面上点击删除全部快照.如果失败,重试
  4. 如果步骤3成功.进行磁盘整合.
Categories
virtualization vmware

厚置备与精简置备

厚置备延迟置零

以默认的厚格式创建虚拟磁盘。创建虚拟磁盘时分配虚拟磁盘所需的空间。创建过程中不会清除物理设备上保留的数据,但以后首次从虚拟机写入时则会按需置零。

厚置备置零

一种厚虚拟磁盘类型,可支持群集功能,如 Fault Tolerance。在创建时为虚拟磁盘分配所需的空间。与厚置备延迟置零格式相反,创建虚拟磁盘时,会将物理设备上保留的数据置零。创建这种格式的磁盘所需的时间可能会比创建其他类型的磁盘长。

精简置备

使用此格式可节省存储空间。对于精简磁盘,可以根据输入的磁盘大小值置备磁盘所需的任意数据存储空间。但是,精简磁盘开始时很小,只使用与初始操作所需的大小完全相同的存储空间。

关于虚拟磁盘置备策略