>> Tecnologia Eletrônica >  >> Celulares e Acessórios >> Smartphones

Como Sair do Modo Console (Tech Support Mode) no VMware ESXi

VMware ESXi (hypervisor bare-metal) tem Tech Support Mode (TSM) / Console Shell (DCUI → F2 → Troubleshooting Options → Enable ESXi Shell / SSH). Para sair do shell console (local ou SSH) e voltar ao DCUI (Direct Console User Interface) ou apenas fechar sessão:

Sair do ESXi Shell Local (Console Físico / KVM / iDRAC / iLO)

  1. No shell (prompt ~ #): Digite exit e Enter.
  2. Retorna ao DCUI (tela amarela/cinza com menu).
  3. Se estiver em SSH (Putty, terminal): exit ou logout ou Ctrl+D → Fecha sessão SSH.

Se "Preso" no Console (Alt+F1, Alt+F2 - Legado ESXi 3.5/4.x)

Versões antigas usavam consoles virtuais:

  1. Alt+F1 → Console principal (DCUI ou Shell se TSM ativo).
  2. Alt+F2 → Shell de suporte (se TSM ativo).
  3. Alt+F12 → Logs do kernel.
  4. Para sair do Shell (Alt+F2) → Digite exit → Alt+F1 volta ao DCUI.

Desativar TSM / Shell / SSH (Segurança)

  1. No DCUI (tela principal): F2 → Login root → Troubleshooting Options.
  2. Desative: "Enable ESXi Shell" e "Enable SSH".
  3. Timeout do Shell: Defina "ESXi Shell Timeout" (ex: 30 min) para auto-desativar.
  4. Lockdown Mode: Configurações → Security Profile → Lockdown Mode → On (impede login direto no DCUI, só vCenter).

Comandos Úteis no ESXi Shell

  • esxcli system version get — Versão build.
  • vim-cmd vmsvc/getallvms — Listar VMs.
  • esxcli network firewall ruleset set --ruleset-id=sshServer --enabled=true — Ativar SSH via CLI.
  • services.sh restart — Reiniciar agentes de gerenciamento (hostd, vpxa).
  • reboot / poweroff — Reiniciar/Desligar host.

O artigo original descrevia sequência Alt+F1 → unsupported → senha root → clear → exit → Alt+F2 para ESXi 3.5. Versões atuais (6.0/6.5/6.7/7.0/8.0): Use exit no shell ou feche janela SSH. DCUI acessível direto no console.