1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

Added default connection string to get node information, and use system to migrate VMs

git-svn-id: http://svn.opennebula.org/one/trunk@966 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
Rubén S. Montero 2010-02-05 22:29:44 +00:00
parent e45889f989
commit bb13229869
2 changed files with 2 additions and 2 deletions

View File

@ -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\)')

View File

@ -132,7 +132,7 @@ class LibVirtDriver < VirtualMachineDriver
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