<div dir="ltr"><div><br></div>I see. Thank you for the detailed explanation.<div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><br><br>-------<br>Best Regards,<br>Yalan Zhang<br>IRC: yalzhang<br></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 30, 2020 at 3:31 PM Peter Krempa <<a href="mailto:pkrempa@redhat.com">pkrempa@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, Nov 30, 2020 at 14:50:33 +0800, Yalan Zhang wrote:<br>
> Hi,<br>
> <br>
> I have a question about nested virtualization. The scenario is as below:<br>
> 1. Prepare the nested environment, start L2 guest.<br>
> 2. On the host, connect the L1 vm console, then on L1 guest, connect the L2<br>
> guest console:<br>
> (host)# virsh console L1_vm<br>
> Connected to domain L1_vm<br>
> Escape character is ^] (Ctrl + ])<br>
> ...<br>
> (L1 vm)# virsh console L2_vm<br>
> Connected to domain L2_vm<br>
> Escape character is ^] (Ctrl + ])<br>
> ...<br>
> (L2 vm)# <=== press " ^] " to exit the console, it return to the **host**<br>
> (host)#<br>
> <br>
> Is it expected that "^]" in L2 guest will exit thoroughly to the host, not<br>
> the L1 guest?<br>
<br>
Yes it is expected since the keystroke goes through L1 first.<br>
<br>
You can use the '-e' switch of virsh to set the console escape character<br>
in one of the clients differently:<br>
<br>
$ virsh -e '^[' console 1<br>
Connected to domain fedora32<br>
Escape character is ^[ (Ctrl + [)<br>
<br>
</blockquote></div>