Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using KVM through virt-manager to test the performance in terms of migration speed on different types of network. However, I can't find any documents detailing on measuring the migration time. With libvirt, you basically just execute the migration request and then poll later to check when the migration is finished.

I'm wondering if there is anyway to measure such migration time easily?

share|improve this question

Do it from the command line and use the standard unix time command:

time virsh migrate foo destination-uri options...

for specifics about the command run virsh migrate help from a shell.

Edit: Forgot to add - use the --verbose option to have it show progress rather sending the migration process to the background.

share|improve this answer
Thank you. I was wondering how to keep this process foreground until the migration completes – Andy Aug 8 '12 at 3:05
The verbose option is not available in my virsh. :-/ – Andy Aug 8 '12 at 4:51
launch virsh without any commands and issue the command "help migrate" to see the various options available. I haven't heard of a version without this. – rnxrx Aug 8 '12 at 5:02
Yes I was on Debian. Just switched to Fedora and the option is available – Andy Aug 9 '12 at 5:27

Haven't checked personally, but what about libvirt logs (and NTP synced clocks)?

share|improve this answer
The log is useful, but the granularity is insufficient – Andy Aug 8 '12 at 3:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.