All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 1358619] [NEW] keep savevm/loadvm and migration cause snapshot crash
@ 2014-08-19  6:35 icbruce
  2014-08-19 14:06 ` [Qemu-devel] [Bug 1358619] " Dr. David Alan Gilbert
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: icbruce @ 2014-08-19  6:35 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

--Version:  qemu 2.1.0  public release
--OS:          CentOS release 6.4
--gcc:         4.4.7

Hi:
     I found problems when doing some tests on qemu migration and savevm/loadvm.
On my experiment, a quest is migrated between two same host back and forth. 
Source host would savevm after migration completed and incoming host loadvm before migration coming.

image=./image/centos-1.qcow2

====Migration Part====
qemu-system-x86_64 \
        -qmp tcp:$host_ip:4451,server,nowait \
        -drive file=$image \
        --enable-kvm \
        -monitor stdio \
        -m 8192 \
        -device virtio-net-pci,netdev=net0,mac=$mac \
        -netdev tap,id=net0,script=./qemu-ifup

====Incoming Part====
qemu-system-x86_64 \
        -qmp tcp:$host_ip:4451,server,nowait \
        -incoming tcp:0:4449 \
        --enable-kvm \
        -monitor stdio \
        -drive file=$image \
        -m 8192 \
        -device virtio-net-pci,netdev=net0,mac=$mac \
        -netdev tap,id=net0,script=./qemu-ifup


Command lines:

host1 $:  qemu-system-x86_64 ........  //migration part
host2 $:  qemu-system-x86_64 ...incoming... //incoming part

After finishing boot

host1 (qemu) : migrate tcp:host2:4449
host1 (qemu) : savevm s1
host1 (qemu) : quit
host1 $: qemu-system-x86_64 ...incoming... //incoming part
host1 (qemu) : loadvm s1

host2 (qemu) : migrate tcp:host1:4449
host2 (qemu) : savevm s2
host2 (qemu) : quit
host2 $:  qemu-system-x86_64 ...incoming... //incoming part
host2 (qemu) : loadvm s2

host1 (qemu) : migrate tcp:host2:4449
host1 (qemu) : savevm s3
host1 (qemu) : quit
host1 $: qemu-system-x86_64 ...incoming... //incoming part
host1 (qemu) : loadvm s3

I wish those operation can be success every time. 
However problem happened irregularly when loadvm and error messages are not the same.

host1 (qemu) :  loadvm s3
qcow2: Preventing invalid write on metadata (overlaps with active L1 table); image marked as corrupt.
Error -5 while activating snapshot 's3' on 'ide0-hd0'

or

host2 (qemu) : loadvm s2
Error -22 while loading VM state


I have done some sample test on savevm/loadvm
On same host
(qemu) savevm test1
(qemu) loadvm test1
(qemu) savevm test2
(qemu) loadvm test2
(qemu) savevm test3
(qemu) loadvm test3
(qemu) savevm test4
(qemu) loadvm test4
(qemu) savevm test5
(qemu) loadvm test5
(qemu) savevm test6
(qemu) loadvm test6

This is OK. No any problem.


Any idea? 
I think it is related to migration.

** Affects: qemu
     Importance: Undecided
         Status: New


** Tags: loadvm migration savevm

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1358619

Title:
  keep savevm/loadvm and migration cause snapshot crash

Status in QEMU:
  New

Bug description:
  --Version:  qemu 2.1.0  public release
  --OS:          CentOS release 6.4
  --gcc:         4.4.7

  Hi:
       I found problems when doing some tests on qemu migration and savevm/loadvm.
  On my experiment, a quest is migrated between two same host back and forth. 
  Source host would savevm after migration completed and incoming host loadvm before migration coming.

  image=./image/centos-1.qcow2

  ====Migration Part====
  qemu-system-x86_64 \
          -qmp tcp:$host_ip:4451,server,nowait \
          -drive file=$image \
          --enable-kvm \
          -monitor stdio \
          -m 8192 \
          -device virtio-net-pci,netdev=net0,mac=$mac \
          -netdev tap,id=net0,script=./qemu-ifup

  ====Incoming Part====
  qemu-system-x86_64 \
          -qmp tcp:$host_ip:4451,server,nowait \
          -incoming tcp:0:4449 \
          --enable-kvm \
          -monitor stdio \
          -drive file=$image \
          -m 8192 \
          -device virtio-net-pci,netdev=net0,mac=$mac \
          -netdev tap,id=net0,script=./qemu-ifup

  
  Command lines:

  host1 $:  qemu-system-x86_64 ........  //migration part
  host2 $:  qemu-system-x86_64 ...incoming... //incoming part

  After finishing boot

  host1 (qemu) : migrate tcp:host2:4449
  host1 (qemu) : savevm s1
  host1 (qemu) : quit
  host1 $: qemu-system-x86_64 ...incoming... //incoming part
  host1 (qemu) : loadvm s1

  host2 (qemu) : migrate tcp:host1:4449
  host2 (qemu) : savevm s2
  host2 (qemu) : quit
  host2 $:  qemu-system-x86_64 ...incoming... //incoming part
  host2 (qemu) : loadvm s2

  host1 (qemu) : migrate tcp:host2:4449
  host1 (qemu) : savevm s3
  host1 (qemu) : quit
  host1 $: qemu-system-x86_64 ...incoming... //incoming part
  host1 (qemu) : loadvm s3

  I wish those operation can be success every time. 
  However problem happened irregularly when loadvm and error messages are not the same.

  host1 (qemu) :  loadvm s3
  qcow2: Preventing invalid write on metadata (overlaps with active L1 table); image marked as corrupt.
  Error -5 while activating snapshot 's3' on 'ide0-hd0'

  or

  host2 (qemu) : loadvm s2
  Error -22 while loading VM state

  
  I have done some sample test on savevm/loadvm
  On same host
  (qemu) savevm test1
  (qemu) loadvm test1
  (qemu) savevm test2
  (qemu) loadvm test2
  (qemu) savevm test3
  (qemu) loadvm test3
  (qemu) savevm test4
  (qemu) loadvm test4
  (qemu) savevm test5
  (qemu) loadvm test5
  (qemu) savevm test6
  (qemu) loadvm test6

  This is OK. No any problem.

  
  Any idea? 
  I think it is related to migration.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1358619/+subscriptions

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Qemu-devel] [Bug 1358619] Re: keep savevm/loadvm and migration cause snapshot crash
  2014-08-19  6:35 [Qemu-devel] [Bug 1358619] [NEW] keep savevm/loadvm and migration cause snapshot crash icbruce
@ 2014-08-19 14:06 ` Dr. David Alan Gilbert
  2014-08-19 16:33 ` icbruce
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Dr. David Alan Gilbert @ 2014-08-19 14:06 UTC (permalink / raw)
  To: qemu-devel

Hi,
  Can I just check, when you do the incoming migrate, do you wait for the incoming migrate to finish before you do the loadvm, or do you do the loadvm during the incoming migrate?

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1358619

Title:
  keep savevm/loadvm and migration cause snapshot crash

Status in QEMU:
  New

Bug description:
  --Version:  qemu 2.1.0  public release
  --OS:          CentOS release 6.4
  --gcc:         4.4.7

  Hi:
       I found problems when doing some tests on qemu migration and savevm/loadvm.
  On my experiment, a quest is migrated between two same host back and forth. 
  Source host would savevm after migration completed and incoming host loadvm before migration coming.

  image=./image/centos-1.qcow2

  ====Migration Part====
  qemu-system-x86_64 \
          -qmp tcp:$host_ip:4451,server,nowait \
          -drive file=$image \
          --enable-kvm \
          -monitor stdio \
          -m 8192 \
          -device virtio-net-pci,netdev=net0,mac=$mac \
          -netdev tap,id=net0,script=./qemu-ifup

  ====Incoming Part====
  qemu-system-x86_64 \
          -qmp tcp:$host_ip:4451,server,nowait \
          -incoming tcp:0:4449 \
          --enable-kvm \
          -monitor stdio \
          -drive file=$image \
          -m 8192 \
          -device virtio-net-pci,netdev=net0,mac=$mac \
          -netdev tap,id=net0,script=./qemu-ifup

  
  Command lines:

  host1 $:  qemu-system-x86_64 ........  //migration part
  host2 $:  qemu-system-x86_64 ...incoming... //incoming part

  After finishing boot

  host1 (qemu) : migrate tcp:host2:4449
  host1 (qemu) : savevm s1
  host1 (qemu) : quit
  host1 $: qemu-system-x86_64 ...incoming... //incoming part
  host1 (qemu) : loadvm s1

  host2 (qemu) : migrate tcp:host1:4449
  host2 (qemu) : savevm s2
  host2 (qemu) : quit
  host2 $:  qemu-system-x86_64 ...incoming... //incoming part
  host2 (qemu) : loadvm s2

  host1 (qemu) : migrate tcp:host2:4449
  host1 (qemu) : savevm s3
  host1 (qemu) : quit
  host1 $: qemu-system-x86_64 ...incoming... //incoming part
  host1 (qemu) : loadvm s3

  I wish those operation can be success every time. 
  However problem happened irregularly when loadvm and error messages are not the same.

  host1 (qemu) :  loadvm s3
  qcow2: Preventing invalid write on metadata (overlaps with active L1 table); image marked as corrupt.
  Error -5 while activating snapshot 's3' on 'ide0-hd0'

  or

  host2 (qemu) : loadvm s2
  Error -22 while loading VM state

  
  I have done some sample test on savevm/loadvm
  On same host
  (qemu) savevm test1
  (qemu) loadvm test1
  (qemu) savevm test2
  (qemu) loadvm test2
  (qemu) savevm test3
  (qemu) loadvm test3
  (qemu) savevm test4
  (qemu) loadvm test4
  (qemu) savevm test5
  (qemu) loadvm test5
  (qemu) savevm test6
  (qemu) loadvm test6

  This is OK. No any problem.

  
  Any idea? 
  I think it is related to migration.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1358619/+subscriptions

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Qemu-devel] [Bug 1358619] Re: keep savevm/loadvm and migration cause snapshot crash
  2014-08-19  6:35 [Qemu-devel] [Bug 1358619] [NEW] keep savevm/loadvm and migration cause snapshot crash icbruce
  2014-08-19 14:06 ` [Qemu-devel] [Bug 1358619] " Dr. David Alan Gilbert
