Contributing
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.
Utilities for Linux virtual machines running on Azure
License: MIT License
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.
Silently fails and generates short coredump and creates confustion
There are important files that Microsoft projects should all have that are not present in this repository. A pull request has been opened to add the missing file(s). When the pr is merged this issue will be closed automatically.
Microsoft teams can learn more about this effort and share feedback within the open source guidance available internally.
I get the following error print when provided with invalid VMRS file.
`> .\vm2core.exe "test1.VMRS" .\test1.vmcore
The system cannot find the file specified. `
The snapshot file exists but it is invalid input as it was generated when VM was in turned off state.
Hello, I appreciate that this tool exists, it has helped me out of a bind! But I wanted to give a bit of feedback. The vmcoreinfo note which is generated for the ELF file is fake, as mentioned in the code:
// Fill fake data in VMCOREINFO to keep crash tool happy
// TODO: Is it possible to get real data from state file ?
Unfortunately, at least with the crash + kernel versions I tested (honestly, I can't recall the exact details as it was months ago), fake data does not keep crash happy. Crash relies on vmcoreinfo to find things like the page tables, important data structures, and to verify the sizes of important data structures. And other tools like drgn similarly expect to read real data from it.
To work around this, I needed to find the vmcoreinfo data from the generated ELF file, and then patch the ELF file with the correct data.
It is possible to get real data from the memory image, but it is of course quite slow -- you need to scan the memory for well-known contents like OSRELEASE=
. Given that vm2core already needs to read and write each block of memory, maybe it wouldn't be a huge additional runtime slowdown to do the search? It could certainly be an opt-in feature if necessary. Vmcoreinfo will always start at a PAGE_SIZE aligned address, and it will always start with OSRELEASE=
. That may help speed things up. See here for the linux code generating it.
I have a script which wraps strings
to find the correct vmcoreinfo and output it to a file, to give you the general idea of what needs to be done. It doesn't even take into account the page-aligned restriction.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.