other:vmware_cheatsheet
Differences
This shows you the differences between two versions of the page.
Previous revision | |||
other:vmware_cheatsheet [2018/05/11 15:22] – dodger | — | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== [DOC] ESX cli usage ====== | ||
- | |||
- | ====== Descripcion ====== | ||
- | Uso del cli de ESX. | ||
- | |||
- | ====== VMs ====== | ||
- | ===== Estado ===== | ||
- | ==== De todas ==== | ||
- | < | ||
- | </ | ||
- | ==== De las que están en ejecución ==== | ||
- | < | ||
- | </ | ||
- | |||
- | ===== Arrancar ===== | ||
- | Hay que obtener el //< | ||
- | < | ||
- | </ | ||
- | ===== Parar ===== | ||
- | Hay que obtener el //< | ||
- | < | ||
- | </ | ||
- | |||
- | ===== Reboot ===== | ||
- | < | ||
- | </ | ||
- | |||
- | ===== kill ===== | ||
- | Matar una vm por la fuerza, el "World ID" se obtiene mediante el [[vmware_cheatsheet# | ||
- | < | ||
- | esxcli vm process kill -w <World ID> | ||
- | </ | ||
- | |||
- | |||
- | |||
- | ===== Clonar ===== | ||
- | Para clonar manualmente una vm (sin vmotion), ir al datastore que contentg la vm: | ||
- | < | ||
- | cd / | ||
- | </ | ||
- | Y copiamos la vm: | ||
- | < | ||
- | cp -pfr vm001 vm002 | ||
- | </ | ||
- | hay que eliminar la mac de las eth's: | ||
- | < | ||
- | sed -i '/ | ||
- | </ | ||
- | En el primer arranque debería decirnos si la hemos copiado, decirle que sí (para que cambie el UUID de la máquina). | ||
- | |||
- | Una vez arrancado el sistema, si es un linux seguramente habrá que renombrar las eth's ya que por ejemplo rhel las pone como la siguiente sin usar. | ||
- | Editar el fichero de reglas de udevd, RHEL6: | ||
- | < | ||
- | vi / | ||
- | </ | ||
- | Eliminar las interfaces antiguas y cambiar en qué orden queremos ver las nuevas. | ||
- | |||
- | |||
- | |||
- | ====== Sistema ====== | ||
- | ===== ps ===== | ||
- | < | ||
- | esxcli esxcli command list | ||
- | </ | ||
- | |||
- | ===== top ===== | ||
- | < | ||
- | </ | ||
- | |||
- | ===== Listar comandos disponibles de esxcli ===== | ||
- | < | ||
- | </ | ||
- | |||
- | ===== Maintenance ===== | ||
- | ==== on ==== | ||
- | < | ||
- | vim-cmd hostsvc/ | ||
- | </ | ||
- | ==== off ==== | ||
- | < | ||
- | </ | ||
- | |||
- | ====== Filesystem ====== | ||
- | ===== Listar ===== | ||
- | < | ||
- | </ | ||
- | o | ||
- | < | ||
- | </ | ||
- | |||
- | |||
- | |||
- | ====== Others ====== | ||
- | |||
- | < | ||
- | vim-cmd vmsvc/ | ||
- | Deletes the vmdk and vmx files from disk | ||
- | |||
- | |||
- | |||
- | vim-cmd solo/ | ||
- | Registers vm in hypervisor inventory | ||
- | |||
- | vim-cmd vmsvc/ | ||
- | Unregisters vm with hypervisor | ||
- | |||
- | vim-cmd vmsvc/ | ||
- | Starts vmware tools installation for VM | ||
- | |||
- | vim-cmd hostsvc/ | ||
- | Provides information about hypervisor networking | ||
- | |||
- | chkconfig -l | ||
- | Shows daemons running on hypervisor. Can also be used for configuration. | ||
- | |||
- | esxtop | ||
- | Same as linux top for vmware | ||
- | |||
- | vmkerrcode -l | ||
- | List of vmkernel errors | ||
- | |||
- | esxcfg-info | ||
- | Lists a LOT of information about the esx host | ||
- | |||
- | esxcfg-nics -l | ||
- | Lists information about NIC's. Can also be used for configuration. | ||
- | |||
- | esxcfg-vswitch -l | ||
- | Lists information about virtual switching. Can also be used for configuration. | ||
- | |||
- | dcui | ||
- | Provides console screen to ssh session | ||
- | |||
- | vsish | ||
- | Vmware interactive shell | ||
- | |||
- | decodeSel / | ||
- | Read System Event Log of server | ||
- | </ | ||
- | |||
- | |||
- | |||
- | ====== Documentos oficiales ====== | ||
- | * {{: | ||
- | * {{: |
other/vmware_cheatsheet.txt · Last modified: 2024/01/09 16:02 by dodger