Bug 1295405 - Unable to change target guest XML during migration
Unable to change target guest XML during migration
Product: Virtualization Tools
Classification: Community
Component: libvirt (Show other bugs)
x86_64 Linux
unspecified Severity unspecified
: ---
: ---
Assigned To: Ján Tomko
Depends On:
  Show dependency treegraph
Reported: 2016-01-04 06:33 EST by Michael Liu
Modified: 2016-03-03 03 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-01-05 09:08:14 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
dommigrate.c (2.50 KB, text/plain)
2016-03-03 03:35 EST, yafu
no flags Details

  None (edit)
Description Michael Liu 2016-01-04 06:33:13 EST
Description of problem:
Unable to change target guest XML during migration, the argument dxml in virDomainMigrateToURI2 is not used in libvirt 1.2.21

Version-Release number of selected component (if applicable):
libvirt 1.2.21

How reproducible:

Steps to Reproduce:
1.start the virtual machine
2.migrate the virtual machine with a new xml, the xml specifies the new config for the guest

Actual results:
the config of guest keeps the original domain configuration

Expected results:

Additional info:
Comment 1 Ján Tomko 2016-01-05 07:47:11 EST
Upstream patch:
Comment 2 Ján Tomko 2016-01-05 09:08:14 EST
Pushed as:
commit 488222800ee6bf3b4f86bcc1aff4b1e8c7526635
Author:     Ján Tomko <jtomko@redhat.com>
CommitDate: 2016-01-05 15:00:03 +0100

    libvirt-domain: fix dxml passing in virDomainMigrateToURI2
    The refactoring in commit a26669d silently ignored the dxml
    parameter of virDomainMigrateToURI2.

git describe: v1.3.0-164-g4882228
Comment 3 yafu 2016-03-03 03:28:27 EST
Passed with libvirt-1.3.1-1.el7.x86_64.

1.Prepare p2p migration environment;

2.Start the guest on the source host;

3.Dump the guest xml:
  #virsh dumpxml rhel7.2 > rhel72.xml 

4.Add the following line in rhel72.xml:

5.Compile the c program in the attachment:
  #gcc dommigrate.c -o dommigrate  -lvirt

6.Execute the program on the source host:
  #./dommigrate qemu+ssh:///system qemu+ssh:// rhel7.2 "`cat rhel72.xml`"

7.After the migration completed, check the guest xml on the target host and can see the line added in step 4:
  #virsh dumpxml rhel7.2
Comment 4 yafu 2016-03-03 03:35 EST
Created attachment 1132685 [details]

Note You need to log in before you can comment on or make changes to this bug.