Skip to content

Commit

Permalink
Added default connection string to get node information, and use syst…
Browse files Browse the repository at this point in the history
…em to migrate VMs

git-svn-id: http://svn.opennebula.org/one/trunk@966 3034c82b-c49b-4eb3-8279-a7acafdc01c0
  • Loading branch information
ruben committed Feb 5, 2010
1 parent 815f4a3 commit f3515d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/im_mad/kvm/kvm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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\)')
Expand Down
2 changes: 1 addition & 1 deletion src/vmm_mad/kvm/one_vmm_kvm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f3515d4

Please sign in to comment.