@ 2014-08-19 16:33 ` icbruce
  2017-09-07 19:15 ` Thomas Huth
  2017-11-07  4:17 ` Launchpad Bug Tracker
  3 siblings, 0 replies; 5+ messages in thread
From: icbruce @ 2014-08-19 16:33 UTC (permalink / raw)
  To: qemu-devel

I execute incoming migration command and wait there. Then I do loadvm.
After finishing loadvm, type migration command on source host to start
migration.

In fact, This action is useless for vm status before migration. I just
modify some codes and then found this bug.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1358619

Title:
  keep savevm/loadvm and migration cause snapshot crash

Status in QEMU:
  New

Bug description:
  --Version:  qemu 2.1.0  public release
  --OS:          CentOS release 6.4
  --gcc:         4.4.7

  Hi:
       I found problems when doing some tests on qemu migration and savevm/loadvm.
  On my experiment, a quest is migrated between two same host back and forth. 
  Source host would savevm after migration completed and incoming host loadvm before migration coming.

  image=./image/centos-1.qcow2

  ====Migration Part====
  qemu-system-x86_64 \
          -qmp tcp:$host_ip:4451,server,nowait \
          -drive file=$image \
          --enable-kvm \
          -monitor stdio \
          -m 8192 \
          -device virtio-net-pci,netdev=net0,mac=$mac \
          -netdev tap,id=net0,script=./qemu-ifup

  ====Incoming Part====
  qemu-system-x86_64 \
          -qmp tcp:$host_ip:4451,server,nowait \
          -incoming tcp:0:4449 \
          --enable-kvm \
          -monitor stdio \
          -drive file=$image \
          -m 8192 \
          -device virtio-net-pci,netdev=net0,mac=$mac \
          -netdev tap,id=net0,script=./qemu-ifup

  
  Command lines:

  host1 $:  qemu-system-x86_64 ........  //migration part
  host2 $:  qemu-system-x86_64 ...incoming... //incoming part

  After finishing boot

  host1 (qemu) : migrate tcp:host2:4449
  host1 (qemu) : savevm s1
  host1 (qemu) : quit
  host1 $: qemu-system-x86_64 ...incoming... //incoming part
  host1 (qemu) : loadvm s1

  host2 (qemu) : migrate tcp:host1:4449
  host2 (qemu) : savevm s2
  host2 (qemu) : quit
  host2 $:  qemu-system-x86_64 ...incoming... //incoming part
  host2 (qemu) : loadvm s2

  host1 (qemu) : migrate tcp:host2:4449
  host1 (qemu) : savevm s3
  host1 (qemu) : quit
  host1 $: qemu-system-x86_64 ...incoming... //incoming part
  host1 (qemu) : loadvm s3

  I wish those operation can be success every time. 
  However problem happened irregularly when loadvm and error messages are not the same.

  host1 (qemu) :  loadvm s3
  qcow2: Preventing invalid write on metadata (overlaps with active L1 table); image marked as corrupt.
  Error -5 while activating snapshot 's3' on 'ide0-hd0'

  or

  host2 (qemu) : loadvm s2
  Error -22 while loading VM state

  
  I have done some sample test on savevm/loadvm
  On same host
  (qemu) savevm test1
  (qemu) loadvm test1
  (qemu) savevm test2
  (qemu) loadvm test2
  (qemu) savevm test3
  (qemu) loadvm test3
  (qemu) savevm test4
  (qemu) loadvm test4
  (qemu) savevm test5
  (qemu) loadvm test5
  (qemu) savevm test6
  (qemu) loadvm test6

  This is OK. No any problem.

  
  Any idea? 
  I think it is related to migration.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1358619/+subscriptions

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Qemu-devel] [Bug 1358619] Re: keep savevm/loadvm and migration cause snapshot crash
  2014-08-19  6:35 [Qemu-devel] [Bug 1358619] [NEW] keep savevm/loadvm and migration cause snapshot crash icbruce
  2014-08-19 14:06 ` [Qemu-devel] [Bug 1358619] " Dr. David Alan Gilbert
  2014-08-19 16:33 ` icbruce
@ 2017-09-07 19:15 ` Thomas Huth
  2017-11-07  4:17 ` Launchpad Bug Tracker
  3 siblings, 0 replies; 5+ messages in thread
From: Thomas Huth @ 2017-09-07 19:15 UTC (permalink / raw)
  To: qemu-devel

Triaging old bug tickets... can you still reproduce this issue with the
latest version of QEMU? Or could we close this ticket nowadays?

** Changed in: qemu
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1358619

Title:
  keep savevm/loadvm and migration cause snapshot crash

Status in QEMU:
  Incomplete

Bug description:
  --Version:  qemu 2.1.0  public release
  --OS:          CentOS release 6.4
  --gcc:         4.4.7

  Hi:
       I found problems when doing some tests on qemu migration and savevm/loadvm.
  On my experiment, a quest is migrated between two same host back and forth. 
  Source host would savevm after migration completed and incoming host loadvm before migration coming.

  image=./image/centos-1.qcow2

  ====Migration Part====
  qemu-system-x86_64 \
          -qmp tcp:$host_ip:4451,server,nowait \
          -drive file=$image \
          --enable-kvm \
          -monitor stdio \
          -m 8192 \
          -device virtio-net-pci,netdev=net0,mac=$mac \
          -netdev tap,id=net0,script=./qemu-ifup

  ====Incoming Part====
  qemu-system-x86_64 \
          -qmp tcp:$host_ip:4451,server,nowait \
          -incoming tcp:0:4449 \
          --enable-kvm \
          -monitor stdio \
          -drive file=$image \
          -m 8192 \
          -device virtio-net-pci,netdev=net0,mac=$mac \
          -netdev tap,id=net0,script=./qemu-ifup

  
  Command lines:

  host1 $:  qemu-system-x86_64 ........  //migration part
  host2 $:  qemu-system-x86_64 ...incoming... //incoming part

  After finishing boot

  host1 (qemu) : migrate tcp:host2:4449
  host1 (qemu) : savevm s1
  host1 (qemu) : quit
  host1 $: qemu-system-x86_64 ...incoming... //incoming part
  host1 (qemu) : loadvm s1

  host2 (qemu) : migrate tcp:host1:4449
  host2 (qemu) : savevm s2
  host2 (qemu) : quit
  host2 $:  qemu-system-x86_64 ...incoming... //incoming part
  host2 (qemu) : loadvm s2

  host1 (qemu) : migrate tcp:host2:4449
  host1 (qemu) : savevm s3
  host1 (qemu) : quit
  host1 $: qemu-system-x86_64 ...incoming... //incoming part
  host1 (qemu) : loadvm s3

  I wish those operation can be success every time. 
  However problem happened irregularly when loadvm and error messages are not the same.

  host1 (qemu) :  loadvm s3
  qcow2: Preventing invalid write on metadata (overlaps with active L1 table); image marked as corrupt.
  Error -5 while activating snapshot 's3' on 'ide0-hd0'

  or

  host2 (qemu) : loadvm s2
  Error -22 while loading VM state

  
  I have done some sample test on savevm/loadvm
  On same host
  (qemu) savevm test1
  (qemu) loadvm test1
  (qemu) savevm test2
  (qemu) loadvm test2
  (qemu) savevm test3
  (qemu) loadvm test3
  (qemu) savevm test4
  (qemu) loadvm test4
  (qemu) savevm test5
  (qemu) loadvm test5
  (qemu) savevm test6
  (qemu) loadvm test6

  This is OK. No any problem.

  
  Any idea? 
  I think it is related to migration.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1358619/+subscriptions

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Qemu-devel] [Bug 1358619] Re: keep savevm/loadvm and migration cause snapshot crash
  2014-08-19  6:35 [Qemu-devel] [Bug 1358619] [NEW] keep savevm/loadvm and migration cause snapshot crash icbruce
                   ` (2 preceding siblings ...)
  2017-09-07 19:15 ` Thomas Huth
@ 2017-11-07  4:17 ` Launchpad Bug Tracker
  3 siblings, 0 replies; 5+ messages in thread
