(qemu) migrate -d tcp:
192.168.122.1:4444
(qemu) info migrate
capabilities: xbzrle: off
Migration status: completed
total time: 4425 milliseconds
downtime: 3 milliseconds
transferred ram: 130338 kbytes
remaining ram: 0 kbytes
total ram: 1057152 kbytes
duplicate: 232613 pages
normal: 32011 pages
normal bytes: 128044 kbytes
(qemu)
==============================================================================================
I use below expect scripts fragment to automate this testing
Code:
.......
expect {
"*qemu*" {send "migrate -d tcp:
192.168.122.1:4444\r\n" }
timeout { exit 2 }
}
sleep 10
puts "run info migrate"
expect {
"(qemu)" {send "\ninfo migrate\r\n"}
# timeout { exit 2 }
}
........
I can't get the below output log with expect scripts, which print from the cmd "info migrate", I'm sure migrate -d tcp:
192.168.122.1:4444 has executed, seem "info migrate" doesn't execute
========================================================================================================================
capabilities: xbzrle: off
Migration status: completed
total time: 4425 milliseconds
downtime: 3 milliseconds
transferred ram: 130338 kbytes
remaining ram: 0 kbytes
total ram: 1057152 kbytes
duplicate: 232613 pages
normal: 32011 pages
normal bytes: 128044 kbytes