mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-18 06:44:23 +01:00
qemu: Set govmmQemu NoReboot config Knob
The Kata architecture does not support rebooting VMs (the lifecycle being start/exec/kill) and if a VM is killed (e.g. using sysrq-trigger), the VM does not exit fully and other layers do not notice the state change. Set the NoReboot config Knob so that govmmQemu.LaunchQemu() runs QEMU with the --no-reboot command-line option. Fixes: #2866 Signed-off-by: Liam Merwick <liam.merwick@oracle.com>
This commit is contained in:
@@ -202,6 +202,7 @@ func TestQemuKnobs(t *testing.T) {
|
||||
assert.Equal(q.qemuConfig.Knobs.NoUserConfig, true)
|
||||
assert.Equal(q.qemuConfig.Knobs.NoDefaults, true)
|
||||
assert.Equal(q.qemuConfig.Knobs.NoGraphic, true)
|
||||
assert.Equal(q.qemuConfig.Knobs.NoReboot, true)
|
||||
}
|
||||
|
||||
func testQemuAddDevice(t *testing.T, devInfo interface{}, devType deviceType, expected []govmmQemu.Device) {
|
||||
|
||||
Reference in New Issue
Block a user