[Pkg-libvirt-maintainers] Bug#580956: Bug#580956: libvirt-bin: restore of kvm virtual machine is broken

Andreas Bießmann biessmann at corscience.de
Tue May 11 11:40:17 UTC 2010


Hi Günther,

Am 10.05.2010 18:34, schrieb Guido Günther:
>> Can anyone else reproduce this issue?
> Suspend/resume works here.
Yes, I know ... but this is not the problem! I'll try to describe it
more clear.

 1. virsh suspend/resume works perfectely!
 2. virsh save seems to work (RAM snapshot is saved, contains somthing
looking as a header)
 3. virsh restore does not work (complains about missing header) but
starts the vm anyway
 4. The VM is unusable after one restoring a saved state

Unusable means:
My etch test-vm is not answering any network connection
(ping/ssh-server) after restore. The virt-manager monitor seems to work
(could still see the login prompt), but when I try to login and hitting
return after username I get some lines of dmesg rather than 'Password:'
prompt. Even one active program (eg top) on first console is frozen
after safe/restore.

> Please see:
> 
> http://wiki.debian.org/libvirt#Bugreports.2BAC8-Debugging
> 
> for debugging help.

libvirt debug log is attached, I startet a session including start vm,
save running vm, restore saved vm and try to use restored vm with vnc
frontend included in virt-manager and remote via ssh to virtual network
adapter.

vm's logfile is also attached.

libvirtd.conf's diff is here:

---8<---
--- /usr/share/doc/libvirt-bin/examples/libvirtd.conf	2010-05-09
14:28:10.000000000 +0200
+++ /etc/libvirt/libvirtd.conf	2010-05-11 12:59:23.000000000 +0200
@@ -85,7 +85,7 @@ unix_sock_group = "libvirt"
 #
 # Default allows any user. If setting group ownership may want to
 # restrict this to:
-#unix_sock_ro_perms = "0777"
+#unix_sock_ro_perms = "0770"

 # Set the UNIX socket permissions for the R/W socket. This is used
 # for full management of VMs
@@ -272,6 +272,7 @@ auth_unix_rw = "none"
 # Logging level: 4 errors, 3 warnings, 2 informations, 1 debug
 # basically 1 will log everything possible
 #log_level = 3
+log_level = 1

 # Logging filters:
 # A filter allows to select a different logging level for a given category
@@ -312,3 +313,4 @@ auth_unix_rw = "none"
 # e.g.:
 # log_outputs="3:syslog:libvirtd"
 # to log all warnings and errors to syslog under the libvirtd ident
+log_outputs="1:file:/tmp/libvirt.log"
--->8---

This is the beginning of saved state file:
---8<---
abiessmann at azuregos:/tmp$ sudo hexdump etch7.sav | head -10
0000000 694c 7662 7269 5174 6d65 6475 6153 6576
0000010 0002 0000 07a4 0000 0001 0000 0000 0000
0000020 0000 0000 0000 0000 0000 0000 0000 0000
*
0000050 0000 0000 0000 0000 0000 0000 643c 6d6f
0000060 6961 206e 7974 6570 273d 766b 276d 6920
0000070 3d64 3127 3e27 200a 3c20 616e 656d 653e
0000080 6374 3c68 6e2f 6d61 3e65 200a 3c20 7575
0000090 6469 363e 6665 3565 6361 2d66 3065 6461
00000a0 372d 3834 2d35 3138 3135 382d 6665 3863
--->8---
Which has at least correct marker ...
---8<---
0000000   L   i   b   v   i   r   t   Q   e   m   u   d   S   a   v   e
--->8---

Do You need more additional information?

regards
Andreas Bießmann
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirt.log.gz
Type: application/x-gzip
Size: 272203 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-libvirt-maintainers/attachments/20100511/3da40e7d/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: etch.log.gz
Type: application/x-gzip
Size: 1146 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-libvirt-maintainers/attachments/20100511/3da40e7d/attachment-0003.bin>


More information about the Pkg-libvirt-maintainers mailing list