How to get virsh console working on KVM

View: New views
2 Messages — Rating Filter:   Alert me  

How to get virsh console working on KVM

by Rodrique Heron-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When consoling to my KVM guest, I'm not getting the expected result, which is to be placed on the login prompt, instead I get this:

[root@N1-I-FKVM-01 ~]# virsh list
 Id Name                 State
----------------------------------
  9 N1ICOB01             running
 26 SPWALKTEST           running
 29 N1IASMGT01           running

[root@N1-I-FKVM-01 ~]# virsh console 29
Connected to domain N1IASMGT01
Escape character is ^]


I modified the /etc/inittab of the guest to include a ttyS0 terminal and I allowed it via /etc/securetty. What other steps are missing? I would especially like to get this working during the installation of the KVM guest, so that I don't have to resort to virt-manager.

Thanks

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@...
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

Re: How to get virsh console working on KVM

by David Huff-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Rodrique Heron wrote:

> When consoling to my KVM guest, I'm not getting the expected result, which is to be placed on the login prompt, instead I get this:
>
> [root@N1-I-FKVM-01 ~]# virsh list
>  Id Name                 State
> ----------------------------------
>   9 N1ICOB01             running
>  26 SPWALKTEST           running
>  29 N1IASMGT01           running
>
> [root@N1-I-FKVM-01 ~]# virsh console 29
> Connected to domain N1IASMGT01
> Escape character is ^]
>
>
> I modified the /etc/inittab of the guest to include a ttyS0 terminal and I allowed it via /etc/securetty. What other steps are missing? I would especially like to get this working during the installation of the KVM guest, so that I don't have to resort to virt-manager.
>
> Thanks

Add "console=tty0 console=ttyS0,115200" to kernel parameters of guest.

-D

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@...
https://www.redhat.com/mailman/listinfo/et-mgmt-tools