From 95866c1a696e8964a9a0e5ecc764c8249b10ea0a Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 18 Nov 2018 08:39:01 -0800 Subject: docs/syzbot.md: update qemu command line Match more closely GCE VMs by using scsi drive. Update command line arguments. --- docs/syzbot.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'docs') diff --git a/docs/syzbot.md b/docs/syzbot.md index c29b68b84..c04d4fbe4 100644 --- a/docs/syzbot.md +++ b/docs/syzbot.md @@ -124,11 +124,20 @@ Exact compilers used by `syzbot` can be found here: A qemu-suitable Debian/wheezy image can be found [here](https://storage.googleapis.com/syzkaller/wheezy.img) (1GB, compression somehow breaks it), root ssh key for it is [here](https://storage.googleapis.com/syzkaller/wheezy.img.key). A reference `qemu` command line to run it is as follows: ``` -qemu-system-x86_64 -hda wheezy.img -net user,hostfwd=tcp::10022-:22 \ - -net nic -nographic -enable-kvm -m 2G -smp 4 -cpu host \ - -kernel arch/x86/boot/bzImage \ +qemu-system-x86_64 -smp 2 -m 4G -enable-kvm -cpu host \ + -net nic -net user,hostfwd=tcp::10022-:22 \ + -kernel arch/x86/boot/bzImage -nographic \ + -device virtio-scsi-pci,id=scsi \ + -device scsi-hd,bus=scsi.0,drive=d0 \ + -drive file=wheezy.img,format=raw,if=none,id=d0 \ -append "root=/dev/sda console=ttyS0 earlyprintk=serial rodata=n \ - oops=panic panic_on_warn=1 panic=86400 kvm-intel.nested=1" + oops=panic panic_on_warn=1 panic=86400 kvm-intel.nested=1 \ + security=apparmor ima_policy=tcb workqueue.watchdog_thresh=140 \ + nf-conntrack-ftp.ports=20000 nf-conntrack-tftp.ports=20000 \ + nf-conntrack-sip.ports=20000 nf-conntrack-irc.ports=20000 \ + nf-conntrack-sane.ports=20000 vivid.n_devs=16 \ + vivid.multiplanar=1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 \ + spec_store_bypass_disable=prctl nopcid" ``` And then you can ssh into it using: ``` -- cgit mrf-deployment