From cac07d6cb6e13974e6e29866569876825de72a88 Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Fri, 24 Sep 2021 15:49:42 +0000 Subject: docs/linux: format Image section --- docs/linux/setup_ubuntu-host_qemu-vm_x86-64-kernel.md | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'docs/linux') 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 ``` -- cgit mrf-deployment