From 9e36c17770cc294b5879dc7932c6cc69ced36a6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= Date: Mon, 26 Feb 2024 16:42:28 -0500 Subject: [PATCH] lxd/instance/drivers/qemu: Fix RecordOutput MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #507 Signed-off-by: Stéphane Graber (cherry picked from commit e39888708011f980edce8fb4bda7f13caac3ef7d) Signed-off-by: Thomas Parrott License: Apache-2.0 --- lxd/instance/drivers/driver_qemu.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lxd/instance/drivers/driver_qemu.go b/lxd/instance/drivers/driver_qemu.go index 7735c4f7aa3d..bae5a7cfccef 100644 --- a/lxd/instance/drivers/driver_qemu.go +++ b/lxd/instance/drivers/driver_qemu.go @@ -7724,6 +7724,9 @@ func (d *qemu) Exec(req api.InstanceExecPost, stdin *os.File, stdout *os.File, s // websockets for control and for capturing output to a file on the LXD server. req.WaitForWS = true + // Similarly, output recording is performed on the host rather than in the guest, so clear that bit from the request. + req.RecordOutput = false + op, err := agent.ExecInstance("", req, &args) if err != nil { return nil, err