====== Администрирование VMware vSphere ======
===== Инсталляция виртуальных машин =====
* [[https://www.experts-exchange.com/articles/11650/HOW-TO-Upload-an-ISO-CD-ROM-DVD-ROM-image-to-a-VMware-datastore-for-use-with-VMware-vSphere-Hypervisor-5-1-ESXi-5-1-using-the-vSphere-Client-and-checking-its-MD5-checksum-signature-is-correct.html|HOW TO: Upload an ISO CD-ROM/DVD-ROM image to a VMware datastore for use with VMware vSphere Hypervisor]]
* [[https://pubs.vmware.com/vsphere-51/index.jsp?topic=%2Fcom.vmware.vsphere.vm_admin.doc%2FGUID-492D6904-7471-4D66-9555-9466CCCA6931.html|Upload ISO Image Installation Media for a Guest Operating System]]
* [[https://networklessons.com/vmware/convert-vmware-esxi-thick-provisioned-disk-to-thin/|Convert VMWare ESXi Thick Provisioned Disk to Thin]]
===== Клонирование виртуальных машин средствами CLI ESXi =====
* [[https://nchrissos.wordpress.com/2014/03/05/clone-a-vmwares-vm-without-vcenter-in-esxi-5-x-by-commands-the-official-way/|Clone a VMware’s VM without vCenter in ESXi 5.x by commands]]
ls /vmfs/volumes/datastore1/
mkdir /vmfs/volumes/datastore1/MegaLVA02/
vmkfstools -i /vmfs/volumes/datastore1/MegaLVA/MegaLVA.vmdk /vmfs/volumes/datastore1/MegaLVA02/MegaLVA02.vmdk
vmkfstools -i /vmfs/volumes/datastore1/MegaLVA/MegaLVA.vmdk -d thin /vmfs/volumes/datastore1/MegaLVA02/MegaLVA02.vmdk
===== Определение размера тонких (thin) дисков =====
* [[http://www.virten.net/2014/11/identify-disk-usage-of-a-thin-provisioned-virtual-disk/|Identify Disk Usage of a Thin Provisioned Virtual Disk]]
ls -lh /vmfs/volumes/datastore1/MegaLVA02/MegaLVA02.vmdk
du -h /vmfs/volumes/datastore1/MegaLVA02/MegaLVA02.vmdk
===== Start/Stop/Suspend виртуальных машин из командной строки =====
* [[https://thisiscasperslife.wordpress.com/2011/12/04/wmware-esxi-suspend-all-guests/|WMware ESXI – suspend all guests]]
* [[https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2005831|Suspending a virtual machine on ESX/ESXi to collect diagnostic information]]
* [[https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1014165|Powering off a virtual machine on an ESXi host]]
vim-cmd vmsvc/getallvms
vim-cmd vmsvc/power.getstate 3
vim-cmd vmsvc/power.on 3
vim-cmd vmsvc/power.suspend 3
===== SMART =====
* [[https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2040405|
ESXi S.M.A.R.T. health monitoring for hard drives]]
===== Поддержка вложенных виртуальных машин (nested VMs) =====
==== Поддержка 64-х битной виртуализации ====
* [[http://www.vmgu.ru/news/running-64-bit-hyper-v-vms-in-esxi-50|Запуск вложенных виртуальных машин (nested VMs) на виртуальных ESXi 5.0 и Hyper-V]]
* [[https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2034803|
Installing ESXi 5.x in VMware Workstation]]
[root@esxi:~] cat /etc/vmware/config
...
vhv.allow = "TRUE"
vhv.enable = "TRUE"
==== Поддержка сети ====
* В свойствах порт-группы Policies-> Security разрешить MAC changes, Forged Transmits и Promiscous
===== tcpdump =====
* [[https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1031186|
Capturing a network trace in ESXi using Tech Support Mode or ESXi Shell]]