OpenQRM 4.6 + CentOS 5.4 KVM

2010-02-03
2013-04-13
  • Philip Dubois

    Philip Dubois - 2010-02-03

    In my testing environment I run OpenQRM 4.6. One of the servers is running a small CentOS 5.4 installation, completely updated and with KVM installed. Yet, OpenQRM indicates that KVM isn't installed. It looks like there is done a "which" on both the 'kvm' and 'qemu-kvm' commands, wich are indeed not there.

    /var/log/messages :

    Feb  3 13:17:41 zwarte-supermicro logger: openQRM engine: Running as root cmd : /usr/share/openqrm/plugins/kvm/bin/openqrm-kvm post_vm_list -u openqrm -p openqrm
    Feb  3 13:17:41 zwarte-supermicro logger: Posting vm list to the openQRM-server ls: /var/lib/kvm/openqrm//: No such file or directory
    Feb  3 13:18:17 zwarte-supermicro logger: openQRM engine: Running as root cmd : /usr/share/openqrm/plugins/kvm/bin/openqrm-kvm create -n TestVM -m 00:20:78:63:EC:3E -r 512 -c 1 -d 2000 -s 1024 -t virtio -u openqrm -p openqrm
    Feb  3 13:18:17 zwarte-supermicro kvm plug-in: kvm_lock : Aquired the lock
    Feb  3 13:18:18 zwarte-supermicro logger: ERROR: kvm ist not installed on this system !
    Feb  3 13:18:18 zwarte-supermicro kvm plug-in: kvm_lock : Released the lock
    Feb  3 13:18:18 zwarte-supermicro logger: /usr/share/openqrm/plugins/kvm/include/openqrm-plugin-kvm-functions: line 46: lockfile: command not found Creating KVM vm TestVM -> /var/lib/kvm/openqrm//TestVM/TestVM.kvm -> Creating disk 1+0 records in 1+0 records out 1048576 bytes (1.0 MB) copied, 0.001544 seconds, 679 MB/s -> Creating swap 1+0 records in 1+0 records out 1048576 bytes (1.0 MB) copied, 0.001557 seconds, 673 MB/s Setting up swapspace version 1, size = 1074786 kB which: no kvm in (/usr/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin) which: no qemu-kvm in (/usr/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin) Posting vm list to the openQRM-server
    Feb  3 13:22:14 zwarte-supermicro logger: openQRM engine: Running as root cmd : /usr/share/openqrm/plugins/kvm/bin/openqrm-kvm start -n TestVM -u openqrm -p openqrm
    Feb  3 13:22:14 zwarte-supermicro kvm plug-in: kvm_lock : Aquired the lock
    Feb  3 13:22:14 zwarte-supermicro logger: ERROR: kvm ist not installed on this system !
    Feb  3 13:22:14 zwarte-supermicro kvm plug-in: kvm_lock : Released the lock
    Feb  3 13:22:14 zwarte-supermicro logger: /usr/share/openqrm/plugins/kvm/include/openqrm-plugin-kvm-functions: line 46: lockfile: command not found Starting Kvm vm TestVM which: no kvm in (/usr/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin) which: no qemu-kvm in (/usr/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin) Posting vm list to the openQRM-server
    Feb  3 13:23:01 zwarte-supermicro logger: openQRM engine: Running as root cmd : /usr/share/openqrm/plugins/kvm/bin/openqrm-kvm post_vm_list -u openqrm -p openqrm
    Feb  3 13:23:02 zwarte-supermicro logger: Posting vm list to the openQRM-server

    # rpm -qa | grep kvm
    etherboot-zroms-kvm-5.4.4-10.el5.centos
    kvm-qemu-img-83-105.el5_4.13
    kmod-kvm-83-105.el5_4.13
    kvm-83-105.el5_4.13
    kvm-tools-83-105.el5_4.13

    # lsmod | grep kvm
    kvm_intel              86248  0
    kvm                   223520  2 ksm,kvm_intel

     
  • Philip Dubois

    Philip Dubois - 2010-02-03

    EDIT: qemu-kvm can be found in /usr/libexec.

     
  • Matt

    Matt - 2010-02-04

    Hi heazky,

    thanks for reporting. Interesting where Centos keeps the kvm binaries :P
    -> for now I would suggest you add /usr/libexec to root PATH
    We will fix this for the next release.

    greetz + best,

    Matt

     
  • Philip Dubois

    Philip Dubois - 2010-02-08

    Hi Matt,

    Thanks for your reply. That's exactly what I did to solve it :-). Another, less elegant solution, is creating a symlink to the binary in let's say /usr/bin.

    After that it still didn't work. So I had to look further. The VM got created, but didn't get an IP from the openQRM server. Looks like there wasn't a bridge set up to the management network (CentOS only created a NAT bridge). After doing this, everything works flawlesly.
    Maybe it's a good idea to get this in the documentation?

    Greetings,

    Philip

     
  • Matt

    Matt - 2010-02-08

    Yo Philip,

    :D great to hear you got it working !
    Yes, bridging setup is needed and yes we will put it in the docu
    btw: we are currently working on a full documentation, soon come

    greetz + stay tuned,

    Matt

     

Log in to post a comment.