Irfan Ahmed
2012-Feb-09 18:06 UTC
[libvirt-users] want to access the page file of VM from host on Xen platform
Is there a way to access swap memory or page file of a virtual machine from host. I am using Xen and want to access the page file contents of my windows XP SP2 virtual machine from dom0. Please do tell me if there is already a tool that could provide this functionality. Any help is appreciated. Thanks and regards, Irfan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20120209/ae04229e/attachment.htm>
Eric Blake
2012-Feb-09 18:38 UTC
[libvirt-users] want to access the page file of VM from host on Xen platform
On 02/09/2012 11:06 AM, Irfan Ahmed wrote:> Is there a way to access swap memory or page file of a virtual machine from host. I am using Xen and want to access the page file contents of my windows XP SP2 virtual machine from dom0. Please do tell me if there is already a tool that could provide this functionality. > > Any help is appreciated.libvirt supports the virDomainMemoryPeek operation to look at memory; and libguestfs provides a very rich set of tools for investigating files found in a guest's file system. -- Eric Blake eblake at redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 620 bytes Desc: OpenPGP digital signature URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20120209/61b8d183/attachment.sig>
Eric Blake
2012-Feb-09 21:05 UTC
[libvirt-users] want to access the page file of VM from host on Xen platform
[re-adding the list, so others may benefit from the answers] On 02/09/2012 02:00 PM, Irfan Ahmed wrote:> thanks Eric. Just for clarification, if the page is swaped out from RAM to HDD, will virDomainMemoryPeek functionalso retrive the block of size 'size' from that too or it is only restricted to the pages exist in RAM.virDomainMemoryPeek is limited to reading what is in the guest's RAM. As I said earlier, if you are interested in reading what is in the guest's disk, you might find libguestfs to be a more powerful tool.> > > Is there any example program that uses virDomainMemoryPeek function.Alas, no one has yet wired up virsh to call virDomainMemoryPeek (patches welcome), and I don't personally have any example programs that use it. Rich Jones might have some better ideas (as both author of libguestfs, and as the implementer of virDomainMemoryPeek). -- Eric Blake eblake at redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 620 bytes Desc: OpenPGP digital signature URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20120209/e3204685/attachment.sig>