mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-23 18:21:27 +00:00
virtcontainers: Drop QEMU's Daemonize
knob
QEMU isn't started as daemon anymore and this won't change (see #5736 for details). Drop the related code. Signed-off-by: Greg Kurz <groug@kaod.org>
This commit is contained in:
parent
f66a5b6287
commit
33eaf69d5f
@ -569,7 +569,6 @@ func (q *qemu) CreateVM(ctx context.Context, id string, network Network, hypervi
|
|||||||
NoDefaults: true,
|
NoDefaults: true,
|
||||||
NoGraphic: true,
|
NoGraphic: true,
|
||||||
NoReboot: true,
|
NoReboot: true,
|
||||||
Daemonize: false,
|
|
||||||
MemPrealloc: q.config.MemPrealloc,
|
MemPrealloc: q.config.MemPrealloc,
|
||||||
HugePages: q.config.HugePages,
|
HugePages: q.config.HugePages,
|
||||||
IOMMUPlatform: q.config.IOMMUPlatform,
|
IOMMUPlatform: q.config.IOMMUPlatform,
|
||||||
@ -1105,16 +1104,10 @@ func (q *qemu) StartVM(ctx context.Context, timeout int) error {
|
|||||||
q.Logger().WithError(err).Error("failed to launch qemu")
|
q.Logger().WithError(err).Error("failed to launch qemu")
|
||||||
return fmt.Errorf("failed to launch qemu: %s", err)
|
return fmt.Errorf("failed to launch qemu: %s", err)
|
||||||
}
|
}
|
||||||
if q.qemuConfig.Knobs.Daemonize {
|
|
||||||
// LaunchQemu returns a handle on the upper QEMU process.
|
// Log QEMU errors and ensure the QEMU process is reaped after
|
||||||
// Wait for it to exit to assume that the QEMU daemon was
|
// termination.
|
||||||
// actually started.
|
go q.LogAndWait(qemuCmd, reader)
|
||||||
qemuCmd.Wait()
|
|
||||||
} else {
|
|
||||||
// Log QEMU errors and ensure the QEMU process is reaped after
|
|
||||||
// termination.
|
|
||||||
go q.LogAndWait(qemuCmd, reader)
|
|
||||||
}
|
|
||||||
|
|
||||||
err = q.waitVM(ctx, qmpConn, timeout)
|
err = q.waitVM(ctx, qmpConn, timeout)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user