diff options
| author | Taras Madan <tarasmadan@google.com> | 2021-09-24 15:49:42 +0000 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2021-09-29 13:23:14 +0200 |
| commit | cac07d6cb6e13974e6e29866569876825de72a88 (patch) | |
| tree | 5e0d6d2b6e50bde3b11f8e399d70f4d34a2d2069 /docs/linux | |
| parent | ca15ebe83211a6fd989a9a6fa520a3ec20a482c1 (diff) | |
docs/linux: format Image section
Diffstat (limited to 'docs/linux')
| -rw-r--r-- | docs/linux/setup_ubuntu-host_qemu-vm_x86-64-kernel.md | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/docs/linux/setup_ubuntu-host_qemu-vm_x86-64-kernel.md b/docs/linux/setup_ubuntu-host_qemu-vm_x86-64-kernel.md index a56533ba7..02d120e7a 100644 --- a/docs/linux/setup_ubuntu-host_qemu-vm_x86-64-kernel.md +++ b/docs/linux/setup_ubuntu-host_qemu-vm_x86-64-kernel.md @@ -129,15 +129,20 @@ ls $KERNEL/arch/x86/boot/bzImage ## Image -Install debootstrap: +### Install debootstrap +Command: ``` bash -sudo apt-get install debootstrap +sudo apt install debootstrap ``` -To create a Debian Stretch Linux image with the minimal set of required packages do: +### Create Debian Stretch Linux image + +Create a Debian Stretch Linux image with the minimal set of required packages. +Command: ``` +mkdir $IMAGE cd $IMAGE/ wget https://raw.githubusercontent.com/google/syzkaller/master/tools/create-image.sh -O create-image.sh chmod +x create-image.sh @@ -146,20 +151,25 @@ chmod +x create-image.sh The result should be `$IMAGE/stretch.img` disk image. -If you would like to generate an image with Debian Buster, instead of Stretch, do: +### OR Create Debian Buster Linux image +Command: ``` bash ./create-image.sh --distribution buster ``` +### Image exatra tools + Sometimes it's useful to have some additional packages and tools available in the VM even though they are not required to run syzkaller. To install a set of tools we find useful do (feel free to edit the list of tools in the script): +Command: ``` bash ./create-image.sh --feature full ``` To install perf (not required to run syzkaller; requires `$KERNEL` to point to the kernel sources): +Command: ``` bash ./create-image.sh --add-perf ``` |
