Andre Gustavo Pereira da Silva
2013-Sep-02 21:22 UTC
[libvirt-users] Running libvirt on a virtualized server
Hi everyone I'm trying to create a virtual machine using OpenNebula [1] on a centos 6.4 server, but i'm facing some erros using kvm / libvirt. This server is running on a virtual machine created on XCP. Then, my infrastructure is: XCP 1.6 (hypervisor - dom0) + CentOS 6.4 (running on a XCP VM) + OpenNebula 4.0.1 (installed on CentOS). In the host machine, I have the same infrastructure. The problem I'm facing is that, by following the tutorial [2], i've noticed that neither the parameter 'vmx' nor 'svm' is listed on the CPU information provided by the virtual machine where the centOs is running. However, if i run the same command in XCP hypervisor, the parameter 'vmx' is listed. That is, the CPU informations provided by XCP are different from those provided by its virtual machines. My question is: is it possible to use libvirt in this scenario? Here are some messages: - Libvirt log on centoOS (XCP VM): Aug 27 13:26:21 localhost libvirtd: 9945: info : libvirt version: 0.10.2, package: 18.el6_4.9 (CentOS BuildSystem <http://bugs.centos.org>, 2013-07-02-11:19:29, c6b8.bsys.dev.centos.org) Aug 27 13:26:21 localhost libvirtd: 9945: error : udevGetDMIData:1502 : Failed to get udev device for syspath '/sys/devices/virtual/dmi/id' or '/sys/class/dmi/id' Aug 27 13:26:21 localhost kernel: Ebtables v2.0 registered Aug 27 13:26:22 localhost kernel: lo: Disabled Privacy Extensions Aug 27 13:26:40 localhost polkitd[10145]: started daemon version 0.96 using authority implementation `local' version `0.96' Aug 27 13:28:35 localhost libvirtd: 9937: error : qemuProcessStart:3696 : unsupported configuration: Domain requires KVM, but it is not available. Check that virtualization is enabled in the host BIOS, and host configuration is setup to load the kvm modules. Aug 27 13:28:35 localhost libvirtd: 9937: error : qemuRemoveCgroup:768 : internal error Unable to find cgroup for one-8 Aug 27 13:28:35 localhost libvirtd: 9937: warning : qemuProcessStop:4349 : Failed to remove cgroup for one-8 - On XCP hypervisor: [root at xenserver2 ~]# egrep '(vmx|svm)' --color=always /proc/cpuinfo flags: fpu de tsc msr pae mce cx8 apic sep mtrr mca cmov pat clflush acpi mmx fxsr sse sse2 ss ht nx constant_tsc nonstop_tsc aperfmperf pni vmx est ssse3 sse4_1 sse4_2 popcnt hypervisor arat tpr_shadow vnmi flexpriority ept vpid flags: fpu de tsc msr pae mce cx8 apic sep mtrr mca cmov pat clflush acpi mmx fxsr sse sse2 ss ht nx constant_tsc nonstop_tsc aperfmperf pni vmx est ssse3 sse4_1 sse4_2 popcnt hypervisor arat tpr_shadow vnmi flexpriority ept vpid flags: fpu de tsc msr pae mce cx8 apic sep mtrr mca cmov pat clflush acpi mmx fxsr sse sse2 ss ht nx constant_tsc nonstop_tsc aperfmperf pni vmx est ssse3 sse4_1 sse4_2 popcnt hypervisor arat tpr_shadow vnmi flexpriority ept vpid flags: fpu de tsc msr pae mce cx8 apic sep mtrr mca cmov pat clflush acpi mmx fxsr sse sse2 ss ht nx constant_tsc nonstop_tsc aperfmperf pni vmx est ssse3 sse4_1 sse4_2 popcnt hypervisor arat tpr_shadow vnmi flexpriority ept vpid - On centOS (XCP VM): [root at centos2 ~]# cat /proc/cpuinfo processor: 0 vendor_id: GenuineIntel cpu family: 6 model: 44 model name: Intel(R) Xeon(R) CPU E5606 @ 2.13GHz stepping: 2 cpu MHz: 2133.486 cache size: 8192 KB fpu: yes fpu_exception: yes cpuid level: 11 wp: yes flags: fpu de tsc msr pae cx8 sep cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm rep_good aperfmperf unfair_spinlock pni ssse3 cx16 pcid sse4_1 sse4_2 popcnt hypervisor lahf_lm arat epb dts bogomips: 4266.97 clflush size: 64 cache_alignment: 64 address sizes: 40 bits physical, 48 bits virtual thanks Andr? Gustavo Recife-PE Brazil [1] http://opennebula.org/documentation:archives:rel1.4:libvirtapi [2]http://www.howtoforge.com/virtualization-with-kvm-on-a-centos-6.4-server -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20130902/61120920/attachment.htm>