Capítulo V. Diagnóstico del problema 27
7. Hallazgos del análisis de datos cuantitativos
Mail reportant errors als desenvolupadors de Libvirt
On Fri, Dec 11, 2009 at 02:01:36PM +0100, Marc Gonzalez Mateo wrote:
> Hi everybody,
> I'm developing a new API based on libvirt.
> I'm currently stucked using getSchedulerParameters, always is returning a
> nullpointerexception, no matter which Xen Domain I'm passing to the
> function.
>
> Enclosing both the code and the error console:
>
>
> public int getCPUPriority(String name) {
> int res=-1;
SchedParameter[] returnValue = new SchedParameter[0];
and
public static SchedParameter create(virSchedParameter vParam) { SchedParameter returnValue = null;
switch (vParam.type) { case (1):
and the create method getting there gets a null pointer as the initialization argument, which it first dereference ...
so not surprizing looking at the code, maybe Bryan has an idea of what is going on there, I'm a bit lost in this initialization process ...
Daniel
> Dec 11, 2009 1:04:18 PM net.emotivecloud.virtmonitor.VirtMonitor
> getCPUCapacity
> SEVERE: Error: getting CPU capacity of "XenTest".
> java.lang.NullPointerException
> at org.libvirt.SchedParameter.create(Unknown Source)
> at org.libvirt.Domain.getSchedulerParameters(Unknown Source)
> at
> net.emotivecloud.virtmonitor.VirtMonitor.getCPUCapacity(VirtMonitor.java:462)
> at net.emotivecloud.virtmonitor.VirtMonitor.main(VirtMonitor.java:763)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> at java.lang.reflect.Method.invoke(Method.java:616)
> at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:283)
> at java.lang.Thread.run(Thread.java:636)
>
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel veillard com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
Bibliografia
• Discover the Linux Kernel Virtual Machine IBM
http://www.ibm.com/developerworks/linux/library/l-linux-kvm/
• Six steps for migrating Xen virtual machines to KVM
http://searchservervirtualization.techtarget.com/tip/0,289483,sid94_gci1362885_mem1,00.html
• Linux Para Todos - VIRTUALIZACION CON KVM EN DEBIAN LENNY 5-7 http://www.linuxparatodos.net/portal/article.php?story=Kvm-5
• libvirt + KVM on Debian mini-HOWTO
http://edin.no-ip.com/content/libvirt-kvm-debian-mini-howto
• KVM Guest Management - Community Ubuntu Documentation Virtualización con Xen y KVM
• HowTos/KVM - CentOS Wiki http://wiki.centos.org/HowTos/KVM
• libvirt: QEMU/KVM hypervisor driver http://libvirt.org/drvqemu.html
• Re: XML format for QEMU / KVM driver: msg#00004 emulators.libvirt http://osdir.com/ml/emulators.libvirt/2007-01/msg00004.html
• install-kvm
http://dsa.debian.org/howto/install-kvm/
• KVM the hard way - Scottʼs Weblog
http://www.wand.net.nz/~smr26/wordpress/2008/08/28/kvm-the-hard-way/
• GRUB bootloader - Full tutorial
http://www.dedoimedo.com/computers/grub.html
• Creating an initrd image on Debian GNU/Linux - Jason's postings and stuff
http://blog.edseek.com/archives/2004/03/22/creating-an-initrd-image-on-debian-gnulinux/
• Introducing initramfs, a new model for initial RAM disks - Linux For Devices Articles - Linux for Devices
http://www.linuxfordevices.com/c/a/Linux-For-Devices-Articles/Introducing-initramfs-a-new-model-f or-initial-RAM-disks/
• Cómo modificar un initramfs para isolinux | GNESIS http://gnesis.esi.uclm.es/node/13
• Virtualización: El corazón de Tux ahora es nativamente infiel | bootlog
http://bootlog.org/blog/desktop/virtualizacion-el-corazon-de-tux-ahora-es-nativamente-infiel
• Anatomy of the Linux file system
http://www.ibm.com/developerworks/linux/library/l-linux-filesystem/
• Libvirt JAVA
http://libvirt.org/sources/java/javadoc/
• VIRTIO Drivers
http://wiki.libvirt.org/page/Virtio
• Ale Vouilloz: JNA: Invocando código nativo desde Java
http://alevouilloz.blogspot.com/2009/01/jna-ejecutando-cdigo-nativo-desde-java.html
• Adjuncions per a «XenApi» - Xen Wiki
http://wiki.xensource.com/xenwiki/XenApi?action=AttachFile
• libvirt.org Git - libvirt-java.git/commit
http://libvirt.org/git/?p=libvirt-java.git;a=commit;h=fc21efea5b1eb873b0e74acef33f1cca54e6c189
• libvirt.org Git - libvirt-java.git/tree - src/main/java/org/libvirt/
http://libvirt.org/git/?p=libvirt-java.git;a=tree;f=src/main/java/org/libvirt;h=80f2d31c4a1f59dd457949 898ba6a366fb81cbe7;hb=4ffac56886cd4300559bc6476a02507e96c47bf5
• virsh(1): management user interface - Linux man page http://linux.die.net/man/1/virsh
• FRAGMENT DE CODI LIBVIRT /func/minion/modules/virt.py - func - Trac
https://fedorahosted.org/func/browser/func/minion/modules/virt.py?rev=b5212c0ef95ae159d5f06c1 d8f4f18bcda714105
• libvirt-java in libvirt - Gitorious http://gitorious.org/libvirt/libvirt-java
• libvirt: Java API bindings http://libvirt.org/java.html
• Getting started with virtualization - FedoraProject
http://fedoraproject.org/wiki/Virtualization_Quick_Start#Serial_console_access_for_troubleshooting _and_management
• OSS Virtual Environment Management Systems - System x Virtualization Strategies - The IBM Redbooks wiki for content development
http://www-01.ibm.com/redbooks/community/display/REDP4480/OSS+Virtual+Environment+Mana gement+Systems
• Virtualization - Wikipedia, the free encyclopedia http://en.wikipedia.org/wiki/Virtualization
• Cloud computing - Wikipedia, the free encyclopedia http://en.wikipedia.org/wiki/Cloud_computing
• Google and I.B.M. Join in ʻCloud Computingʼ Research - New York Times
http://www.nytimes.com/2007/10/08/technology/08cloud.html?_r=2&ex=1349496000&en=92627f0f 65ea0d75&ei=5090&partner=rssuserland&emc=rss&oref=slogin
• El termòmetre de les TIC: Balanceig de càrrega: una solució al projecte 1 a 1 http://www.eltermometretic.com/2009/04/balanceig-de-carrega-una-solucio-al.html
• El ʻcloud computingʼ no sustituirá a todo lo anterior - Channel Partner
http://www.channelpartner.es/Noticias/200911260031/El-cloud-computing-no-sustituira-a-todo-lo-a nterior-.aspx
• ParavirtBenefits - Linux Virtualization Wiki http://virt.kernelnewbies.org/ParavirtBenefits
• TechOverview - Linux Virtualization Wiki http://virt.kernelnewbies.org/TechOverview
• Íñigo Goiri's homepage - Publications
http://personals.ac.upc.edu/igoiri/publications.html
• Linux 2 6 32 - Linux Kernel Newbies http://kernelnewbies.org/Linux_2_6_32
• Six steps for migrating Xen virtual machines to KVM
http://searchservervirtualization.techtarget.com/tip/0,289483,sid94_gci1362885_mem1,00.html
• libvirt: Wiki: Networking
http://wiki.libvirt.org/page/Networking
• LXC containers or extremely fast virtualization | Stéphane Graber's website http://www.stgraber.org/2009/11/06/lxc-containers-or-extremely-fast-virtualization
• LXC: Linux container tools
http://www.ibm.com/developerworks/linux/library/l-lxc-containers/
• libvir-list 2009-December Archive by Thread
http://www.redhat.com/archives/libvir-list/2009-December/thread.html
• Address Resolution Protocol - Viquipèdia
http://ca.wikipedia.org/wiki/Address_Resolution_Protocol
• Intel Xeon
http://www.cpu-world.com/CPUs/Xeon/
• Intel Core
http://www.jaist.ac.jp/iscenter-new/mpc/altix/altixdata/opt/intel/vtune/doc/users_guide/mergedProje cts/analyzer_ec/mergedProjects/reference_olh/whgdata/whlstt74.htm#74
• NAS Parallel Benchmarks
http://www.nas.nasa.gov/Resources/Software/npb.html