Permalink
Browse files

Added default connection string to get node information, and use syst…

…em to migrate VMs

git-svn-id: http://svn.opennebula.org/one/trunk@966 3034c82b-c49b-4eb3-8279-a7acafdc01c0
  • Loading branch information...
1 parent 815f4a3 commit f3515d463c24dc2bfd6ad349f660943e48b9085b ruben committed Feb 5, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/im_mad/kvm/kvm.rb
  2. +1 −1 src/vmm_mad/kvm/one_vmm_kvm.rb
View
@@ -22,7 +22,7 @@
# TODO : use virsh freecell when available
######
-nodeinfo_text = `virsh nodeinfo`
+nodeinfo_text = `virsh -c qemu:///system nodeinfo`
nodeinfo_text.split(/\n/).each{|line|
if line.match('^CPU\(s\)')
@@ -132,7 +132,7 @@ def restore(id, host, deploy_id, file)
def migrate(id, host, deploy_id, dest_host)
cmd = "#{LIBVIRT[:migrate]} #{deploy_id} "\
- "#{QEMU_PROTOCOL}://#{dest_host}/session"
+ "#{QEMU_PROTOCOL}://#{dest_host}/system"
ssh_action(cmd, id, host, :migrate)
end

0 comments on commit f3515d4

Please sign in to comment.