Hello PANDA

0. Environment

Ubuntu16.04 x64

1. Install Panda

1
2
3
git clone https://github.com/moyix/panda.git
cd panda
./panda_install.bash

2. Working Folder and HDD

1
2
3
$ mkdir my_first_panda
$ cd my_first_panda
$ ../qemu/qemu-img create -f qcow2 test.img 32G

3. Boot VM

1
../qemu/x86_64-softmmu/qemu-system-x86_64 test.img --monitor stdio -vnc 127.0.0.1:1 -k en-gb -m 1024

you will get:

1
2
3
4
5
6
➜  my_first_panda git:(master) ✗ ../qemu/x86_64-softmmu/qemu-system-x86_64 test.img --monitor stdio -vnc 127.0.0.1:1 -k en-gb -m 1024

(process:21836): GLib-WARNING **: /build/glib2.0-7ZsPUq/glib2.0-2.48.2/./glib/gmem.c:483: custom memory allocation vtable not supported
QEMU 1.0,1 monitor - type 'help' for more information
(qemu) change ide1-cd0 win_server_2008_r2.iso
(qemu)

mount your iso file:

1
2
(qemu) change ide1-cd0 win_server_2008_r2.iso 
(qemu)

4. Install OS

Connect your vm with a VNC client, press ctrl + opt + del(on macOS) / ctrl + alt + del(on Windows) to reboot your vm,then you are able to install the OS.

5. Record/Replay with PANDA

1
(qemu) begin_record test

….

1
(qemu) end_record

now you can replay (with replay movie plugin)

1
../qemu/x86_64-softmmu/qemu-system-x86_64 -replay test -panda replaymovie -m 2048

other plugins? Taint?cov? :)

6. Reference

My first panda

Panda Usage

文章目录
  1. 1. 0. Environment
  2. 2. 1. Install Panda
  3. 3. 2. Working Folder and HDD
  4. 4. 3. Boot VM
  5. 5. 4. Install OS
  6. 6. 5. Record/Replay with PANDA
  7. 7. 6. Reference
,