From: Launchpad Bug Tracker @ 2017-11-07  4:17 UTC (permalink / raw)
  To: qemu-devel

[Expired for QEMU because there has been no activity for 60 days.]

** Changed in: qemu
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1358619

Title:
  keep savevm/loadvm and migration cause snapshot crash

Status in QEMU:
  Expired

Bug description:
  --Version:  qemu 2.1.0  public release
  --OS:          CentOS release 6.4
  --gcc:         4.4.7

  Hi:
       I found problems when doing some tests on qemu migration and savevm/loadvm.
  On my experiment, a quest is migrated between two same host back and forth. 
  Source host would savevm after migration completed and incoming host loadvm before migration coming.

  image=./image/centos-1.qcow2

  ====Migration Part====
  qemu-system-x86_64 \
          -qmp tcp:$host_ip:4451,server,nowait \
          -drive file=$image \
          --enable-kvm \
          -monitor stdio \
          -m 8192 \
          -device virtio-net-pci,netdev=net0,mac=$mac \
          -netdev tap,id=net0,script=./qemu-ifup

  ====Incoming Part====
  qemu-system-x86_64 \
          -qmp tcp:$host_ip:4451,server,nowait \
          -incoming tcp:0:4449 \
          --enable-kvm \
          -monitor stdio \
          -drive file=$image \
          -m 8192 \
          -device virtio-net-pci,netdev=net0,mac=$mac \
          -netdev tap,id=net0,script=./qemu-ifup

  
  Command lines:

  host1 $:  qemu-system-x86_64 ........  //migration part
  host2 $:  qemu-system-x86_64 ...incoming... //incoming part

  After finishing boot

  host1 (qemu) : migrate tcp:host2:4449
  host1 (qemu) : savevm s1
  host1 (qemu) : quit
  host1 $: qemu-system-x86_64 ...incoming... //incoming part
  host1 (qemu) : loadvm s1

  host2 (qemu) : migrate tcp:host1:4449
  host2 (qemu) : savevm s2
  host2 (qemu) : quit
  host2 $:  qemu-system-x86_64 ...incoming... //incoming part
  host2 (qemu) : loadvm s2

  host1 (qemu) : migrate tcp:host2:4449
  host1 (qemu) : savevm s3
  host1 (qemu) : quit
  host1 $: qemu-system-x86_64 ...incoming... //incoming part
  host1 (qemu) : loadvm s3

  I wish those operation can be success every time. 
  However problem happened irregularly when loadvm and error messages are not the same.

  host1 (qemu) :  loadvm s3
  qcow2: Preventing invalid write on metadata (overlaps with active L1 table); image marked as corrupt.
  Error -5 while activating snapshot 's3' on 'ide0-hd0'

  or

  host2 (qemu) : loadvm s2
  Error -22 while loading VM state

  
  I have done some sample test on savevm/loadvm
  On same host
  (qemu) savevm test1
  (qemu) loadvm test1
  (qemu) savevm test2
  (qemu) loadvm test2
  (qemu) savevm test3
  (qemu) loadvm test3
  (qemu) savevm test4
  (qemu) loadvm test4
  (qemu) savevm test5
  (qemu) loadvm test5
  (qemu) savevm test6
  (qemu) loadvm test6

  This is OK. No any problem.

  
  Any idea? 
  I think it is related to migration.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1358619/+subscriptions

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-11-07  4:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-19  6:35 [Qemu-devel] [Bug 1358619] [NEW] keep savevm/loadvm and migration cause snapshot crash icbruce
2014-08-19 14:06 ` [Qemu-devel] [Bug 1358619] " Dr. David Alan Gilbert
2014-08-19 16:33 ` icbruce
2017-09-07 19:15 ` Thomas Huth
2017-11-07  4:17 ` Launchpad Bug Tracker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.