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 3. Actual results: the config of guest keeps the original domain configuration Expected results: Additional info:
Upstream patch: https://www.redhat.com/archives/libvir-list/2016-January/msg00058.html
Pushed as: commit 488222800ee6bf3b4f86bcc1aff4b1e8c7526635 Author: Ján Tomko <jtomko> 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. https://bugzilla.redhat.com/show_bug.cgi?id=1295405 git describe: v1.3.0-164-g4882228
Passed with libvirt-1.3.1-1.el7.x86_64. steps: 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: <title>test</title> 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://10.73.196.125/system 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 ... <title>test</title> ...
Created attachment 1132685 [details] dommigrate.c