de la shell y SSH de un host ESXi VMware. Por defecto, los hosts ESXi no tienen
habilitado ni el servicio SSH ni el ESXi Shell. Es necesario activarlo manualmente del
siguiente modo:
1. Acceder al vCenter Server o al Host usando el cliente vSphere.
2. Seleccionar el host del panel izquierdo o del inventario.
3. Hacer click en la pestaa de configuracin y luego en perfil de seguridad
(Security Profile)
4. En la seccin ed servicios, hacer click en propiedades.
5. Seleccionar ESXi Shell y SSH de la lista
6. Hacer click en opciones y elegir Start and stop manually o Start and stop
with host segn si queremos nicamente arrancarlo para un momento o
queremos que sea persistente a reinicios.
|----Runtime
Owner...................................vmkernel
|----Has Configured
Owner............................false
|----Configured Owner................................
|----Vendor
Id.......................................0x8086
|----Device
Id.......................................0x0e00
|----Sub-Vendor
Id...................................0x108e
|----Sub-Device
Id...................................0x434c
|----Vendor
Name.....................................Intel Corporation
|----Device
Name.....................................Ivytown DMI2
|----Device
Class....................................1536
|----Device Class
Name...............................Host bridge
|----PIC Line........................................0
|----Old
IRQ.........................................255
|----Vector..........................................0
|----PCI Pin.........................................4
|----Spawned Bus.....................................0
|---Flags...........................................521
\==+BAR Info :
[...]
El TOP de VMware
El comando esxtop tiene prcticamente las mismas funcionalidades que el comando
TOP de Linux:
~ # esxtop
/sbin/services.sh restart
Comandos de networking
Ver interfaces de red
El comando esxcfg-nics permite gestionar las interfaces de red del host ESXi y el
parmetro -l las lista:
~ # esxcfg-nics -l
Name
PCI
Driver
Link Speed
Duplex MAC Address
MTU
Description
vmnic0 0000:20:00.00 igb
Down 0Mbps
Half
00:10:e0: 1500
Intel Corporation I350 Gigabit Network Connection
vmnic1 0000:20:00.01 igb
Down 0Mbps
Half
00:10:e0: 1500
Intel Corporation I350 Gigabit Network Connection
vmnic2 0000:b0:00.00 ixgbe
Up
10000Mbps Full
00:1b:21: 1500
Intel Corporation 82599EB 10-Gigabit KX4 Network Connection
vmnic3 0000:b0:00.01 ixgbe
Up
10000Mbps Full
00:1b:21: 1500
Intel Corporation 82599EB 10-Gigabit KX4 Network Connection
Virtual Switches
Al igual que las interfaces de red, los virtual switches se pueden gestionar con el
comando esxcfg-vswitch, para listarlos tambin usamos el parmetro -l:
~ # esxcfg-vswitch -l
Switch Name
Num Ports
Uplinks
vSwitch0
4352
vmnic2,vmnic3
PortGroup Name
VM Network
VM Management Network
iSCSI
Management Network
Used Ports
Configured Ports
MTU
18
128
1500
Tanto con las interfaces de red como los virtual switches podemos realizar operaciones
avanzadas que normalmente se realizan grficamente desde el vCenter.
Comandos iSCSI
Listar adaptadores iSCSI
~ # esxcli iscsi adapter list
Adapter Driver
State
UID
Description
------- --------- ------ ---------------------------------------------------vmhba33 iscsi_vmk online iqn.1998-01.com.vmware:7f2ab991
Software Adapter
iSCSI
Ejemplo:
~ # esxcli iscsi adapter discovery sendtarget add
--address=192.168.1.100:3260 --adapter=vmhba33