mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09: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:
1 parent
e45889f989
commit
bb13229869
2 files changed
+2
-2
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user