Hi guys,

I am new to QEMU-KVM, libvmi and libvirt stuff.
Libvmi uses libvirt.
I am trying to to run process-list example of libvmi and getting error as below. It seems that this error may be due to libvirt as it is not able to find domain.
I seek your kind help on below error:

spanhal1@seclab2:~/KVMModule/libvmi-0.10.1$ sudo ./examples/process-list ubuntu
libvir: QEMU error : Domain not found: no domain with matching name 'ubuntu'
VMI_ERROR: Failed to get domain id from name.
Failed to init LibVMI library.1

Here are few details of step I performed:
1. I have installed KVM module. (version 3.5)
2. Installed QEMU-KVM. (version 1.2.0)
3. Installed libvirt(version 0.1.2.5)
4. Installed libvirt-bin(version 0.9.8-2ubuntu17.19)
5. Installed libvmi. (version 0.10.1)
6. Then I am trying to run process-list example and I am getting error as above.
   sudo ./examples/process-list ubuntu


To deal with this, I tried creating VM with domain name ubuntu using steps given at below link.

https://help.ubuntu.com/community/KVM/CreateGuests
http://virt-tools.org/learning/install-with-command-line/

Create VM:

$sudo apt-get install virtinst       

$sudo fallocate -l 8192M /var/lib/libvirt/images/guest.img

$sudo qemu-img create -f qcow2 /var/lib/libvirt/images/guest.qcow2 8192

spanhal1@seclab2:~/KVMModule$ sudo virt-install --connect qemu:///system -n ubuntu -r 512 -f guest.qcow2 -s 12 -c /home/spanhal1/KVMModule/ubuntu-12.04.4-desktop-amd64.iso --vnc --noautoconsole --os-type linux --accelerate --network=network:default
ERROR    Host does not support any virtualization options

Here are few workaround and information for this error:

1. spanhal1@seclab2:~/KVMModule$ modprobe kvm
   spanhal1@seclab2:~/KVMModule$ lsmod | grep kvm

   kvm_intel             137888  0
   kvm                   422160  1 kvm_intel

2. spanhal1@seclab2:~/KVMModule$ kvm-ok
   INFO: /dev/kvm exists
   KVM acceleration can be used

Check if virutalization is enabled by BIOS:
   spanhal1@seclab2:/var/log/libvirt$ sudo modprobe msr
   spanhal1@seclab2:/var/log/libvirt$ sudo rdmsr 0x3a
   5
   (Values 3 and 5 mean it's activated).

Libvirt log:

2014-06-12 20:06:24.033+0000: 1305: error : virCommandWait:2188 : internal error Child process (LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin /usr/local/bin/qemu-system-x86_64 -help) status unexpected: exit status 1
2014-06-12 20:06:24.034+0000: 1305: error : virCommandWait:2188 : internal error Child process (LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin /usr/local/bin/qemu-system-x86_64 -help) status unexpected: exit status 1

Machine Details:
Intel(R) Core(TM) i3-3240 CPU @ 3.40GHz

flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer xsave avx f16c lahf_lm arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms

OS: Ubuntu 12.04.1 LTS

Config file for Libvmi:

ubuntu {
     ostype = "Linux";
     sysmap = "/boot/System.map-3.5.0-22-generic";
     linux_name = 0x460;
     linux_tasks = 0x240;
     linux_mm = 0x278;
     linux_pid = 0x2b4;
     linux_pgd = 0x48;
}



Thanks,
Sanket.