diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2016-08-21 17:50:57 -0700 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2016-08-21 17:50:57 -0700 |
| commit | a949600ee5e9bd6d2a492a038efcb35176648749 (patch) | |
| tree | da15811e047775a33e58befa7254029e5fc81645 | |
| parent | 0bdfe393727091fdf65d49e6802f618e370e4f85 (diff) | |
vm/qemu: use -no-reboot and -display=none
Rebooting only confuses syz-manager as it thinks that it's the same
dirty instance. Let syz-manager recreate the VM from scratch instead.
-display=none does not disable graphics subsystem which may be useful for fuzzing.
It also seems to be newer than -nographics.
| -rw-r--r-- | vm/qemu/qemu.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vm/qemu/qemu.go b/vm/qemu/qemu.go index 444e556ca..8633f4f2f 100644 --- a/vm/qemu/qemu.go +++ b/vm/qemu/qemu.go @@ -136,7 +136,9 @@ func (inst *instance) Boot() error { "-m", strconv.Itoa(inst.cfg.Mem), "-net", "nic", "-net", fmt.Sprintf("user,host=%v,hostfwd=tcp::%v-:22", hostAddr, inst.port), - "-nographic", + "-display", "none", + "-serial", "stdio", + "-no-reboot", "-enable-kvm", "-numa", "node,nodeid=0,cpus=0-1", "-numa", "node,nodeid=1,cpus=2-3", "-smp", "sockets=2,cores=2,threads=1", |
