Este conteúdo não está disponível no idioma selecionado.

A.5. Troubleshooting with Serial Consoles


Linux kernels can output information to serial ports. This is useful for debugging kernel panics and hardware issues with video devices or headless servers.
To enable serial console output for KVM guests:
  1. Ensure that the domain XML file of the guest includes configuration for the serial console. For example:
              
      <console type='pty'>
        <source path='/dev/pts/16'/>
        <target type='virtio' port='1'/>
        <alias name='console1'/>
      </console>
              
    Copy to Clipboard Toggle word wrap
  2. On the guest, follow the How can I enable serial console for Red Hat Enterprise Linux 7? article on Red Hat Knowledgebase.
On the host, you can then access the serial console with the following command, where guestname is the name of the guest virtual machine:
# virsh console guestname
Copy to Clipboard Toggle word wrap
You can also use virt-manager to display the virtual text console. In the guest console window, select Serial 1 in Text Consoles from the View menu.
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2026 Red Hat
Voltar ao topo