Feature #10

KVM drivers

Added by Ruben S. Montero about 13 years ago. Updated almost 13 years ago.

Status:ClosedStart date:
Priority:HighDue date:
Assignee:Tino Vázquez% Done:

0%

Category:Drivers - Auth
Target version:Release 1.0
Resolution:fixed Pull request:

Description

Development of a KVM driver, this ticket includes:
  • ONE driver VMM class for KVM.
  • Ruby invocation of remote process.
  • The VM driver (to manage and monitor VMs)
  • Monitoring scripts for the Information Manager

History

#1 Updated by Tino Vázquez about 13 years ago

We are going to use libvirt to implement this driver, since we kind of like the XML format they propose and it's overall a good abstraction.

#2 Updated by Ruben S. Montero about 13 years ago

POLL errors in driver
  • The POLL action is not working:
    POLL 0 localhost one-5
    Exception @TypeError' at ../../bin/one_vmm_kvm.rb:163 - can't convert Fixnum into String
    ../../bin/one_vmm_kvm.rb:163:in @+': can't convert Fixnum into String (TypeError)
            from ../../bin/one_vmm_kvm.rb:163:in @parse_virsh_dominfo'
            from ../../bin/one_vmm_kvm.rb:158:in @each_line'
            from ../../bin/one_vmm_kvm.rb:158:in @parse_virsh_dominfo'
            from ../../bin/one_vmm_kvm.rb:77:in @action_poll'
            from /home/ruben/Virtual/KVM/vCluster/shared/lib/ruby/one_mad.rb:96:in @send'
            from /home/ruben/Virtual/KVM/vCluster/shared/lib/ruby/one_mad.rb:96:in @process'
            from /home/ruben/Virtual/KVM/vCluster/shared/lib/ruby/one_mad.rb:73:in @loop'
            from ../../bin/one_vmm_kvm.rb:174
    
  • POLL Information should return the state as in the Xen driver

Also error information is not pushed to the core. Example error when deploying a VM:
the following stderr string is available in std_action:

stderr = 
"Connecting to uri: qemu:///system\nlibvir: QEMU error : Failed to add tap interface 'tap0' to bridge 'veth0' : Device or resource busy\nerror: Failed to create domain from /home/ruben/Virtual/KVM/vCluster/shared/var/5/deployment.0\nExitCode: 1\n" 

but
Unknown Error

is shown in oned.log

#3 Updated by Tino Vázquez almost 13 years ago

  • Resolution set to fixed

Also available in: Atom PDF