
hi, i am started to exploring libvirt. i am using the version libvirt-1.1.3 and i want to know (or) find the path how the libvirt is creating VM with xen (libxl) in the source. Any guide or reference is available for this. How i can find the path of calling sequence for other operations(api). Guide me to get some idea on debugging the libvirt. Regards, cooldharma06

[dropping libvirt-users, as this is a development question. No need to cross-post] On 10/22/2013 10:19 AM, cooldharma06 wrote:
hi,
i am started to exploring libvirt. i am using the version libvirt-1.1.3 and i want to know (or) find the path how the libvirt is creating VM with xen (libxl) in the source. Any guide or reference is available for this. How i can find the path of calling sequence for other operations(api). Guide me to get some idea on debugging the libvirt.
libxl interaction lives in the src/libxl subdirectory. That code is only run by libvirtd, but if you build with './autogen.sh --system', you can then stop the system libvirtd and use './run gdb daemon/libvirtd' to do normal debugger operations wherever you'd like in that part of the code. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

thanks for your information. i am new to these source things. i am seeing large number of files and every things new to me. Any guide is available for how to debug the libvirt source. For example: i want to know how vm's are created by libvirt daemon. From where i have to start. Any guide or suggestions. regards, cooldharma06 On Tue, Oct 22, 2013 at 3:27 PM, Eric Blake <eblake@redhat.com> wrote:
[dropping libvirt-users, as this is a development question. No need to cross-post]
On 10/22/2013 10:19 AM, cooldharma06 wrote:
hi,
i am started to exploring libvirt. i am using the version libvirt-1.1.3 and i want to know (or) find the path how the libvirt is creating VM with xen (libxl) in the source. Any guide or reference is available for this. How i can find the path of calling sequence for other operations(api). Guide me to get some idea on debugging the libvirt.
libxl interaction lives in the src/libxl subdirectory. That code is only run by libvirtd, but if you build with './autogen.sh --system', you can then stop the system libvirtd and use './run gdb daemon/libvirtd' to do normal debugger operations wherever you'd like in that part of the code.
-- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

On 10/22/2013 11:05 AM, cooldharma06 wrote:
thanks for your information.
[Please don't top-post on technical lists]
i am new to these source things. i am seeing large number of files and every things new to me. Any guide is available for how to debug the libvirt source.
A good resource is to understand this file: http://libvirt.org/hacking.html
For example: i want to know how vm's are created by libvirt daemon. From where i have to start. Any guide or suggestions.
Explore the web page - there's some overviews on pages such as: http://libvirt.org/goals.html http://libvirt.org/api.html Or set breakpoints in libvirtd, and trace a call to one of the public APIs. For example, if you use 'virsh -c $uri start $dom' to start a xen domain, you can run libvirtd under gdb, put a breakpoint on virDomainCreate() and step on through the code to see what is involved in starting a xen guest. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
participants (2)
-
cooldharma06
-
Eric Blake