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:
parent
e45889f989
commit
bb13229869
@ -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 @@ 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user