Hello,
first i'm using kvm-84 and libvirt 0.6.0 on opensuse 11.1.
I try to use the attached script to save some domains on shutdown and restore
them on host boot. The script also tries to cleanly shutdown all other
domains. The save and shutdown part is working as expected but on system boot
the restore of the saved domains fails. If I manually run 'rclibvirtdomains
start' after a boot it needs 1 to 3 tries to restore the domain. After that I
can run a stop/start cycle of libvirtdomains without problems.
How can I debug this problem? After the system boot libvirt seems to have
problems to connect to qemu/kvm. The log messages are for a failed start:
--- start log ---
LC_ALL=C PATH=/bin:/sbin:/usr/bin:/usr/sbin HOME=/ /usr/bin/qemu-kvm -S -M
pc -m 1024 -smp 1 -name kvm-virt03 -uuid
864c0b59-705e-5d78-dc3e-1a9de7dd305f -monitor
pty -pidfile /var/run/libvirt/qemu//kvm-virt03.pid -boot c -drive
file=/dev/virtual/kvm_virt03,if=ide,index=0,boot=on -net
nic,macaddr=00:16:3e:00:01:05,vlan=0,model=e1000 -net
tap,fd=15,script=,vlan=0,ifname=vnet0 -serial none -parallel none -usb -vnc
192.168.110.78:0 -k de -soundhw es1370 -incoming exec:cat
char device redirected to /dev/pts/6
qemu_popen: returning result of qemu_fopen_ops
cat: write error: Broken pipe
--- end log ---
and for a successful start:
--- start log ---
LC_ALL=C PATH=/bin:/sbin:/usr/bin:/usr/sbin HOME=/ /usr/bin/qemu-kvm -S -M
pc -m 1024 -smp 1 -name kvm-virt03 -uuid
864c0b59-705e-5d78-dc3e-1a9de7dd305f -monitor
pty -pidfile /var/run/libvirt/qemu//kvm-virt03.pid -boot c -drive
file=/dev/virtual/kvm_virt03,if=ide,index=0,boot=on -net
nic,macaddr=00:16:3e:00:01:05,vlan=0,model=e1000 -net
tap,fd=15,script=,vlan=0,ifname=vnet0 -serial none -parallel none -usb -vnc
192.168.110.78:0 -k de -soundhw es1370 -incoming exec:cat
char device redirected to /dev/pts/6
qemu_popen: returning result of qemu_fopen_ops
info cpus
* CPU #0: pc=0xffffffff80221f1d thread_id=7398
cont
--- end log ---
Kind regards
Matthias Pfafferodt
--
Matthias Pfafferodt -
http://www.mapfa.de
Matthias.Pfafferodt <at> mapfa.de
## Path: System/Virtualization
## Description: libvirtd stop configuration
## Type: yesno
## Default: yes
#
# On 'libvirtd stop' all running domains are killed. If
# LIBVIRTDOMAINS_SHUTDOWN is set to 'yes' all running vm's are given time
# for a gracefully shutdown.
#
LIBVIRTDOMAINS_SHUTDOWN="yes"
## Path: System/Virtualization
## Description: libvirtd timeout
## Type: integer
## Default: 300
#
# On 'libvirtd stop' the vm's are ask to shutdown. This optine gives the
# maximum number of seconds the script will wait until libvirt is stopped.
#
LIBVIRTDOMAINS_SHUTDOWN_MAXWAIT=300
## Path: System/Virtualization
## Description: should domains be saved
## Type: yesno
## Default: yes
#
# If set to yes domains are saved on shutdown and restored on boot.
#
LIBVIRTDOMAINS_SAVE="yes"
## Path: System/Virtualization
## Description: domains which should be save and restored
## Type: string
## Default:
#
# The listed vms are saved on shutdown and restored at boot time
#
LIBVIRTDOMAINS_SAVE_VM="kvm-virt03"
## Path: System/Virtualization
## Description: save path for domains
## Type: string
## Default: /var/lib/libvirtdomains/save
#
# Path there the domains should be saved
#
LIBVIRTDOMAINS_SAVE_DIR="/var/lib/libvirtdomains/save"