diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-11-18 08:39:01 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-18 08:39:01 -0800 |
| commit | 95866c1a696e8964a9a0e5ecc764c8249b10ea0a (patch) | |
| tree | ce2a6cb62d1247a8d538902715a8e4ddf89ee4cd /docs/syzbot.md | |
| parent | 3659cea21d579af9e307c2097c89b4961f25c935 (diff) | |
docs/syzbot.md: update qemu command line
Match more closely GCE VMs by using scsi drive.
Update command line arguments.
Diffstat (limited to 'docs/syzbot.md')
| -rw-r--r-- | docs/syzbot.md | 17 |
1 files changed, 13 insertions, 4 deletions
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: ``` |
