Skip to content

Commit

Permalink
Merge pull request #1346 from bensmrs/log-qemu-cmd
Browse files Browse the repository at this point in the history
incusd/instance/qemu: Log QEMU command line
  • Loading branch information
stgraber authored Oct 31, 2024
2 parents fb5b774 + a6f8e63 commit fbb0d9e
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 fbb0d9e

Please sign in to comment.