mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-30 23:37:45 +00:00
Merge pull request #466 from jodh-intel/pass-sandbox-id-to-agent
qemu: Pass sandboxID to agent for logging purposes
This commit is contained in:
commit
47dfb7d6da
@ -297,10 +297,14 @@ func (q *qemu) createSandbox(sandboxConfig SandboxConfig) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// Pass the sandbox name to the agent via the kernel command-line to
|
||||
// allow the agent to use it in log messages.
|
||||
params := q.kernelParameters() + " " + "agent.sandbox=" + sandboxConfig.ID
|
||||
|
||||
kernel := govmmQemu.Kernel{
|
||||
Path: kernelPath,
|
||||
InitrdPath: initrdPath,
|
||||
Params: q.kernelParameters(),
|
||||
Params: params,
|
||||
}
|
||||
|
||||
rtc := govmmQemu.RTC{
|
||||
|
Loading…
Reference in New Issue
Block a user