[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libvirt-users
Subject:    Re: How to exit console in L2 vm?
From:       Peter Krempa <pkrempa () redhat ! com>
Date:       2020-11-30 7:30:50
Message-ID: 20201130073050.GG105758 () angien ! pipo ! sk
[Download RAW message or body]

On Mon, Nov 30, 2020 at 14:50:33 +0800, Yalan Zhang wrote:
> Hi,
> 
> I have a question about nested virtualization. The scenario is as below:
> 1. Prepare the nested environment, start L2 guest.
> 2. On the host, connect the L1 vm console, then on L1 guest, connect the L2
> guest console:
> (host)# virsh console L1_vm
> Connected to domain L1_vm
> Escape character is ^] (Ctrl + ])
> ...
> (L1 vm)# virsh console L2_vm
> Connected to domain L2_vm
> Escape character is ^] (Ctrl + ])
> ...
> (L2 vm)# <=== press " ^] " to exit the console, it return to the **host**
> (host)#
> 
> Is it expected that "^]" in L2 guest will exit thoroughly to the host, not
> the L1 guest?

Yes it is expected since the keystroke goes through L1 first.

You can use the '-e' switch of virsh to set the console escape character
in one of the clients differently:

$ virsh -e '^[' console 1
Connected to domain fedora32
Escape character is ^[ (Ctrl + [)

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic