Re: [Nbd] [Qemu-devel] Hibernate and qemu-nbd
>From: Wouter Verhelst [mailto:w@...112...]
>Sent: Thursday, September 26, 2013 12:46 PM
>To: 'Mark Trumpold'
>Cc: email@example.com, 'Stefan Hajnoczi',
>bonzini@...1390..., 'Paul Clements', qemu-devel@...530...
>Subject: Re: [Nbd] [Qemu-devel] Hibernate and qemu-nbd
>On 25-09-13 16:42, Mark Trumpold wrote:
>> Hello Wouter,
>> Thank you for your input.
>> I replayed the test as follows:
>> -> qemu-nbd -p 2000 -persist /root/qemu/q1.img &
>> -> nbd-client localhost 2000 /dev/nbd0
>nbd-client -persist localhost 2000 /dev/nbd0
>This end should point toward the ground if you want to go to space.
>If it starts pointing toward space you are having a bad problem and you
>will not go to space today.
> -- http://xkcd.com/1133/
Sorry guys, I did the email by memory (bad idea).
Actually, what I did:
849 qemu-nbd -p 2000 /root/qemu/q1.img &
850 nbd-client -persist localhost 2000 /dev/nbd0
851 ps aux | grep nbd
852 echo reboot >/sys/power/disk
853 echo disk >/sys/power/state
At the prompt after the hibernate (test mode: 'reboot')
I see the following:
/build/buildd-qemu_0.12.5+dfsg-3squeeze3-amd64-9wXBnc/qemu-0.12.5+dfsg/nbd.c:nbd_receive_request():L465: read failed
+ Done qemu-nbd -p 2000 /root/qemu/q1.img
Looks like 'qemu-nbd' exited on some signal. No other indicators.
I see no other relevant messages in syslog.
In dmesg I see the message (as expected):
Sep 26 13:27:13 debian-test kernel: [606754.367766] Freezing user space processes ...
Sep 26 13:27:13 debian-test kernel: [606754.367840] nbd (pid 8432: nbd-client) got signal 0
Sep 26 13:27:13 debian-test kernel: [606754.367844] block nbd0: shutting down socket
Sep 26 13:27:13 debian-test kernel: [606754.367872] block nbd0: Receive control failed (result -4)
Sep 26 13:27:13 debian-test kernel: [606754.367890] block nbd0: queue cleared