<div dir="ltr">Hi guys,<br><br>I am new to QEMU-KVM, libvmi and libvirt stuff.<br>Libvmi uses libvirt.<br>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.<br>
I seek your kind help on below error:<br><br>spanhal1@seclab2:~/KVMModule/libvmi-0.10.1$ sudo ./examples/process-list ubuntu<br>libvir: QEMU error : Domain not found: no domain with matching name 'ubuntu'<br>VMI_ERROR: Failed to get domain id from name.<br>
Failed to init LibVMI library.1<br><br>Here are few details of step I performed:<br>1. I have installed KVM module. (version 3.5)<br>2. Installed QEMU-KVM. (version 1.2.0)<br>3. Installed libvirt(version 0.1.2.5)<br>4. Installed libvirt-bin(version 0.9.8-2ubuntu17.19)<br>
5. Installed libvmi. (version 0.10.1)<br>6. Then I am trying to run process-list example and I am getting error as above.<br>   sudo ./examples/process-list ubuntu<br><br><br>To deal with this, I tried creating VM with domain name ubuntu using steps given at below link.<br>
<br><a href="https://help.ubuntu.com/community/KVM/CreateGuests">https://help.ubuntu.com/community/KVM/CreateGuests</a><br><a href="http://virt-tools.org/learning/install-with-command-line/">http://virt-tools.org/learning/install-with-command-line/</a><br>
<br>Create VM:<br><br>$sudo apt-get install virtinst        <br><br>$sudo fallocate -l 8192M /var/lib/libvirt/images/guest.img<br><br>$sudo qemu-img create -f qcow2 /var/lib/libvirt/images/guest.qcow2 8192<br><br>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<br>
ERROR    Host does not support any virtualization options<br><br>Here are few workaround and information for this error:<br><br>1. spanhal1@seclab2:~/KVMModule$ modprobe kvm<br>   spanhal1@seclab2:~/KVMModule$ lsmod | grep kvm<br>
<br>   kvm_intel             137888  0<br>   kvm                   422160  1 kvm_intel<br><br>2. spanhal1@seclab2:~/KVMModule$ kvm-ok<br>   INFO: /dev/kvm exists<br>   KVM acceleration can be used<br><br>Check if virutalization is enabled by BIOS:<br>
   spanhal1@seclab2:/var/log/libvirt$ sudo modprobe msr<br>   spanhal1@seclab2:/var/log/libvirt$ sudo rdmsr 0x3a<br>   5<br>   (Values 3 and 5 mean it's activated).<br><br>Libvirt log:<br><br>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<br>
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<br>
<br>Machine Details:<br>Intel(R) Core(TM) i3-3240 CPU @ 3.40GHz<br><br>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<br>
<br>OS: Ubuntu 12.04.1 LTS<br><br>Config file for Libvmi:<br><br>ubuntu {<br>     ostype = "Linux";<br>     sysmap = "/boot/System.map-3.5.0-22-generic";<br>     linux_name = 0x460;<br>     linux_tasks = 0x240;<br>
     linux_mm = 0x278;<br>     linux_pid = 0x2b4;<br>     linux_pgd = 0x48;<br>}<br><br><br><br>Thanks,<br>Sanket.<br></div>