Skip to content

Commit

Permalink
incusd/instance/qemu: Log QEMU command line
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Somers <benjamin.somers@imt-atlantique.fr>
  • Loading branch information
bensmrs committed Oct 31, 2024
1 parent 7853124 commit a6f8e63
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/server/instance/drivers/driver_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -1699,8 +1699,12 @@ func (d *qemu) start(stateful bool, op *operationlock.InstanceOperation) error {
forkLimitsCmd = append(forkLimitsCmd, fmt.Sprintf("fd=%d", 3+i))
}

// Log the QEMU command line.
fullCmd := append(forkLimitsCmd, qemuCmd...)
d.logger.Debug("Starting QEMU", logger.Ctx{"command": fullCmd})

// Setup background process.
p, err := subprocess.NewProcess(d.state.OS.ExecPath, append(forkLimitsCmd, qemuCmd...), d.EarlyLogFilePath(), d.EarlyLogFilePath())
p, err := subprocess.NewProcess(d.state.OS.ExecPath, fullCmd, d.EarlyLogFilePath(), d.EarlyLogFilePath())
if err != nil {
op.Done(err)
return err
Expand Down

0 comments on commit a6f8e63

Please sign in to comment.