PDA

View Full Version : [ubuntu] KVM shutdown problem


sevor
February 11th, 2009, 01:20 PM
Ok so I have been playing with KVM. I have a running vm and every time I enter (I should say that usTest is the name of my vm)

virsh shutdown usTest

It brings back
connecting to uri: qemu:///system
Domain usTest is being shutdown

Now if I run
virsh list --all

It returns

id Name State
-------------------------
1 usTest running

it does not acutally shut down. Am I missing something?
Please help.

sevor
February 11th, 2009, 01:29 PM
nvm .... After doing more research if Shutdown doesnt work (which there is no guarantee it will) use the destroy command.. it simulates pulling the powercord!

jimezam
January 4th, 2010, 02:31 AM
I solved this problem today.

Check that your have the ACPI feature on in the virtual machine specification XML file and installed on the guest.

For example, if your guest is Ubuntu you should install ACPId.

$ sudo aptitude install acpid

After that, the shutdown works as like a charm.

I hope it helps.

jimezam.

ryanrad
July 2nd, 2010, 02:15 PM
Thanks jimezam. I can confirm that I had the same problem and
sudo aptitude install acpid
worked for me as well.

kuda
September 11th, 2010, 10:23 AM
1+ thank you!!!

basdoorn
December 10th, 2010, 07:30 PM
I have just needed to install the acpi-support package to get a 10.04 guest to finaly shutdown properly. This was needed in addition to the already present acpid package and the <acpi/> tag in the xml configuration of the guest.