From Fedora Project Wiki

No edit summary
No edit summary
Line 5: Line 5:
# On the source machine, start the guest.
# On the source machine, start the guest.
# Once the guest has fully booted, find out the IP address of the guest (by logging into the guest and running ifconfig, or whatever is equivalent in the guest OS of your choice).  From the source machine, start a ping to the guest:<br><br><code>$ ping <guest-IP></code><br><br>
# Once the guest has fully booted, find out the IP address of the guest (by logging into the guest and running ifconfig, or whatever is equivalent in the guest OS of your choice).  From the source machine, start a ping to the guest:<br><br><code>$ ping <guest-IP></code><br><br>
# Now on the source machine execute:<br><br><code>$ virsh migrate --live <guestname> qemu+ssh://<destination host>/system<br><br>
# Now on the source machine execute:<br><br><code>$ virsh migrate --live <guestname> qemu+ssh://<destination host>/system</code><br><br>
# Shutdown the guest on the destination machine.  Once it's successfully shut down, edit the guest on the source machine and give it random, differing amounts of memory: 4097MB, 8192MB, etc.  Then repeat the test for these differing amounts of memory.
# Shutdown the guest on the destination machine.  Once it's successfully shut down, edit the guest on the source machine and give it random, differing amounts of memory: 4097MB, 8192MB, etc.  Then repeat the test for these differing amounts of memory.
# Repeat the entire test for as many different guest OS's as are relevant.  We would at least like to see the following guests:
# Repeat the entire test for as many different guest OS's as are relevant.  We would at least like to see the following guests:
Line 16: Line 16:
## SUSE
## SUSE
|results=
|results=
# After executing the virsh migrate command, the guest should migrate over to the destination machine, and not be running anymore on the source machine.  Use <code>virsh list</code> on both machines to verify this.  Additionally, the ping that was started in step 3 should continue uninterrupted.
# After executing the virsh migrate command, the guest should migrate over to the destination machine, and not be running anymore on the source machine.  Use <code>$ virsh list</code> on both machines to verify this.  Additionally, the ping that was started in step 3 should continue uninterrupted.
}}
}}
[[Category:Virtualization Live Migration]]
[[Category:Virtualization Live Migration]]

Revision as of 13:53, 16 September 2009

Description

This test case checks that basic live migration using libvirt between two Fedora 12 hosts works correctly. NOTE: this testcase explicitly requires both the source and destination machines to have more than 4GB of memory to safely execute. Since KVM does support swapping, you may be able to get away with less memory in the machine, but your performance will probably suffer.


How to test

  1. On the source machine, edit the guest so that it has exactly 4096MB of memory.
  2. On the source machine, start the guest.
  3. Once the guest has fully booted, find out the IP address of the guest (by logging into the guest and running ifconfig, or whatever is equivalent in the guest OS of your choice). From the source machine, start a ping to the guest:

    $ ping <guest-IP>

  4. Now on the source machine execute:

    $ virsh migrate --live <guestname> qemu+ssh://<destination host>/system

  5. Shutdown the guest on the destination machine. Once it's successfully shut down, edit the guest on the source machine and give it random, differing amounts of memory: 4097MB, 8192MB, etc. Then repeat the test for these differing amounts of memory.
  6. Repeat the entire test for as many different guest OS's as are relevant. We would at least like to see the following guests:
    1. Fedora 12
    2. Fedora 11
    3. RHEL-4
    4. RHEL-5
    5. Windows XP
    6. Windows Vista
    7. SUSE

Expected Results

  1. After executing the virsh migrate command, the guest should migrate over to the destination machine, and not be running anymore on the source machine. Use $ virsh list on both machines to verify this. Additionally, the ping that was started in step 3 should continue uninterrupted.