agent 日志

 

Enabling debug console for QEMU

Add agent.debug_console to the guest kernel command line to allow the agent process to start a debug console.

$ sudo sed -i -e 's/^kernel_params = "\(.*\)"/kernel_params = "\1 agent.debug_console"/g' "${kata_configuration_file}"

Here kata_configuration_file could point to /etc/kata-containers/configuration.toml or /usr/share/defaults/kata-containers/configuration.toml or /opt/kata/share/defaults/kata-containers/configuration-{hypervisor}.toml, if you installed Kata Containers using kata-deploy.

time="2020-10-10T09:29:10.59517718Z" level=debug msg="request end" debug_console=true duration=754.84834ms name=kata-agent pid=51 request=/grpc.AgentService/ReadStdout resp="data:\"\\r\\n\" " sandbox=cf09483176d1a73c6e21d0b69a1de3b2d06b2cde4ec63f62d5e6608e0ab7a93c source=agent
time="2020-10-10T09:29:10.59604982Z" level=debug msg="new request" debug_console=true name=kata-agent pid=51 req="container_id:\"cf09483176d1a73c6e21d0b69a1de3b2d06b2cde4ec63f62d5e6608e0ab7a93c\" exec_id:\"b8294780-523d-4349-a975-403f37edc5a2\" len:32768 " request=/grpc.AgentService/ReadStdout sandbox=cf09483176d1a73c6e21d0b69a1de3b2d06b2cde4ec63f62d5e6608e0ab7a93c source=agent
time="2020-10-10T09:29:10.62991176Z" level=debug msg="request end" debug_console=true duration=33.57644ms name=kata-agent pid=51 request=/grpc.AgentService/ReadStdout resp="data:\"1\\r\\n\" " sandbox=cf09483176d1a73c6e21d0b69a1de3b2d06b2cde4ec63f62d5e6608e0ab7a93c source=agent
time="2020-10-10T09:29:10.63057746Z" level=debug msg="new request" debug_console=true name=kata-agent pid=51 req="container_id:\"cf09483176d1a73c6e21d0b69a1de3b2d06b2cde4ec63f62d5e6608e0ab7a93c\" exec_id:\"b8294780-523d-4349-a975-403f37edc5a2\" len:32768 " request=/grpc.AgentService/ReadStdout sandbox=cf09483176d1a73c6e21d0b69a1de3b2d06b2cde4ec63f62d5e6608e0ab7a93c source=agent
time="2020-10-10T09:29:10.63168484Z" level=debug msg="request end" debug_console=true duration="967.92µs" name=kata-agent pid=51 request=/grpc.AgentService/ReadStdout resp="data:\"root@cf09483176d1:/# \" " sandbox=cf09483176d1a73c6e21d0b69a1de3b2d06b2cde4ec63f62d5e6608e0ab7a93c source=agent
time="2020-10-10T09:29:10.63228636Z" level=debug msg="new request" debug_console=true name=kata-agent pid=51 req="container_id:\"cf09483176d1a73c6e21d0b69a1de3b2d06b2cde4ec63f62d5e6608e0ab7a93c\" exec_id:\"b8294780-523d-4349-a975-403f37edc5a2\" len:32768 " request=/grpc.AgentService/ReadStdout sandbox=cf09483176d1a73c6e21d0b69a1de3b2d06b2cde4ec63f62d5e6608e0ab7a93c source=agent

 

posted on 2020-10-10 17:31  tycoon3  阅读(303)  评论(0编辑  收藏  举报

导航