ubuntu 8.04.4 kvm 'stop' nfs backup fails

m.ardito

Famous Member
Feb 17, 2010
1,473
18
103
Torino, Italy
Hi,
i have this job failing with:

VMID NAME STATUS TIME SIZE FILENAME 101 VMapimix01 FAILED 00:10:02 command 'qm --skiplock shutdown 101 && qm wait 101 600' failed with exit code 255 TOTAL 00:10:02 0KB


Detailed backup logs:

vzdump --quiet --stop --compress --storage vm_backup --mailto edp@apiform.to.it 101

101: Apr 28 17:54:01 INFO: Starting Backup of VM 101 (qemu)
101: Apr 28 17:54:01 INFO: running
101: Apr 28 17:54:01 INFO: status = running
101: Apr 28 17:54:02 INFO: backup mode: stop
101: Apr 28 17:54:02 INFO: bandwidth limit: 10240 KB/s
101: Apr 28 17:54:02 INFO: stopping vm
101: Apr 28 18:04:03 INFO: wait failed - got timeout
101: Apr 28 18:04:03 ERROR: Backup of VM 101 failed - command 'qm --skiplock shutdown 101 && qm wait 101 600' failed with exit code 255

proxmox1:~# pveversion -v
pve-manager: 1.5-5 (pve-manager/1.5/4627)
running kernel: 2.6.18-2-pve
proxmox-ve-2.6.18: 1.5-5
pve-kernel-2.6.18-2-pve: 2.6.18-5
qemu-server: 1.1-11
pve-firmware: 1.0-3
libpve-storage-perl: 1.0-8
vncterm: 0.9-2
vzctl: 3.0.23-1pve8
vzdump: 1.2-5
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1
pve-qemu-kvm-2.6.18: 0.9.1-5

Any hint on what is the problem? How can one debug similar issues?

Thx Marco
 
Seems you VM does not stop correctly - you need working ACPI inside the VM to make that work. What kind of OS do you run?

You can also use snapshot or suspend mode to avoid that problem at all.
 
running OS is Ubuntu 8.04.4 server

proxmox1:~# cat /etc/qemu-server/101.conf
ostype: l26
memory: 512
sockets: 1
name: VMapimix01
ide2: none,media=cdrom
bootdisk: scsi0
onboot: 0
cores: 1
ide0: vm_disks:vm-101-disk-1
vlan0: rtl8139=C2:E2:B5:3B:C8:BA

btw, snapshot mode worked (kvm is on LVM2), took just 7 minutes...

Thanks.

do you think i should activate acpi anyway?

anyway, just to make experience, looking for info, i searched for acpi inside the vm:
$ aptitude search acpi
p acpi - displays information on ACPI devices
p acpi-support - a collection of useful events for acpi
p acpid - Utilities for using ACPI power management
p acpidump - utilities to dump system's ACPI tables to
p acpitail - Show ACPI information in a tail-like style
p acpitool - a small, convenient command-line ACPI clie

so no package installed...
will acpid package be sufficient in your opinion? is there any other useful package/setting i should consider?
grub loads the kernel with standard options, and there's no mention of acpi options anywhere...
i think that the os installer should detect if the bios (in this case the kvm bios) supports acpi and install support for it.
i did not check the "disable acpi" flag in vm config, so... is something gone wrong during install, or acpi support is totally in charge of the server user to install?

Mnay thanks, again. Marco
 
ok, i recently started with linux os so i have much to learn...
so the 'stop' button on the web manager does something different than acpi-asking th evm to stop,like killing host processes, or so, i think?

Many thanks, Dietmar
 
ok, i recently started with linux os so i have much to learn...
so the 'stop' button on the web manager does something different than acpi-asking th evm to stop,like killing host processes, or so, i think?

Yes, stop 'kills' the VM process.