[panda-users] Fwd: confused about panda_ssltut.md

xiaojuan Li xiaotan6666 at gmail.com
Tue Mar 24 21:02:11 EDT 2015


Thank you very much for answering my questions!
PANDA is a great tool!You guys are great!

2015-03-25 8:52 GMT+08:00 Brendan Dolan-Gavitt <brendandg at gatech.edu>:

> The "begin_record ssltut" command creates two files: ssltut-rr-snp and
> ssltut-rr-nondet.log. As long as you type "end_record" in the monitor,
> the recording will complete successfully.
>
> You can't use the ssltut-rr-snp file as a snapshot with -loadvm,
> because PANDA's record/replay system has changed since the SSL
> tutorial was written and no longer saves a snapshot inside the QCOW.
>
> To do the replay just do:
>
> qemu-system-x86_64 -replay ssltut
>
> And you should see progress messages printed to the screen as it runs
> the replay.
>
> -Brendan
>
> On Tue, Mar 24, 2015 at 8:42 PM, xiaojuan Li <xiaotan6666 at gmail.com>
> wrote:
> > the process is this:
> > I used qemu-system-x86_64 to boot
> > system(debian_squeeze_i386_standard.qcow2),then in the qemu monitor,I
> input
> > "begin_record ssltut",after did something in that system,I input
> > "end_record",this should create ssltut-rr-snp,and then when I use
> > "qemu-system-x86_64 ***** *****
> > -loadvm ssltut-rr-snp",it just showed the problem I described before.
> > so I have that question how can I make sure that the record finishes?If
> > so,why the ssltut-rr-snp shows nothing?
> > Thanks!
> >
> > 2015-03-25 8:11 GMT+08:00 Brendan Dolan-Gavitt <brendandg at gatech.edu>:
> >>
> >> Could you post the command line you are using to run the replay? If
> >> you have a recording named "foo" that you made by doing "begin_record
> >> foo", you should be able to replay it by doing.
> >>
> >> x86_64-softmmu/qemu-system-x86_64 -replay foo
> >>
> >> If the recording was made on something other than x86_64, you will
> >> have to adjust the architecture. Also, if the recording used a
> >> different amount of RAM than 128 MB, you will need to use the -m
> >> option to set the correct amount of RAM.
> >>
> >> -Brendan
> >>
> >> On Tue, Mar 24, 2015 at 7:54 PM, xiaojuan Li <xiaotan6666 at gmail.com>
> >> wrote:
> >> >
> >> > ---------- Forwarded message ----------
> >> > From: xiaojuan Li <xiaotan6666 at gmail.com>
> >> > Date: 2015-03-24 20:42 GMT+08:00
> >> > Subject: Re: [panda-users] confused about panda_ssltut.md
> >> > To: Brendan Dolan-Gavitt <brendandg at gatech.edu>
> >> >
> >> >
> >> > Now,I find a problem with the record:when I input "end_record",I am
> not
> >> > sure
> >> > that its record has finished,and when I use the .snp to do replay, the
> >> > qemu
> >> > monitor just shows the black terminal with nothing not the system used
> >> > before. so I guess that the record action has something wrong.
> >> > Suggestions?
> >> > Thanks!
> >> >
> >> > 2015-03-24 8:23 GMT+08:00 xiaojuan Li <xiaotan6666 at gmail.com>:
> >> >>
> >> >> I see.Thanks a lot!
> >> >>
> >> >> 2015-03-23 21:44 GMT+08:00 Brendan Dolan-Gavitt <
> brendandg at gatech.edu>:
> >> >>>
> >> >>> Once you see the "opening nondet log for write" message, the
> recording
> >> >>> has started. You should be able to use the virtual machine at this
> >> >>> point. If you press "enter" in the QEMU monitor you will see the
> >> >>> monitor prompt "(qemu)" and can enter further commands, or just
> >> >>> interact with the VM directly. When you're done, you can do
> >> >>> "end_record" in the monitor to stop the recording.
> >> >>>
> >> >>> Note that some of the information in PANDA's SSL tutorial is
> slightly
> >> >>> outdated; there is an open bug in the bug tracker:
> >> >>>
> >> >>> https://github.com/moyix/panda/issues/8
> >> >>>
> >> >>> And I will try to find some time soon to bring it up to date.
> >> >>>
> >> >>> -Brendan
> >> >>>
> >> >>> On Mon, Mar 23, 2015 at 3:38 AM, xiaojuan Li <xiaotan6666 at gmail.com
> >
> >> >>> wrote:
> >> >>> > Hi,
> >> >>> > Thanks for your guys work first!
> >> >>> > Now my question is: when I tried process described in the
> >> >>> > docs/panda_ssltut.md,I was confused about "Taking the snapshot
> can
> >> >>> > take
> >> >>> > a
> >> >>> > long time.once the snapshot is made, the vm will resume." Is it
> >> >>> > means
> >> >>> > that I
> >> >>> > must wait till the vm resume?and then i can take the next step?
> >> >>> > But I have stayed this step for a long time,it seems not to
> >> >>> > resume.it
> >> >>> > just
> >> >>> > shows"opening nondet log for write:.****.log"
> >> >>> > Thanks for checking!
> >> >>> > Any suggestions?
> >> >>> > Thanks a lot!
> >> >>> > --
> >> >>> > wait and hope~~
> >> >>> >
> >> >>> > _______________________________________________
> >> >>> > panda-users mailing list
> >> >>> > panda-users at mit.edu
> >> >>> > http://mailman.mit.edu/mailman/listinfo/panda-users
> >> >>> >
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> wait and hope~~
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > wait and hope~~
> >> >
> >> >
> >> >
> >> > --
> >> > wait and hope~~
> >> >
> >> > _______________________________________________
> >> > panda-users mailing list
> >> > panda-users at mit.edu
> >> > http://mailman.mit.edu/mailman/listinfo/panda-users
> >> >
> >
> >
> >
> >
> > --
> > wait and hope~~
>



-- 
wait and hope~~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/panda-users/attachments/20150325/b2d222bf/attachment.htm


More information about the panda-users mailing list