Comments (6)
rc -12
: XEN_ERRNO(ENOMEM, 12) /* Out of memory */
You ran out of memory for the VM, probably need to increase your shadow_memory
setting in the VM config.
from drakvuf.
I traced back the problem to the routines executed at libdrakvuf initialization which are in the json-profile.c file.
What is the function of such routines? I am exploring Drakvuf code for, like the first time; I guess they perform some sort of symbol lookup reading the json file generated using the following code snippet at a certain point of the setup phase:
python3 ~/drakvuf/volatility3/volatility/framework/symbols/windows/pdbconv.py --guid GUID -p NAME.pdb -o win.json
Is my guess somehow correct?
The point is I tried to regenerate the file multiple times to be sure it is correct but Drakvuf still fails to monitor Windows. Do you have any ideas why it fails?
By the way, thanks a lot for you help!
from drakvuf.
Logs don't really help a lot in this case, could you provide a coredump?
from drakvuf.
Good morning and thanks for your answer. I will put here the output of xl dmesg
which seems to contain the cause of the crash. It reports a failure linked to p2m. I will try to collect a coredump and some more further information and update this issue.
from drakvuf.
I tried to raise the shadow_memory
value to 128 and it actually solved the crashes problem as the Windows instance no longer raises exceptions; I am no longer noticing blue screens/kernel panics as before.
Unfortunately, now I have a new problem. The OS keeps on blocking during the monitoring.
xl list
shows no state for the windows domain, i.e. it just prints -----
five dashes with no info on whether it is blocked, running etc (even if I think this may be due to the fact that I am preserving the domain after a crash, does this make sense?). I am currently running Windows with the following config:
arch='x86_64' name="win10" maxmem=5000 memory=5000 shadow_memory=128 vcpus=2 maxvcpus=2 viridian=1 builder="hvm" vif=['type=ioemu,model=e1000,bridge=br0'] disk=['phy:/dev/vg/winvol,hda,w','file:/home/pwn/Downloads/Windows.iso,hdc:cdrom,r'] on_poweroff='destroy' on_reboot='destroy' on_crash='preserve' vnc=1 vnclisten="0.0.0.0" vga="stdvga" usb=1 usbdevice=['tablet'] audio=1 soundhw='hda' altp2m=2 type='hvm'
I cannot really explain to myself why it happens, but the strange part is that it only happens after a certain time of using the guest with Drakvuf running.
I don't know whether or not it may help but, while monitoring Windows 10 with the codemon plugin, I can see libvmi handler seems stuck in a loop. All of sudden it stops at this particular point, on xen_get_memory_pfn success on pfn=0x148884
.
Does it look suspect? I compiled libvmi for debug to observe this.
What I observe is that Windows is just irresponsive.
BTW, thanks a lot for your valuable help; as you can see, I am a newbie!
from drakvuf.
Besides what I wrote before, how can I handle coredumps? I think I got one using xl
but how can I look into it?
from drakvuf.
Related Issues (20)
- Error in running windows7-sp1.json HOT 6
- Request - add support for MSI files
- What IDE should be used for drakvuf? HOT 1
- Hooks on nested functions are broken HOT 2
- mount /dev/mapper/vg0-win7 to /mnt error HOT 2
- vmi-win-guid name out print is NULL
- Virtualization problem
- interception specify process
- Format code with clang-format and clang-tidy HOT 1
- apimon doesn't work after 9/1's commit HOT 3
- Plugin etwmon startup failed! HOT 2
- Unable to control mouse in Win7 when drakvuf is running HOT 1
- [LIBHOOK] makes the xen virtual machine hang HOT 8
- How to automated batch analysis HOT 1
- trace powershell behavior with apimon
- drakvuf meson and ninja-injector linking build errors HOT 4
- How to exit a running drakvuf HOT 1
- How to obtain the value of a handle
- Injector sometimes hangs while injecting commands into explorer HOT 3
- avx instruction not support HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drakvuf.