Bug 677220

Summary: Live migration with non-shared storage for kvm
Product: Red Hat Enterprise Linux 6 Reporter: Mark Wu <dwu>
Component: libvirtAssignee: Jiri Denemark <jdenemar>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: high    
Version: 6.0CC: berrange, bsarathy, dallan, djuran, dyuan, eblake, juzhang, jwest, jyang, mzhan, shu, tjackson, weizhan, xen-maint, yoyzhang
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libvirt-0.9.4-14.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 739071 (view as bug list) Environment:
Last Closed: 2011-12-06 10:54:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 693512, 739071    

Description Mark Wu 2011-02-14 05:34:25 UTC
RFE:
   1. Customer Name: Pages Jaunes
   2. What is the nature and description of the request?:
- Live migration with non-shared storage for kvm
- or To get support for non-incremental live migration
- or To include the option "--copy-storage-all" with virsh command.

   3. Why does the customer need this? (List the business requirements here): Customer wants to migration Virtual machines from one host to other without the use of a shared storage.

   4. How would the customer like to achieve this? : avail the option "--copy-storage-all" with "virsh migrate"

   5. For each functional requirement listed in question 4, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented.: Migrate VM from one kvm to other kvm host without using shared storage.

   6. Is there already an existing RFE upstream or in Red Hat bugzilla? seems its there in upstream. http://libvirt.org/git/?p=libvirt.git;a=commitdiff_plain;h=b0a3f8b6c546aa710f45900797b38cc5fa0f49d9

   7. How quickly does this need resolved? RHEL 6 minor version
   8. Does this request meet the RHEL Inclusion criteria: yes
   9. List the affected packages: libvirtd
  10. Would the customer be able to assist in testing this functionality if implemented? yes

Comment 2 Suzanne Logcher 2011-03-28 20:30:05 UTC
Since RHEL 6.1 External Beta has begun, and this bug remains 
unresolved, it has been rejected as it is not proposed as an 
exception or blocker.  It has been moved to RHEL 6.2 since 
it is a FutureFeature request.

Comment 3 Tim Jackson 2011-04-14 13:11:36 UTC
I haven't tested it yet, but according to http://libvirt.org/news.html , support for "qemu: live migration with non-shared storage for kvm" was added in libvirt 0.8.2, and it appears that the RHEL6.1 beta includes libvirt 0.8.7.

Comment 4 Bhavna Sarathy 2011-05-25 20:53:08 UTC
Can the customer test RHEL6.1 and report if this feature is available in current release?

Comment 13 Jiri Denemark 2011-09-26 13:12:56 UTC
Documentation patch sent upstream for review: https://www.redhat.com/archives/libvir-list/2011-September/msg00986.html

Comment 14 Jiri Denemark 2011-09-28 08:43:34 UTC
The documentation fix is now upstream as

commit 2c1a3dd878f915318e8fd7c152d899c525f2f916
Author: Jiri Denemark <jdenemar>
Date:   Mon Sep 26 15:09:08 2011 +0200

    virsh: Better document --copy-storage migrate options
    
    Both --copy-storage-{all,inc} options require disk images to be present
    on destination host.

and sent for internal review:
http://post-office.corp.redhat.com/archives/rhvirt-patches/2011-September/msg00897.html

Comment 17 weizhang 2011-09-29 08:58:44 UTC
Verify pass on
kernel-2.6.32-202.el6.x86_64
libvirt-0.9.4-14.el6.x86_64
qemu-kvm-0.12.1.2-2.192.el6.x86_64

check the man virsh, we can see
...
 In both cases the disk images have to exist on destination host, the --copy-storage-...options only tell libvirt to transfer data from the images on source host to the images found at the same place on the destination host.
...

Steps:
1. do #iptables -F  on both hosts
2. start a guest on source host with no shared image
# virsh start guest
3. create a empty image on target host with the same size, directory and name as in source host
# qemu-img create /IMAGE_DIR/guest.img IMAGE_SIZE
4. do migration on source host 
# virsh migrate --live rhel6-1 qemu+ssh://10.66.85.202/system --copy-storage-all
5. after migration, the domain is running on target host.

Comment 18 errata-xmlrpc 2011-12-06 10:54:08 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1513.html