colo: vm crash with segmentation fault
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I use Arch Linux x86_64
Zhang Chen's(https:/
Following document 'COLO-FT.txt',
I test colo feature on my hosts
I run this command
Primary:
sudo /usr/local/
-device piix3-usb-uhci \
-device usb-tablet -netdev tap,id=
-device virtio-
-drive if=virtio,
children.
children.
Secondary:
sudo /usr/local/
-device piix3-usb-uhci \
-device usb-tablet -netdev tap,id=
-device virtio-
-drive if=none,
-drive if=virtio,
file.driver=
file.file.
file.backing.
file.backing.
file.backing.
-incoming tcp:0:8888
Secondary:
{'execute'
{ 'execute': 'nbd-server-start',
'arguments': {'addr': {'type': 'inet', 'data': {'host': '192.168.0.34', 'port': '8889'} } }
}
{'execute': 'nbd-server-add', 'arguments': {'device': 'secondary-disk0', 'writable': true } }
Primary:
{'execute'
{ 'execute': 'human-
'arguments': {'command-line': 'drive_add -n buddy driver=
{ 'execute'
{ 'execute': 'migrate-
'arguments': {'capabilities': [ {'capability': 'x-colo', 'state': true } ] } }
{ 'execute': 'migrate', 'arguments': {'uri': 'tcp:192.
And two VM with cash
Primary:
{"timestamp": {"seconds": 1520763655, "microseconds": 511415}, "event": "RESUME"}
[1] 329 segmentation fault sudo /usr/local/
Secondary:
{"timestamp": {"seconds": 1520763655, "microseconds": 510907}, "event": "RESUME"}
[1] 367 segmentation fault sudo /usr/local/
description: | updated |
tags: | added: colo |
description: | updated |
description: | updated |
description: | updated |
summary: |
- colo: secondary vm crash when execute x-colo-lost-heartbeat + colo: vm crash with segmentation fault |
description: | updated |
description: | updated |
Changed in qemu: | |
status: | New → Fix Released |
Hi Suiheng,
Sorry for slow reply, the document 'COLO-FT.txt' in qemu is out of date, I /wiki.qemu. org/Features/ COLO
will update it lately.
Please follow this step to run COLO(the command has been changed).
https:/
Thanks
Zhang Chen
On Fri, Mar 9, 2018 at 10:54 AM, 李穗恒 <email address hidden> wrote:
> Public bug reported: /github. com/ qemu/commits/ colo-with- virtio- net-internal- jul10) hn0,vhost= off \ net-pci, id=net- pci0,netdev= hn0 \ id=colo- disk0,driver= quorum, read-pattern= threshold= 1,children. 0.file. filename= /var/ images/ 1.raw,children. 0.driver= raw -S hn0,vhost= off \ net-pci, id=net- pci0,netdev= hn0 \ id=colo- disk0,file. filename= /var/lib/ libvirt/ 2.raw,driver= raw,node- name=node0 \ id=active- disk0,driver= replication, mode=secondary, \ qcow2,top- id=active- disk0,\ filename= /mnt/ramfs/ active_ disk.img, \ driver= qcow2,\ file.filename= /mnt/ramfs/ hidden_ disk.img, \ backing= colo-disk0 \ :'qmp_capabilit ies'} :'qmp_capabilit ies'} monitor- command' , replication, mode=primary, file.driver= nbd,file. 168.0.34, file.port= 8889,file. export= colo-disk0, nbd_client0' }} :'x-blockdev- change' , 'arguments' :{'parent' : 'colo-disk0', set-capabilitie s', 168.0.34: 8888' } } set-parameters' , 'arguments':{ delay': 2000 } } change' , 'arguments': {'parent': 'colo-disk0', monitor- command' ,'arguments' : {'command-line': lost-heartbeat' } lost-heartbeat. Primary run Secondary cash lost-heartbeat' }
>
> I use Arch Linux x86_64
> both qemu 2.11.1 and Zhang Chen's(https:/
> zhangckid/
> Following document 'COLO-FT.txt',
> I test colo feature on my hosts
>
> I run this command
> Primary:
> sudo qemu-system-x86_64 -boot c -enable-kvm -m 2048 -smp 2 -qmp stdio
> -name primary \
> -device piix3-usb-uhci \
> -device usb-tablet -netdev tap,id=
> -device virtio-
> -drive if=virtio,
> fifo,vote-
> lib/libvirt/
>
> Secondary:
> sudo qemu-system-x86_64 -boot c -enable-kvm -m 2048 -smp 2 -qmp stdio
> -name secondary \
> -device piix3-usb-uhci \
> -device usb-tablet -netdev tap,id=
> -device virtio-
> -drive if=none,
> images/
> -drive if=virtio,
> file.driver=
> file.file.
> file.backing.
> file.backing.
> file.backing.
> -incoming tcp:0:8888
>
> Secondary:
> {'execute'
> { 'execute': 'nbd-server-start',
> 'arguments': {'addr': {'type': 'inet', 'data': {'host': '192.168.0.33',
> 'port': '8889'} } }
> }
> {'execute': 'nbd-server-add', 'arguments': {'device': 'colo-disk0',
> 'writable': true } }
>
> Primary:
> {'execute'
> { 'execute': 'human-
> 'arguments': {'command-line': 'drive_add -n buddy
> driver=
> host=192.
> node-name=
> { 'execute'
> 'node': 'nbd_client0' } }
> { 'execute': 'migrate-
> 'arguments': {'capabilities': [ {'capability': 'x-colo', 'state':
> true } ] } }
> { 'execute': 'migrate', 'arguments': {'uri': 'tcp:192.
> { 'execute': 'migrate-
> 'x-checkpoint-
>
> Above are all OK.Two VM syncing.
>
> Primary:
> { 'execute': 'x-blockdev-
> 'child': 'children.1'}}
> { 'execute': 'human-
> 'drive_del blk-buddy0'}}
>
> Secondary:
> { 'execute': 'nbd-server-stop' }
> { 'execute': 'x-colo-
>
> But When I execute x-colo-
>
> { 'execute': 'nbd-server-stop' }
> {"return": {}}
> qemu-system-x86_64: Disconnect client, due to: Unexpected end-of-file
> before all bytes were read
> { 'execute': 'x-colo-
> {"return"...