[SOLVED] The kvm-qemu virtual machine ignores shutdown and reboot

These days I’ve been playing with KVM (Kernel-based Virtual Machine). All started with a kernel upgrade and VMWare Server stop working, and getting lots of errors when executing vmware-config.pl while recompiling the modules.

Anyway, what matters is that I’ve migrated a couple of virtual machines from VMWare Server 2 to qemu-kvm.

One of the virtual machines ignored me completely when I pressed the “Shutdown” and “Reboot” buttons in the Virtual Manager. The virtualized/guest machine was a Ubuntu Server.

After searching in Google for a while I found a solution! Fortunately it was an easy solution, although I had to search for a while. The package acpid was missing.

The problem was solved after installling acpid package.

$ sudo apt-get install acpid

After installing this, the ‘shutdown’ and ‘reboot’ buttons worked perfectly!

Just in case you have the same problem when virtualizing a Windows machine (yes, I had the same problem), the problem is in the configuration of the virtual machine. The solution I’ve found is to edit the configuration and between <feature> and </feature> add <acpi/> and <apic/>. After doing this you will probably have to reinstall windows, or repair it using the installation CD or iso (I think there is another way of doing this without reinstalling, but you will have to use Google this time).

Finally, I just want to mention that the Virtual Manager in linux surprised me, it’s simple but quite functional. It’s not as functional  as virsh command for editing virtual machine configurations, but you can do the basic, and install new virtual machines from the Virtual Manager GUI which is always a good thing.

Trackback URL

, , , , , , ,

  1. Dave H
    10/01/2012 at 1:55 am Permalink

    Did you need to install acpid in the guest or on the host?